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.SMPM_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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SMPM_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.014/1.014, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.061e-05, allocations: 4 kB / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1736, allocations: 25.15 MB / 179.5 MB, free: 0.6836 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08095/0.2546, allocations: 46.48 MB / 226 MB, free: 2.48 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.2549, allocations: 63.97 kB / 226.1 MB, free: 2.418 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2568/0.5117, allocations: 29.11 MB / 255.2 MB, free: 45.95 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5117, allocations: 0 / 255.2 MB, free: 45.95 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001305/0.5119, allocations: 48.44 kB / 255.2 MB, free: 45.94 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004841/0.5167, allocations: 1.772 MB / 257 MB, free: 45.14 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.5168, allocations: 7.406 kB / 257 MB, free: 45.14 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004468/0.5173, allocations: 249.3 kB / 257.2 MB, free: 45.09 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000415/0.5177, allocations: 196.8 kB / 257.4 MB, free: 44.99 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002412/0.5201, allocations: 1.054 MB / 258.5 MB, free: 44.54 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.5202, allocations: 120.1 kB / 258.6 MB, free: 44.48 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003419/0.5206, allocations: 165 kB / 258.8 MB, free: 44.43 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004602/0.5252, allocations: 2.169 MB / 260.9 MB, free: 43.43 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.367e-05/0.5253, allocations: 3.781 kB / 260.9 MB, free: 43.43 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/0.5255, allocations: 69.22 kB / 261 MB, free: 43.38 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/0.5256, allocations: 80.75 kB / 261.1 MB, free: 43.37 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004155/0.5298, allocations: 1.771 MB / 262.8 MB, free: 42.69 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.5435, allocations: 6.228 MB / 269.1 MB, free: 37.54 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002736/0.5463, allocations: 1.854 MB / 270.9 MB, free: 35.52 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.5477, allocations: 0.6819 MB / 271.6 MB, free: 34.84 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.774e-05/0.5478, allocations: 12.78 kB / 271.6 MB, free: 34.83 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.5478, allocations: 47.3 kB / 271.7 MB, free: 34.77 MB / 202.7 MB Notification: Performance of pre-optimization done (n=92): time 1.021e-05/0.5478, allocations: 0 / 271.7 MB, free: 34.77 MB / 202.7 MB Notification: Performance of matching and sorting (n=113): time 0.02019/0.568, allocations: 5.739 MB / 277.4 MB, free: 28.98 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.5681, allocations: 68.41 kB / 277.5 MB, free: 28.91 MB / 202.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:2122:9-2124:75:writable] Warning: Parameter smpm.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:2116:9-2118:75:writable] Warning: Parameter smpm.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2113:9-2115:51:writable] Warning: Parameter smpm.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:2110:9-2112:75:writable] Warning: Parameter smpm.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2107:9-2109:75:writable] Warning: Parameter smpm.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2104:9-2106:50:writable] Warning: Parameter smpm.VsOpenCircuit has no value, and is fixed during initialization (fixed=true), using available start value (start=112.3) 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 smpm.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smpm.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 smpm.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 smpm.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 smpm.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 smpm.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smpm.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 smpm.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.001392/0.5695, allocations: 0.7401 MB / 278.2 MB, free: 28.16 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.5696, allocations: 45.7 kB / 278.3 MB, free: 28.11 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003711/0.57, allocations: 0.6964 MB / 279 MB, free: 27.4 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003245/0.5704, allocations: 391.7 kB / 279.3 MB, free: 27.02 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.5705, allocations: 23.94 kB / 279.4 MB, free: 27 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.5706, allocations: 358.7 kB / 279.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.5719, allocations: 0.6351 MB / 280.3 MB, free: 26 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.5733, allocations: 0.7933 MB / 281.1 MB, free: 25.15 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.5749, allocations: 0.7642 MB / 281.9 MB, free: 24.39 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.5749, allocations: 4 kB / 281.9 MB, free: 24.39 MB / 202.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.005197/0.5801, allocations: 2.151 MB / 284.1 MB, free: 22.22 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.5802, allocations: 6.031 kB / 284.1 MB, free: 22.21 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.5802, allocations: 8 kB / 284.1 MB, free: 22.21 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002563/0.5828, allocations: 0.6387 MB / 284.7 MB, free: 21.56 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.5844, allocations: 223.7 kB / 284.9 MB, free: 21.34 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/0.5974, allocations: 8.629 MB / 293.6 MB, free: 12.33 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.5988, allocations: 95.95 kB / 293.7 MB, free: 12.23 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.5989, allocations: 39.98 kB / 293.7 MB, free: 12.2 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 smpm.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.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: 17 * 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%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003662/0.5993, allocations: 172 kB / 293.9 MB, free: 12.03 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/0.5995, allocations: 102.8 kB / 294 MB, free: 11.93 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005331/0.6049, allocations: 2.161 MB / 296.1 MB, free: 9.738 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.6049, allocations: 8 kB / 296.1 MB, free: 9.73 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.6049, allocations: 8 kB / 296.1 MB, free: 9.723 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.605, allocations: 3.984 kB / 296.1 MB, free: 9.719 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009737/0.6147, allocations: 4.242 MB / 300.4 MB, free: 5.422 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/0.6147, allocations: 0 / 300.4 MB, free: 5.422 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.6161, allocations: 179.9 kB / 300.6 MB, free: 5.246 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002617/0.6188, allocations: 0.6389 MB / 301.2 MB, free: 4.598 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.6189, allocations: 35.97 kB / 301.2 MB, free: 4.562 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01391/0.6328, allocations: 8.462 MB / 309.7 MB, free: 11.71 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.6329, allocations: 0 / 309.7 MB, free: 11.71 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007866/0.6407, allocations: 3.148 MB / 312.8 MB, free: 8.5 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008707/0.6417, allocations: 323.8 kB / 313.2 MB, free: 8.164 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.6419, allocations: 31.98 kB / 313.2 MB, free: 8.133 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.6431, allocations: 79.91 kB / 313.3 MB, free: 8.055 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/0.6434, allocations: 92.81 kB / 313.4 MB, free: 7.965 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.6436, allocations: 36 kB / 313.4 MB, free: 7.93 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.00114/0.6447, allocations: 0.5537 MB / 314 MB, free: 7.379 MB / 218.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6447, allocations: 7.938 kB / 314 MB, free: 7.371 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001636/0.6464, allocations: 380 kB / 314.3 MB, free: 7 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[1],smpm.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,86.1%) 23,(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.008247/0.6546, allocations: 4.076 MB / 318.4 MB, free: 2.852 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.005582/0.6602, allocations: 2.157 MB / 320.6 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6603, allocations: 0 / 320.6 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003742/0.664, allocations: 1.443 MB / 322 MB, free: 15.18 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/0.6659, allocations: 210.8 kB / 322.2 MB, free: 14.98 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008751/0.6747, allocations: 3.568 MB / 325.8 MB, free: 11.37 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/0.6766, allocations: 1.609 MB / 327.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/0.6779, allocations: 0.5539 MB / 327.9 MB, free: 9.172 MB / 234.7 MB Notification: Performance of SimCode: time 9.32e-07/0.6779, allocations: 0 / 327.9 MB, free: 9.172 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.496/4.173, allocations: 48.62 MB / 376.6 MB, free: 42.94 MB / 234.7 MB