Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.SMR_Inverter.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.062/1.062, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002736/0.0002737, allocations: 4 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05594/0.05624, allocations: 25.16 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.3461, allocations: 46.12 MB / 230.2 MB, free: 448 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.3464, allocations: 72.34 kB / 230.2 MB, free: 412 kB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1684/0.5149, allocations: 28.67 MB / 258.9 MB, free: 7.738 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.515, allocations: 0 / 258.9 MB, free: 7.738 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001577/0.5151, allocations: 47.92 kB / 258.9 MB, free: 7.691 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: 416 * Number of variables: 416 Notification: Performance of Generate backend data structure: time 0.006544/0.5217, allocations: 1.873 MB / 260.8 MB, free: 5.762 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.5218, allocations: 12.03 kB / 260.8 MB, free: 5.75 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007409/0.5225, allocations: 189.8 kB / 261 MB, free: 5.562 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003339/0.5259, allocations: 1.048 MB / 262.1 MB, free: 4.473 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.5261, allocations: 119.5 kB / 262.2 MB, free: 4.355 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004436/0.5265, allocations: 163.9 kB / 262.3 MB, free: 4.195 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006475/0.533, allocations: 2.21 MB / 264.6 MB, free: 1.91 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-05/0.5331, allocations: 7.922 kB / 264.6 MB, free: 1.902 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002765/0.5334, allocations: 71.98 kB / 264.6 MB, free: 1.832 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001329/0.5336, allocations: 71.25 kB / 264.7 MB, free: 1.762 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006179/0.5398, allocations: 1.84 MB / 266.5 MB, free: 15.92 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01946/0.5593, allocations: 6.122 MB / 272.7 MB, free: 9.668 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004563/0.5639, allocations: 1.92 MB / 274.6 MB, free: 7.574 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001516/0.5641, allocations: 13 kB / 274.6 MB, free: 7.562 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/0.5642, allocations: 39.56 kB / 274.6 MB, free: 7.516 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 2.285e-05/0.5642, allocations: 4 kB / 274.6 MB, free: 7.512 MB / 218.7 MB Notification: Performance of matching and sorting (n=110): time 0.0263/0.5905, allocations: 6.476 MB / 281.1 MB, free: 0.918 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.5906, allocations: 60.41 kB / 281.2 MB, free: 0.8477 MB / 218.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2609:9-2611:75:writable] Warning: Parameter smr.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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2603:9-2605:75:writable] Warning: Parameter smr.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2600:9-2602:51:writable] Warning: Parameter smr.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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2597:9-2599:75:writable] Warning: Parameter smr.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.9 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2594:9-2596:75:writable] Warning: Parameter smr.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=2.9 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7411:7-7413:73:writable] Warning: Parameter smr.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7408:7-7410:73:writable] Warning: Parameter smr.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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7406:7-7407:28:writable] Warning: Parameter smr.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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7405:7-7405:75:writable] Warning: Parameter smr.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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7272:7-7274:46:writable] Warning: Parameter smr.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smr.Jr) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:7268:7-7268:72:writable] Warning: Parameter smr.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.001902/0.5926, allocations: 0.8109 MB / 282 MB, free: 28 kB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002342/0.5928, allocations: 45.7 kB / 282 MB, free: 15.98 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006425/0.5935, allocations: 0.6886 MB / 282.7 MB, free: 15.28 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000507/0.594, allocations: 382.5 kB / 283.1 MB, free: 14.9 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.5941, allocations: 20 kB / 283.1 MB, free: 14.88 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.5943, allocations: 362.8 kB / 283.5 MB, free: 14.52 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.5963, allocations: 0.6701 MB / 284.1 MB, free: 13.84 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/0.5984, allocations: 0.82 MB / 285 MB, free: 12.98 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/0.6006, allocations: 0.8052 MB / 285.8 MB, free: 12.17 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.6006, allocations: 0 / 285.8 MB, free: 12.17 MB / 234.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.006777/0.6074, allocations: 2.206 MB / 288 MB, free: 9.945 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.6075, allocations: 8 kB / 288 MB, free: 9.938 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/0.6075, allocations: 7.984 kB / 288 MB, free: 9.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002979/0.6105, allocations: 0.6369 MB / 288.6 MB, free: 9.285 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/0.6123, allocations: 223.6 kB / 288.8 MB, free: 9.066 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1956/0.8079, allocations: 8.849 MB / 297.7 MB, free: 58.25 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002186/0.8102, allocations: 91.89 kB / 297.8 MB, free: 58.25 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003818/0.8107, allocations: 38.02 kB / 297.8 MB, free: 58.25 MB / 234.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" type: Real smr.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.inertiaRotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Absolute angular velocity of component (= der(phi))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (102): * Single equations (assignments): 99 * 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%) 22,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002552/0.8132, allocations: 0.6 MB / 298.4 MB, free: 58.13 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003837/0.8136, allocations: 98.7 kB / 298.5 MB, free: 58.13 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00711/0.8207, allocations: 2.221 MB / 300.7 MB, free: 58.05 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/0.8208, allocations: 11.16 kB / 300.7 MB, free: 58.05 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/0.8209, allocations: 4.719 kB / 300.7 MB, free: 58.05 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.624e-05/0.8209, allocations: 7.547 kB / 300.8 MB, free: 58.05 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.8333, allocations: 4.246 MB / 305 MB, free: 57.66 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.069e-05/0.8334, allocations: 5.062 kB / 305 MB, free: 57.66 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.835, allocations: 166.5 kB / 305.2 MB, free: 57.66 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003105/0.8381, allocations: 0.6398 MB / 305.8 MB, free: 57.64 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002797/0.8384, allocations: 30.06 kB / 305.8 MB, free: 57.64 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0168/0.8553, allocations: 8.674 MB / 314.5 MB, free: 53.64 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.8553, allocations: 0 / 314.5 MB, free: 53.64 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008056/0.8634, allocations: 3.166 MB / 317.7 MB, free: 52.43 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009009/0.8644, allocations: 316.8 kB / 318 MB, free: 52.24 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002672/0.8646, allocations: 27.7 kB / 318 MB, free: 52.22 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.8658, allocations: 82.52 kB / 318.1 MB, free: 52.21 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/0.8661, allocations: 87.28 kB / 318.2 MB, free: 52.19 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.8663, allocations: 32.58 kB / 318.2 MB, free: 52.18 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.00103/0.8673, allocations: 0.5486 MB / 318.8 MB, free: 51.95 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8673, allocations: 0 / 318.8 MB, free: 51.95 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001668/0.869, allocations: 377 kB / 319.1 MB, free: 51.91 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_rr[1],smr.idq_rr[2],vfController.x,loadInertia.phi) * 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 (82): * Single equations (assignments): 79 * 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%) 22,(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.0002878/0.8693, allocations: 140.2 kB / 319.3 MB, free: 51.8 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005854/0.8752, allocations: 2.239 MB / 321.5 MB, free: 50.85 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.8752, allocations: 0 / 321.5 MB, free: 50.85 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004224/0.8795, allocations: 1.462 MB / 323 MB, free: 50.14 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002945/0.8825, allocations: 208.3 kB / 323.2 MB, free: 50.09 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.8931, allocations: 4.371 MB / 327.5 MB, free: 47.75 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/0.8948, allocations: 1.601 MB / 329.1 MB, free: 46.87 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006176/0.8955, allocations: 76.7 kB / 329.2 MB, free: 46.86 MB / 234.7 MB Notification: Performance of SimCode: time 2.405e-06/0.8955, allocations: 0 / 329.2 MB, free: 46.86 MB / 234.7 MB Notification: Performance of Templates: time 0.06457/0.9601, allocations: 39.59 MB / 368.8 MB, free: 16.66 MB / 234.7 MB