Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.SMPM_Inverter.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 0.9491/0.9491, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.536e-05, allocations: 4 kB / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04441/0.04445, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1874/0.2319, allocations: 45.81 MB / 219.1 MB, free: 5 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.2321, allocations: 64.09 kB / 219.2 MB, free: 4.992 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1022/0.3343, allocations: 28.78 MB / 247.9 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.056e-06/0.3344, allocations: 0 / 247.9 MB, free: 2.402 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001154/0.3345, allocations: 43.94 kB / 248 MB, free: 2.359 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004203/0.3387, allocations: 1.783 MB / 249.8 MB, free: 0.6328 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3388, allocations: 12.03 kB / 249.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004684/0.3392, allocations: 185.8 kB / 250 MB, free: 448 kB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002434/0.3417, allocations: 1.057 MB / 251 MB, free: 15.34 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.074e-05/0.3418, allocations: 52.34 kB / 251.1 MB, free: 15.29 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003198/0.3421, allocations: 99.86 kB / 251.2 MB, free: 15.19 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003965/0.3461, allocations: 1.682 MB / 252.8 MB, free: 13.51 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004388/0.3505, allocations: 1.927 MB / 254.8 MB, free: 11.51 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.184e-05/0.3506, allocations: 7.984 kB / 254.8 MB, free: 11.5 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/0.3508, allocations: 4 kB / 254.8 MB, free: 11.5 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.3509, allocations: 75.3 kB / 254.9 MB, free: 11.42 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01315/0.3641, allocations: 5.924 MB / 260.8 MB, free: 5.383 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002827/0.367, allocations: 1.829 MB / 262.6 MB, free: 3.387 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/0.3683, allocations: 0.655 MB / 263.3 MB, free: 2.73 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.1e-05/0.3684, allocations: 17.45 kB / 263.3 MB, free: 2.711 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.3685, allocations: 47.28 kB / 263.3 MB, free: 2.656 MB / 202.7 MB Notification: Performance of pre-optimization done (n=94): time 4.65e-06/0.3685, allocations: 4 kB / 263.3 MB, free: 2.652 MB / 202.7 MB Notification: Performance of matching and sorting (n=115): time 0.01153/0.38, allocations: 4.42 MB / 267.8 MB, free: 14.16 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.3801, allocations: 60.72 kB / 267.8 MB, free: 14.09 MB / 218.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7706:7-7708:33:writable] Warning: Parameter terminalBox.terminalConnection has no value, and is fixed during initialization (fixed=true), using available start value (start="Y") as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Mechanics/Rotational.mo:4773:7-4774:27:writable] Warning: Parameter loadTorqueStep.offsetTorque has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2122:9-2124:75:writable] Warning: Parameter smpm.Rrd has no value, and is fixed during initialization (fixed=true), using available start value (start=0.04) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2116:9-2118:75:writable] Warning: Parameter smpm.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2113:9-2115:51:writable] Warning: Parameter smpm.useDamperCage has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2110:9-2112:75:writable] Warning: Parameter smpm.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2107:9-2109:75:writable] Warning: Parameter smpm.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2104:9-2106:50:writable] Warning: Parameter smpm.VsOpenCircuit has no value, and is fixed during initialization (fixed=true), using available start value (start=112.3) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7411:7-7413:73:writable] Warning: Parameter smpm.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7408:7-7410:73:writable] Warning: Parameter smpm.Rs has no value, and is fixed during initialization (fixed=true), using available start value (start=0.03) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7406:7-7407:28:writable] Warning: Parameter smpm.fsNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=50.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7405:7-7405:75:writable] Warning: Parameter smpm.p has no value, and is fixed during initialization (fixed=true), using available start value (start=2) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7272:7-7274:46:writable] Warning: Parameter smpm.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smpm.Jr) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7268:7-7268:72:writable] Warning: Parameter smpm.Jr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.29) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.3815, allocations: 0.6621 MB / 268.5 MB, free: 13.43 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.3816, allocations: 37.7 kB / 268.5 MB, free: 13.39 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005908/0.3822, allocations: 0.7002 MB / 269.2 MB, free: 12.68 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004487/0.3827, allocations: 374.3 kB / 269.6 MB, free: 12.3 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.202e-05/0.3828, allocations: 0 / 269.6 MB, free: 12.3 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.383, allocations: 358.8 kB / 269.9 MB, free: 11.95 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.3843, allocations: 0.6117 MB / 270.5 MB, free: 11.33 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.3857, allocations: 0.7753 MB / 271.3 MB, free: 10.5 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.3873, allocations: 0.7518 MB / 272.1 MB, free: 9.754 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.3873, allocations: 0 / 272.1 MB, free: 9.754 MB / 218.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004814/0.3921, allocations: 2.076 MB / 274.1 MB, free: 7.66 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.3922, allocations: 7.984 kB / 274.1 MB, free: 7.652 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.3922, allocations: 4 kB / 274.2 MB, free: 7.648 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.3944, allocations: 0.627 MB / 274.8 MB, free: 7.012 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.3956, allocations: 231.6 kB / 275 MB, free: 6.785 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/0.4091, allocations: 8.305 MB / 283.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.4102, allocations: 67.89 kB / 283.4 MB, free: 14.06 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.4104, allocations: 40.05 kB / 283.4 MB, free: 14.02 MB / 234.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real smpm.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.inertiaRotor.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(phi))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 104 * 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 {(6,80.6%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003656/0.4107, allocations: 138.4 kB / 283.6 MB, free: 13.89 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/0.411, allocations: 94.78 kB / 283.6 MB, free: 13.79 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004911/0.4159, allocations: 2.071 MB / 285.7 MB, free: 11.7 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.416, allocations: 16 kB / 285.7 MB, free: 11.68 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.416, allocations: 4 kB / 285.7 MB, free: 11.68 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/0.416, allocations: 15.92 kB / 285.8 MB, free: 11.66 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009257/0.4253, allocations: 3.95 MB / 289.7 MB, free: 7.641 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.481e-06/0.4253, allocations: 0 / 289.7 MB, free: 7.641 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009962/0.4263, allocations: 179.8 kB / 289.9 MB, free: 7.465 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002331/0.4287, allocations: 0.6431 MB / 290.5 MB, free: 6.812 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.4288, allocations: 11.98 kB / 290.5 MB, free: 6.801 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1353/0.5641, allocations: 8.137 MB / 298.7 MB, free: 60 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.412e-06/0.5641, allocations: 2.438 kB / 298.7 MB, free: 60 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006162/0.5703, allocations: 3.085 MB / 301.8 MB, free: 59.72 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007388/0.5711, allocations: 325 kB / 302.1 MB, free: 59.62 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001863/0.5713, allocations: 14.33 kB / 302.1 MB, free: 59.62 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008357/0.5722, allocations: 70.97 kB / 302.2 MB, free: 59.62 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002729/0.5724, allocations: 92.06 kB / 302.2 MB, free: 59.62 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.5726, allocations: 32.44 kB / 302.3 MB, free: 59.62 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007767/0.5734, allocations: 0.4891 MB / 302.8 MB, free: 59.52 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.5734, allocations: 0 / 302.8 MB, free: 59.52 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001595/0.575, allocations: 338.5 kB / 303.1 MB, free: 59.52 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[1],smpm.idq_rr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 83 * 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 {(6,86.1%) 23,(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.0002352/0.5752, allocations: 123.9 kB / 303.2 MB, free: 59.44 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004061/0.5793, allocations: 2.103 MB / 305.3 MB, free: 59.08 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.5793, allocations: 0 / 305.3 MB, free: 59.08 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002703/0.5821, allocations: 1.39 MB / 306.7 MB, free: 58.74 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.5834, allocations: 169.3 kB / 306.9 MB, free: 58.74 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005732/0.5891, allocations: 3.047 MB / 309.9 MB, free: 58.03 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001411/0.5905, allocations: 1.618 MB / 311.5 MB, free: 57.3 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004253/0.591, allocations: 74.83 kB / 311.6 MB, free: 57.29 MB / 234.7 MB Notification: Performance of SimCode: time 2.029e-06/0.591, allocations: 0 / 311.6 MB, free: 57.29 MB / 234.7 MB Notification: Performance of Templates: time 0.04465/0.6357, allocations: 39.83 MB / 351.4 MB, free: 35.75 MB / 234.7 MB