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 1.151/1.151, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002672, allocations: 8 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04577/0.04606, allocations: 25.18 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SMR_Inverter): time 0.00687/0.05298, allocations: 4.471 MB / 187.9 MB, free: 1.527 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003254/0.05627, allocations: 1.259 MB / 189.2 MB, free: 272 kB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009224/0.05724, allocations: 27.81 kB / 189.2 MB, free: 244 kB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006581/0.05792, allocations: 210.7 kB / 189.4 MB, free: 32 kB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.05932, allocations: 311 kB / 189.7 MB, free: 15.73 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007088/0.06006, allocations: 167.8 kB / 189.9 MB, free: 15.56 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.001925/0.062, allocations: 1.037 MB / 190.9 MB, free: 14.52 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.0641, allocations: 1.226 MB / 192.1 MB, free: 13.28 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.06526, allocations: 0.5683 MB / 192.7 MB, free: 12.71 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.06647, allocations: 0.716 MB / 193.4 MB, free: 11.99 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002806/0.06678, allocations: 92 kB / 193.5 MB, free: 11.9 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003414/0.06714, allocations: 92 kB / 193.6 MB, free: 11.81 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007864/0.06794, allocations: 0.5142 MB / 194.1 MB, free: 11.29 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005094/0.06847, allocations: 348.8 kB / 194.4 MB, free: 10.95 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003333/0.07181, allocations: 2.38 MB / 196.8 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.593e-06/0.07185, allocations: 4 kB / 196.8 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.238e-06/0.07186, allocations: 4 kB / 196.8 MB, free: 8.551 MB / 170.7 MB Notification: Performance of Transformations before backend: time 5.19e-05/0.07192, allocations: 0 / 196.8 MB, free: 8.551 MB / 170.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.004716/0.07666, allocations: 1.877 MB / 198.7 MB, free: 6.617 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.07671, allocations: 8.031 kB / 198.7 MB, free: 6.609 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005704/0.0773, allocations: 181.8 kB / 198.9 MB, free: 6.426 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00245/0.07976, allocations: 1.032 MB / 199.9 MB, free: 5.348 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.07994, allocations: 119.2 kB / 200 MB, free: 5.23 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004101/0.08036, allocations: 163.9 kB / 200.2 MB, free: 5.07 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005732/0.0861, allocations: 2.208 MB / 202.4 MB, free: 2.82 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.479e-05/0.08622, allocations: 7.938 kB / 202.4 MB, free: 2.812 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002087/0.08644, allocations: 60 kB / 202.5 MB, free: 2.754 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.08658, allocations: 83.22 kB / 202.6 MB, free: 2.672 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005206/0.0918, allocations: 1.898 MB / 204.4 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1314/0.2232, allocations: 6.16 MB / 210.6 MB, free: 20.25 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002825/0.2261, allocations: 1.819 MB / 212.4 MB, free: 18.89 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.589e-05/0.2262, allocations: 11.84 kB / 212.4 MB, free: 18.89 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.2263, allocations: 46.91 kB / 212.5 MB, free: 18.84 MB / 170.7 MB Notification: Performance of pre-optimization done (n=88): time 4.107e-06/0.2263, allocations: 0 / 212.5 MB, free: 18.84 MB / 170.7 MB Notification: Performance of matching and sorting (n=104): time 0.01717/0.2435, allocations: 6.262 MB / 218.7 MB, free: 15.45 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.2436, allocations: 63.31 kB / 218.8 MB, free: 15.38 MB / 170.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.001258/0.2448, allocations: 0.7622 MB / 219.6 MB, free: 14.95 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.245, allocations: 41.08 kB / 219.6 MB, free: 14.91 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003799/0.2454, allocations: 0.6899 MB / 220.3 MB, free: 14.28 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.2457, allocations: 367.3 kB / 220.7 MB, free: 13.96 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-05/0.2458, allocations: 16.22 kB / 220.7 MB, free: 13.95 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.2459, allocations: 360 kB / 221 MB, free: 13.61 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.2472, allocations: 0.6155 MB / 221.6 MB, free: 13.3 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.2487, allocations: 0.8023 MB / 222.4 MB, free: 12.78 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.2502, allocations: 0.7533 MB / 223.2 MB, free: 12.1 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.907e-06/0.2502, allocations: 0 / 223.2 MB, free: 12.1 MB / 170.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.004191/0.2544, allocations: 2.084 MB / 225.3 MB, free: 9.996 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.2545, allocations: 12.12 kB / 225.3 MB, free: 9.984 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.2545, allocations: 4 kB / 225.3 MB, free: 9.98 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/0.2563, allocations: 0.5801 MB / 225.9 MB, free: 9.391 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.2574, allocations: 221.7 kB / 226.1 MB, free: 9.176 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/0.2679, allocations: 8.346 MB / 234.4 MB, free: 440 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009077/0.2688, allocations: 83.91 kB / 234.5 MB, free: 356 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.269, allocations: 39.98 kB / 234.6 MB, free: 316 kB / 170.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 final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "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: 20 * 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 (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%) 19,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001299/0.2703, allocations: 0.6125 MB / 235.2 MB, free: 15.7 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002806/0.2706, allocations: 97.73 kB / 235.3 MB, free: 15.6 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005194/0.2758, allocations: 2.103 MB / 237.4 MB, free: 13.47 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.2758, allocations: 11.95 kB / 237.4 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.2759, allocations: 8 kB / 237.4 MB, free: 13.45 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-05/0.2759, allocations: 7.969 kB / 237.4 MB, free: 13.45 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009984/0.2859, allocations: 4.082 MB / 241.5 MB, free: 9.316 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.286, allocations: 4.125 kB / 241.5 MB, free: 9.312 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.287, allocations: 171.8 kB / 241.7 MB, free: 9.145 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/0.2892, allocations: 0.5923 MB / 242.2 MB, free: 8.543 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.2894, allocations: 27.98 kB / 242.3 MB, free: 8.516 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/0.3028, allocations: 8.178 MB / 250.5 MB, free: 15.94 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.143e-06/0.3028, allocations: 4.062 kB / 250.5 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006928/0.3098, allocations: 3.019 MB / 253.5 MB, free: 12.89 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007625/0.3106, allocations: 295.8 kB / 253.8 MB, free: 12.58 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002222/0.3108, allocations: 27.98 kB / 253.8 MB, free: 12.55 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007394/0.3116, allocations: 67.88 kB / 253.9 MB, free: 12.49 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/0.3119, allocations: 84.81 kB / 253.9 MB, free: 12.4 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-05/0.312, allocations: 35.98 kB / 254 MB, free: 12.37 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0009354/0.3129, allocations: 0.5068 MB / 254.5 MB, free: 11.87 MB / 202.7 MB Notification: Performance of sort global known variables: time 9.33e-07/0.313, allocations: 0 / 254.5 MB, free: 11.87 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001583/0.3145, allocations: 348 kB / 254.8 MB, free: 11.53 MB / 202.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,86.1%) 19,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002465/0.3148, allocations: 127.1 kB / 254.9 MB, free: 11.39 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.00492/0.3197, allocations: 2.117 MB / 257.1 MB, free: 9.238 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.623e-06/0.3198, allocations: 0 / 257.1 MB, free: 9.238 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003323/0.3231, allocations: 1.395 MB / 258.5 MB, free: 7.805 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.3244, allocations: 187.8 kB / 258.6 MB, free: 7.621 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009382/0.3339, allocations: 4.334 MB / 263 MB, free: 3.254 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001921/0.3358, allocations: 1.58 MB / 264.6 MB, free: 1.641 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004379/0.3363, allocations: 79.41 kB / 264.6 MB, free: 1.562 MB / 202.7 MB Notification: Performance of SimCode: time 1.853e-06/0.3363, allocations: 0 / 264.6 MB, free: 1.562 MB / 202.7 MB Notification: Performance of Templates: time 0.1788/0.5151, allocations: 38.99 MB / 303.6 MB, free: 77.85 MB / 234.7 MB