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.9329/0.9329, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.305e-05/2.314e-05, allocations: 4 kB / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1364, allocations: 25.15 MB / 179.4 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06855/0.205, allocations: 46.05 MB / 225.5 MB, free: 3.031 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.2052, allocations: 67.95 kB / 225.5 MB, free: 2.965 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2257/0.431, allocations: 28.73 MB / 254.3 MB, free: 45.59 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.431, allocations: 0 / 254.3 MB, free: 45.59 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001072/0.4311, allocations: 48.16 kB / 254.3 MB, free: 45.58 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.003531/0.4347, allocations: 1.761 MB / 256.1 MB, free: 44.79 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.4347, allocations: 13.88 kB / 256.1 MB, free: 44.79 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003666/0.4351, allocations: 185.1 kB / 256.3 MB, free: 44.69 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001941/0.4371, allocations: 1.048 MB / 257.3 MB, free: 44.35 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.505e-05/0.4372, allocations: 122 kB / 257.4 MB, free: 44.34 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003123/0.4375, allocations: 157.6 kB / 257.6 MB, free: 44.34 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004011/0.4415, allocations: 2.144 MB / 259.7 MB, free: 43.49 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.333e-05/0.4416, allocations: 4.562 kB / 259.7 MB, free: 43.48 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002163/0.4419, allocations: 69.62 kB / 259.8 MB, free: 43.43 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.512e-05/0.442, allocations: 74.98 kB / 259.9 MB, free: 43.43 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003616/0.4456, allocations: 1.748 MB / 261.6 MB, free: 42.75 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.4569, allocations: 6.119 MB / 267.8 MB, free: 38.57 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.4593, allocations: 1.855 MB / 269.6 MB, free: 36.68 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.4604, allocations: 0.6745 MB / 270.3 MB, free: 36.06 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.603e-05/0.4605, allocations: 16.78 kB / 270.3 MB, free: 36.04 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.4605, allocations: 42.91 kB / 270.3 MB, free: 36 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 4.814e-06/0.4605, allocations: 0 / 270.3 MB, free: 36 MB / 202.7 MB Notification: Performance of matching and sorting (n=111): time 0.01408/0.4746, allocations: 5.483 MB / 275.8 MB, free: 30.54 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.4747, allocations: 64.36 kB / 275.9 MB, free: 30.46 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: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.00121/0.4759, allocations: 0.7198 MB / 276.6 MB, free: 29.73 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 9.757e-05/0.476, allocations: 53.7 kB / 276.7 MB, free: 29.68 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003169/0.4763, allocations: 0.6808 MB / 277.3 MB, free: 28.98 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.4766, allocations: 386.2 kB / 277.7 MB, free: 28.61 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.941e-05/0.4767, allocations: 20 kB / 277.7 MB, free: 28.59 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.4768, allocations: 354.8 kB / 278.1 MB, free: 28.23 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.4779, allocations: 0.6273 MB / 278.7 MB, free: 27.61 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.4791, allocations: 0.773 MB / 279.5 MB, free: 26.78 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.4804, allocations: 0.7563 MB / 280.2 MB, free: 26.03 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.838e-06/0.4804, allocations: 0 / 280.2 MB, free: 26.03 MB / 202.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.00414/0.4845, allocations: 2.132 MB / 282.4 MB, free: 23.88 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.4846, allocations: 8 kB / 282.4 MB, free: 23.88 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.4846, allocations: 7.875 kB / 282.4 MB, free: 23.87 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/0.4866, allocations: 0.6407 MB / 283 MB, free: 23.22 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.4878, allocations: 223.7 kB / 283.2 MB, free: 23 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.4985, allocations: 8.569 MB / 291.8 MB, free: 14.04 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.4995, allocations: 91.95 kB / 291.9 MB, free: 13.95 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.4997, allocations: 39.98 kB / 291.9 MB, free: 13.91 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 smr.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.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: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 100 * 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.0003293/0.5, allocations: 183.2 kB / 292.1 MB, free: 13.73 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.5002, allocations: 102.8 kB / 292.2 MB, free: 13.62 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.5045, allocations: 2.134 MB / 294.4 MB, free: 11.47 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.5045, allocations: 16 kB / 294.4 MB, free: 11.46 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.5045, allocations: 8 kB / 294.4 MB, free: 11.45 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.5045, allocations: 7.969 kB / 294.4 MB, free: 11.44 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007963/0.5125, allocations: 4.187 MB / 298.6 MB, free: 7.199 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.5126, allocations: 4 kB / 298.6 MB, free: 7.195 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009624/0.5135, allocations: 171.7 kB / 298.7 MB, free: 7.027 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002111/0.5157, allocations: 0.6429 MB / 299.4 MB, free: 6.375 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.5158, allocations: 31.98 kB / 299.4 MB, free: 6.344 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/0.5271, allocations: 8.409 MB / 307.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.655e-06/0.5271, allocations: 0 / 307.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006539/0.5336, allocations: 3.121 MB / 311 MB, free: 10.36 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007685/0.5345, allocations: 319.8 kB / 311.3 MB, free: 10.03 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002006/0.5347, allocations: 27.98 kB / 311.3 MB, free: 10 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008681/0.5356, allocations: 87.91 kB / 311.4 MB, free: 9.914 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/0.5359, allocations: 96.67 kB / 311.5 MB, free: 9.82 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.536, allocations: 32 kB / 311.5 MB, free: 9.789 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001009/0.537, allocations: 0.5459 MB / 312 MB, free: 9.246 MB / 218.7 MB Notification: Performance of sort global known variables: time 8.99e-07/0.537, allocations: 0 / 312 MB, free: 9.246 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001581/0.5386, allocations: 376 kB / 312.4 MB, free: 8.879 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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.0002797/0.5389, allocations: 139 kB / 312.6 MB, free: 8.73 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.004525/0.5435, allocations: 2.14 MB / 314.7 MB, free: 6.551 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 5.042e-06/0.5435, allocations: 0 / 314.7 MB, free: 6.551 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003175/0.5467, allocations: 1.423 MB / 316.1 MB, free: 5.094 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.548, allocations: 210.3 kB / 316.3 MB, free: 4.898 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006612/0.5547, allocations: 3.06 MB / 319.4 MB, free: 1.82 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001872/0.5566, allocations: 1.6 MB / 321 MB, free: 196 kB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004209/0.557, allocations: 71.42 kB / 321 MB, free: 124 kB / 218.7 MB Notification: Performance of SimCode: time 1.973e-06/0.557, allocations: 0 / 321 MB, free: 124 kB / 218.7 MB Notification: Performance of Templates: time 0.1773/0.7343, allocations: 39.63 MB / 360.7 MB, free: 60.48 MB / 234.7 MB