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.SMR_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.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 0.9522/0.9522, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003134, allocations: 4 kB / 158.3 MB, free: 15.19 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04647/0.04681, allocations: 25.17 MB / 183.5 MB, free: 5.988 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1846/0.2315, allocations: 46.14 MB / 229.6 MB, free: 404 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.2317, allocations: 72.14 kB / 229.7 MB, free: 364 kB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1087/0.3404, allocations: 28.65 MB / 258.4 MB, free: 7.703 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.288e-06/0.3405, allocations: 0 / 258.4 MB, free: 7.703 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001197/0.3406, allocations: 43.94 kB / 258.4 MB, free: 7.66 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.004594/0.3452, allocations: 1.881 MB / 260.3 MB, free: 5.723 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.3453, allocations: 12.02 kB / 260.3 MB, free: 5.711 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005003/0.3458, allocations: 189.8 kB / 260.5 MB, free: 5.523 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002459/0.3483, allocations: 1.051 MB / 261.5 MB, free: 4.426 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.3485, allocations: 115.5 kB / 261.6 MB, free: 4.312 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003717/0.3488, allocations: 160 kB / 261.8 MB, free: 4.156 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005314/0.3542, allocations: 2.198 MB / 264 MB, free: 1.883 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.627e-05/0.3543, allocations: 3.938 kB / 264 MB, free: 1.879 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/0.3545, allocations: 68 kB / 264.1 MB, free: 1.812 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/0.3547, allocations: 75.25 kB / 264.1 MB, free: 1.738 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005033/0.3597, allocations: 1.844 MB / 266 MB, free: 15.89 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01933/0.3791, allocations: 6.118 MB / 272.1 MB, free: 9.645 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005912/0.385, allocations: 1.92 MB / 274 MB, free: 7.551 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.3852, allocations: 12.98 kB / 274 MB, free: 7.539 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.532e-05/0.3853, allocations: 43.56 kB / 274.1 MB, free: 7.488 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 7.496e-06/0.3853, allocations: 4 kB / 274.1 MB, free: 7.484 MB / 218.7 MB Notification: Performance of matching and sorting (n=110): time 0.03679/0.4221, allocations: 6.471 MB / 280.6 MB, free: 0.9023 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/0.4223, allocations: 64.41 kB / 280.6 MB, free: 0.8281 MB / 218.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: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@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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.002644/0.4249, allocations: 0.7346 MB / 281.4 MB, free: 88 kB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000269/0.4252, allocations: 41.7 kB / 281.4 MB, free: 40 kB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009347/0.4262, allocations: 0.6886 MB / 282.1 MB, free: 15.34 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007153/0.4269, allocations: 374.5 kB / 282.4 MB, free: 14.97 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.4271, allocations: 24 kB / 282.5 MB, free: 14.95 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003032/0.4275, allocations: 358.7 kB / 282.8 MB, free: 14.59 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002855/0.4303, allocations: 0.6701 MB / 283.5 MB, free: 13.92 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003128/0.4335, allocations: 0.8161 MB / 284.3 MB, free: 13.05 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003374/0.4369, allocations: 0.8052 MB / 285.1 MB, free: 12.25 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.437, allocations: 0 / 285.1 MB, free: 12.25 MB / 234.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.01026/0.4473, allocations: 2.202 MB / 287.3 MB, free: 10.02 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.709e-05/0.4474, allocations: 14.66 kB / 287.3 MB, free: 10.01 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.4474, allocations: 4 kB / 287.3 MB, free: 10.01 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004399/0.4518, allocations: 0.6368 MB / 288 MB, free: 9.363 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002369/0.4543, allocations: 223.6 kB / 288.2 MB, free: 9.145 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2159/0.6702, allocations: 8.862 MB / 297.1 MB, free: 58.3 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.6713, allocations: 89.64 kB / 297.1 MB, free: 58.3 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.6715, allocations: 36.48 kB / 297.2 MB, free: 58.3 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.001361/0.6729, allocations: 0.5997 MB / 297.8 MB, free: 58.18 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/0.6731, allocations: 99.53 kB / 297.9 MB, free: 58.18 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005004/0.6781, allocations: 2.221 MB / 300.1 MB, free: 58.1 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.6782, allocations: 11.06 kB / 300.1 MB, free: 58.1 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.6782, allocations: 7.156 kB / 300.1 MB, free: 58.1 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.6782, allocations: 7.641 kB / 300.1 MB, free: 58.1 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009495/0.6877, allocations: 4.238 MB / 304.4 MB, free: 57.71 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.411e-06/0.6878, allocations: 1.219 kB / 304.4 MB, free: 57.71 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.6888, allocations: 173.8 kB / 304.5 MB, free: 57.71 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.6911, allocations: 0.6363 MB / 305.2 MB, free: 57.69 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001364/0.6912, allocations: 32.55 kB / 305.2 MB, free: 57.69 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/0.7036, allocations: 8.673 MB / 313.9 MB, free: 53.68 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.868e-06/0.7037, allocations: 3.938 kB / 313.9 MB, free: 53.68 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006411/0.7101, allocations: 3.179 MB / 317 MB, free: 52.45 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007333/0.7109, allocations: 320.6 kB / 317.4 MB, free: 52.25 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.7111, allocations: 30.11 kB / 317.4 MB, free: 52.23 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000882/0.712, allocations: 90.28 kB / 317.5 MB, free: 52.22 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/0.7123, allocations: 91.27 kB / 317.6 MB, free: 52.2 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.7124, allocations: 27.45 kB / 317.6 MB, free: 52.2 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.000844/0.7133, allocations: 0.552 MB / 318.1 MB, free: 51.96 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.03e-07/0.7133, allocations: 0 / 318.1 MB, free: 51.96 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00151/0.7148, allocations: 374.2 kB / 318.5 MB, free: 51.92 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.0002442/0.7151, allocations: 138 kB / 318.6 MB, free: 51.82 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004277/0.7194, allocations: 2.244 MB / 320.9 MB, free: 50.86 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.435e-06/0.7194, allocations: 0 / 320.9 MB, free: 50.86 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002941/0.7223, allocations: 1.464 MB / 322.4 MB, free: 50.15 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.7238, allocations: 210.1 kB / 322.6 MB, free: 50.09 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006593/0.7304, allocations: 4.363 MB / 326.9 MB, free: 47.74 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/0.7318, allocations: 1.596 MB / 328.5 MB, free: 46.86 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000433/0.7322, allocations: 80.41 kB / 328.6 MB, free: 46.85 MB / 234.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7322, allocations: 1.219 kB / 328.6 MB, free: 46.85 MB / 234.7 MB Notification: Performance of Templates: time 0.04439/0.7766, allocations: 39.59 MB / 368.2 MB, free: 16.77 MB / 234.7 MB