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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.9696/0.9696, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.326e-05/2.336e-05, allocations: 4 kB / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.142, allocations: 25.15 MB / 179.4 MB, free: 0.8164 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06928/0.2113, allocations: 46.47 MB / 225.9 MB, free: 2.621 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.2116, allocations: 67.97 kB / 226 MB, free: 2.555 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2277/0.4392, allocations: 29.1 MB / 255.1 MB, free: 45.92 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.069e-06/0.4393, allocations: 0 / 255.1 MB, free: 45.92 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001194/0.4394, allocations: 44.78 kB / 255.1 MB, free: 45.91 MB / 202.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.00433/0.4438, allocations: 1.78 MB / 256.9 MB, free: 45.11 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.4438, allocations: 7.594 kB / 256.9 MB, free: 45.11 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006019/0.4445, allocations: 193.3 kB / 257.1 MB, free: 45.02 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002349/0.4468, allocations: 1.055 MB / 258.1 MB, free: 44.65 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.447, allocations: 124.6 kB / 258.3 MB, free: 44.64 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003534/0.4473, allocations: 163.8 kB / 258.4 MB, free: 44.59 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004551/0.4519, allocations: 2.171 MB / 260.6 MB, free: 43.58 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-05/0.452, allocations: 2.469 kB / 260.6 MB, free: 43.58 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002336/0.4522, allocations: 68.31 kB / 260.7 MB, free: 43.53 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.487e-05/0.4523, allocations: 74.36 kB / 260.7 MB, free: 43.53 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00409/0.4564, allocations: 1.767 MB / 262.5 MB, free: 42.85 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01257/0.4691, allocations: 6.235 MB / 268.7 MB, free: 37.98 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00232/0.4714, allocations: 1.853 MB / 270.6 MB, free: 35.97 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.4726, allocations: 0.6823 MB / 271.3 MB, free: 35.29 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.344e-05/0.4727, allocations: 8.781 kB / 271.3 MB, free: 35.27 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.4727, allocations: 47.33 kB / 271.3 MB, free: 35.22 MB / 202.7 MB Notification: Performance of pre-optimization done (n=92): time 4.63e-06/0.4727, allocations: 7.938 kB / 271.3 MB, free: 35.21 MB / 202.7 MB Notification: Performance of matching and sorting (n=113): time 0.01536/0.4881, allocations: 5.732 MB / 277.1 MB, free: 29.43 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.4882, allocations: 64.34 kB / 277.1 MB, free: 29.36 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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.001337/0.4895, allocations: 0.7431 MB / 277.9 MB, free: 28.6 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/0.4897, allocations: 49.7 kB / 277.9 MB, free: 28.55 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.4901, allocations: 0.6925 MB / 278.6 MB, free: 27.84 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.4904, allocations: 390.1 kB / 279 MB, free: 27.46 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.991e-05/0.4905, allocations: 20 kB / 279 MB, free: 27.45 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.4906, allocations: 358.8 kB / 279.4 MB, free: 27.09 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.4917, allocations: 0.6351 MB / 280 MB, free: 26.45 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.4929, allocations: 0.7866 MB / 280.8 MB, free: 25.61 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.4943, allocations: 0.772 MB / 281.6 MB, free: 24.84 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.4943, allocations: 3.938 kB / 281.6 MB, free: 24.84 MB / 202.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.004207/0.4985, allocations: 2.154 MB / 283.7 MB, free: 22.67 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.4986, allocations: 4 kB / 283.7 MB, free: 22.66 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.4986, allocations: 4 kB / 283.7 MB, free: 22.66 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001991/0.5006, allocations: 0.6466 MB / 284.4 MB, free: 22 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.5018, allocations: 219.7 kB / 284.6 MB, free: 21.79 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/0.5137, allocations: 8.64 MB / 293.2 MB, free: 12.76 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.5148, allocations: 87.95 kB / 293.3 MB, free: 12.68 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.515, allocations: 43.98 kB / 293.3 MB, free: 12.63 MB / 202.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 (105): * Single equations (assignments): 102 * 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.0003465/0.5154, allocations: 169.5 kB / 293.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.5156, allocations: 106.7 kB / 293.6 MB, free: 12.36 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004701/0.5203, allocations: 2.161 MB / 295.8 MB, free: 10.18 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/0.5204, allocations: 14.91 kB / 295.8 MB, free: 10.16 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.5204, allocations: 8 kB / 295.8 MB, free: 10.16 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/0.5204, allocations: 3.984 kB / 295.8 MB, free: 10.15 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008965/0.5294, allocations: 4.235 MB / 300 MB, free: 5.855 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.5294, allocations: 0 / 300 MB, free: 5.855 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009766/0.5304, allocations: 175.8 kB / 300.2 MB, free: 5.688 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00207/0.5325, allocations: 0.6428 MB / 300.9 MB, free: 5.035 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000148/0.5327, allocations: 31.98 kB / 300.9 MB, free: 5.004 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/0.5451, allocations: 8.464 MB / 309.4 MB, free: 12.16 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.625e-06/0.5451, allocations: 4 kB / 309.4 MB, free: 12.15 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006759/0.5519, allocations: 3.136 MB / 312.5 MB, free: 8.949 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008568/0.5528, allocations: 331.6 kB / 312.8 MB, free: 8.605 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002307/0.5531, allocations: 27.98 kB / 312.8 MB, free: 8.578 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000906/0.554, allocations: 87.91 kB / 312.9 MB, free: 8.492 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003133/0.5543, allocations: 96.75 kB / 313 MB, free: 8.398 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.5544, allocations: 32 kB / 313.1 MB, free: 8.367 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001061/0.5555, allocations: 0.5538 MB / 313.6 MB, free: 7.816 MB / 218.7 MB Notification: Performance of sort global known variables: time 8.65e-07/0.5555, allocations: 0 / 313.6 MB, free: 7.816 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001714/0.5573, allocations: 388 kB / 314 MB, free: 7.438 MB / 218.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 (85): * Single equations (assignments): 82 * 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.000289/0.5576, allocations: 127.1 kB / 314.1 MB, free: 7.301 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.004718/0.5623, allocations: 2.176 MB / 316.3 MB, free: 5.09 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.5623, allocations: 4 kB / 316.3 MB, free: 5.086 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003196/0.5655, allocations: 1.435 MB / 317.7 MB, free: 3.613 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.567, allocations: 205.3 kB / 317.9 MB, free: 3.418 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006792/0.5738, allocations: 3.11 MB / 321 MB, free: 292 kB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/0.5759, allocations: 1.613 MB / 322.6 MB, free: 14.64 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004587/0.5763, allocations: 79.36 kB / 322.7 MB, free: 14.56 MB / 234.7 MB Notification: Performance of SimCode: time 1.924e-06/0.5764, allocations: 0 / 322.7 MB, free: 14.56 MB / 234.7 MB Notification: Performance of Templates: time 0.1825/0.7589, allocations: 40.17 MB / 362.9 MB, free: 57.23 MB / 234.7 MB