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/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.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.058/1.058, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.773e-05/1.782e-05, allocations: 4 kB / 148.1 MB, free: 6.227 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04628/0.04632, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.193/0.2394, allocations: 45.38 MB / 218.7 MB, free: 5.148 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.2396, allocations: 67.88 kB / 218.7 MB, free: 5.141 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1017/0.3413, allocations: 28.42 MB / 247.2 MB, free: 3.102 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.146e-06/0.3414, allocations: 0 / 247.2 MB, free: 3.102 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001302/0.3415, allocations: 43.94 kB / 247.2 MB, free: 3.059 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: 416 * Number of variables: 416 Notification: Performance of Generate backend data structure: time 0.004749/0.3463, allocations: 1.768 MB / 249 MB, free: 1.348 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3464, allocations: 15.97 kB / 249 MB, free: 1.332 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006102/0.347, allocations: 185.8 kB / 249.2 MB, free: 1.148 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002547/0.3495, allocations: 1.035 MB / 250.2 MB, free: 144 kB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.963e-05/0.3497, allocations: 52.34 kB / 250.2 MB, free: 92 kB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000374/0.35, allocations: 103.9 kB / 250.4 MB, free: 15.98 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004112/0.3542, allocations: 1.654 MB / 252 MB, free: 14.33 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004764/0.359, allocations: 1.911 MB / 253.9 MB, free: 12.35 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.819e-05/0.3591, allocations: 11.89 kB / 253.9 MB, free: 12.34 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001981/0.3593, allocations: 0 / 253.9 MB, free: 12.34 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001165/0.3594, allocations: 75.25 kB / 254 MB, free: 12.26 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.3733, allocations: 5.811 MB / 259.8 MB, free: 6.34 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003076/0.3765, allocations: 1.837 MB / 261.6 MB, free: 4.336 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.3778, allocations: 0.6548 MB / 262.3 MB, free: 3.68 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.279e-05/0.3779, allocations: 12.78 kB / 262.3 MB, free: 3.664 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.378, allocations: 43.34 kB / 262.4 MB, free: 3.613 MB / 202.7 MB Notification: Performance of pre-optimization done (n=93): time 4.716e-06/0.378, allocations: 0 / 262.4 MB, free: 3.613 MB / 202.7 MB Notification: Performance of matching and sorting (n=113): time 0.01154/0.3896, allocations: 4.355 MB / 266.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.3897, allocations: 64.72 kB / 266.8 MB, free: 15.12 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: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/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/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/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/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/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/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/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/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/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/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.001375/0.391, allocations: 0.6543 MB / 267.4 MB, free: 14.46 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.3912, allocations: 25.7 kB / 267.5 MB, free: 14.43 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005937/0.3918, allocations: 0.6962 MB / 268.2 MB, free: 13.72 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004632/0.3923, allocations: 374.3 kB / 268.5 MB, free: 13.35 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.307e-05/0.3924, allocations: 0 / 268.5 MB, free: 13.35 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.3926, allocations: 354.8 kB / 268.9 MB, free: 13 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.3939, allocations: 0.6039 MB / 269.5 MB, free: 12.39 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.3954, allocations: 0.759 MB / 270.2 MB, free: 11.58 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.3969, allocations: 0.7517 MB / 271 MB, free: 10.83 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.3969, allocations: 4 kB / 271 MB, free: 10.83 MB / 218.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.0048/0.4018, allocations: 2.045 MB / 273 MB, free: 8.77 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.4018, allocations: 8 kB / 273 MB, free: 8.762 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.4018, allocations: 4 kB / 273 MB, free: 8.758 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.4041, allocations: 0.6256 MB / 273.7 MB, free: 8.125 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.4053, allocations: 223.7 kB / 273.9 MB, free: 7.906 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01375/0.4191, allocations: 8.247 MB / 282.1 MB, free: 15.3 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.4202, allocations: 67.89 kB / 282.2 MB, free: 15.23 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/0.4204, allocations: 40.05 kB / 282.2 MB, free: 15.19 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 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 (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%) 22,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003755/0.4208, allocations: 139.5 kB / 282.4 MB, free: 15.05 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002495/0.421, allocations: 94.88 kB / 282.5 MB, free: 14.96 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004927/0.426, allocations: 2.063 MB / 284.5 MB, free: 12.88 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/0.426, allocations: 12 kB / 284.5 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.4261, allocations: 8 kB / 284.5 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.4261, allocations: 7.938 kB / 284.6 MB, free: 12.85 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.4361, allocations: 3.905 MB / 288.5 MB, free: 8.875 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.4362, allocations: 0 / 288.5 MB, free: 8.875 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.4372, allocations: 179.9 kB / 288.6 MB, free: 8.699 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002457/0.4397, allocations: 0.6351 MB / 289.3 MB, free: 8.055 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.4399, allocations: 15.94 kB / 289.3 MB, free: 8.039 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1387/0.5786, allocations: 8.093 MB / 297.4 MB, free: 60.38 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-06/0.5787, allocations: 2.594 kB / 297.4 MB, free: 60.38 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006009/0.5847, allocations: 3.06 MB / 300.4 MB, free: 60.09 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007405/0.5855, allocations: 317.5 kB / 300.8 MB, free: 60 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/0.5857, allocations: 8.625 kB / 300.8 MB, free: 60 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008918/0.5866, allocations: 81.3 kB / 300.8 MB, free: 60 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.5869, allocations: 93.66 kB / 300.9 MB, free: 60 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.587, allocations: 28.44 kB / 301 MB, free: 60 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007836/0.5878, allocations: 494 kB / 301.4 MB, free: 59.9 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.86e-07/0.5878, allocations: 0 / 301.4 MB, free: 59.9 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001724/0.5896, allocations: 329.7 kB / 301.8 MB, free: 59.9 MB / 234.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 (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,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.0002645/0.5898, allocations: 119.5 kB / 301.9 MB, free: 59.82 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004021/0.5939, allocations: 2.082 MB / 304 MB, free: 59.46 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.519e-06/0.5939, allocations: 1.312 kB / 304 MB, free: 59.46 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002818/0.5968, allocations: 1.372 MB / 305.3 MB, free: 59.13 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.5982, allocations: 174.5 kB / 305.5 MB, free: 59.12 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005976/0.6042, allocations: 3.017 MB / 308.5 MB, free: 58.43 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/0.6057, allocations: 1.593 MB / 310.1 MB, free: 57.71 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004646/0.6062, allocations: 85.19 kB / 310.2 MB, free: 57.7 MB / 234.7 MB Notification: Performance of SimCode: time 1.841e-06/0.6062, allocations: 0 / 310.2 MB, free: 57.7 MB / 234.7 MB Notification: Performance of Templates: time 0.05657/0.6628, allocations: 39.3 MB / 349.5 MB, free: 37.34 MB / 234.7 MB