Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003487, allocations: 12 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08121, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4557/0.537, allocations: 103.1 MB / 375.7 MB, free: 2.816 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.5374, allocations: 89.08 kB / 375.8 MB, free: 2.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5658/1.103, allocations: 56.27 MB / 432.1 MB, free: 75.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.946e-06/1.103, allocations: 0 / 432.1 MB, free: 75.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004596/1.104, allocations: 75.58 kB / 432.1 MB, free: 75.21 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.01269/1.116, allocations: 3.134 MB / 435.3 MB, free: 74.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/1.116, allocations: 9.906 kB / 435.3 MB, free: 74.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002701/1.119, allocations: 403.5 kB / 435.7 MB, free: 74.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007098/1.126, allocations: 1.923 MB / 437.6 MB, free: 73.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000349/1.127, allocations: 213.5 kB / 437.8 MB, free: 73.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001384/1.128, allocations: 281.1 kB / 438.1 MB, free: 73.83 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01383/1.142, allocations: 3.646 MB / 441.7 MB, free: 73.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001858/1.142, allocations: 8.812 kB / 441.7 MB, free: 73.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008684/1.143, allocations: 122.6 kB / 441.9 MB, free: 73.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002376/1.143, allocations: 135.2 kB / 442 MB, free: 73.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/1.155, allocations: 2.931 MB / 444.9 MB, free: 73.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0318/1.187, allocations: 11.52 MB / 456.4 MB, free: 70.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/1.191, allocations: 1.931 MB / 458.4 MB, free: 69.92 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004812/1.191, allocations: 140.2 kB / 458.5 MB, free: 69.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/1.191, allocations: 48.25 kB / 458.6 MB, free: 69.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=126): time 4.91e-06/1.191, allocations: 0 / 458.6 MB, free: 69.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.02584/1.217, allocations: 7.532 MB / 466.1 MB, free: 67.31 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/1.217, allocations: 73.95 kB / 466.2 MB, free: 67.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003654/1.221, allocations: 1.772 MB / 467.9 MB, free: 66.53 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003924/1.222, allocations: 46.83 kB / 468 MB, free: 66.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/1.223, allocations: 1.375 MB / 469.4 MB, free: 65.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007383/1.223, allocations: 0.5044 MB / 469.9 MB, free: 65.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/1.224, allocations: 35.19 kB / 469.9 MB, free: 65.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/1.224, allocations: 372.6 kB / 470.3 MB, free: 64.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/1.226, allocations: 0.8788 MB / 471.1 MB, free: 64.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00263/1.229, allocations: 1.402 MB / 472.5 MB, free: 63.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002876/1.232, allocations: 1.115 MB / 473.7 MB, free: 62.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.64e-05/1.232, allocations: 3.406 kB / 473.7 MB, free: 62.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.008312/1.24, allocations: 3.018 MB / 476.7 MB, free: 61.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/1.24, allocations: 16.94 kB / 476.7 MB, free: 61.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.713e-05/1.24, allocations: 17.28 kB / 476.7 MB, free: 61.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002435/1.243, allocations: 0.5514 MB / 477.3 MB, free: 61.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003167/1.246, allocations: 434.9 kB / 477.7 MB, free: 61.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/1.257, allocations: 6.472 MB / 484.2 MB, free: 57.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002794/1.26, allocations: 136.3 kB / 484.3 MB, free: 57.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004766/1.26, allocations: 81.22 kB / 484.4 MB, free: 57.54 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 204 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002603/1.263, allocations: 0.9003 MB / 485.3 MB, free: 57.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006674/1.264, allocations: 208.1 kB / 485.5 MB, free: 56.94 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007215/1.271, allocations: 2.641 MB / 488.1 MB, free: 55.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/1.271, allocations: 16.5 kB / 488.1 MB, free: 55.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/1.271, allocations: 3.125 kB / 488.1 MB, free: 55.89 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/1.271, allocations: 9.891 kB / 488.1 MB, free: 55.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/1.285, allocations: 5.638 MB / 493.8 MB, free: 53.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/1.285, allocations: 3.406 kB / 493.8 MB, free: 53.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/1.287, allocations: 251.8 kB / 494 MB, free: 53.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002506/1.29, allocations: 0.5907 MB / 494.6 MB, free: 53.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/1.29, allocations: 38.05 kB / 494.7 MB, free: 53.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.303, allocations: 8.235 MB / 0.4911 GB, free: 47.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/1.303, allocations: 4 kB / 0.4911 GB, free: 47.11 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01339/1.316, allocations: 3.856 MB / 0.4949 GB, free: 43.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002863/1.319, allocations: 469.1 kB / 0.4953 GB, free: 43.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007077/1.32, allocations: 35.8 kB / 0.4954 GB, free: 43.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.322, allocations: 100.1 kB / 0.4955 GB, free: 43.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003494/1.322, allocations: 114.1 kB / 0.4956 GB, free: 43.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/1.322, allocations: 36 kB / 0.4956 GB, free: 43.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002322/1.324, allocations: 1.198 MB / 0.4968 GB, free: 42.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.325, allocations: 0 / 0.4968 GB, free: 42.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002765/1.327, allocations: 0.6012 MB / 0.4974 GB, free: 41.42 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007818/1.328, allocations: 394.5 kB / 0.4977 GB, free: 41.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005995/1.334, allocations: 2.652 MB / 0.5003 GB, free: 38.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/1.334, allocations: 0 / 0.5003 GB, free: 38.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003624/1.338, allocations: 1.605 MB / 0.5019 GB, free: 37.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/1.341, allocations: 472.1 kB / 0.5023 GB, free: 36.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/1.354, allocations: 6.627 MB / 0.5088 GB, free: 30.83 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/1.356, allocations: 2.247 MB / 0.511 GB, free: 29.07 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002381/1.359, allocations: 485.9 kB / 0.5115 GB, free: 28.74 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/1.359, allocations: 135.2 kB / 0.5116 GB, free: 28.61 MB / 346.7 MB Notification: Performance of SimCode: time 1.393e-06/1.359, allocations: 0 / 0.5116 GB, free: 28.61 MB / 346.7 MB Notification: Performance of Templates: time 0.09529/1.455, allocations: 30.68 MB / 0.5416 GB, free: 2.203 MB / 346.7 MB