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.SMR_Inverter.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SMR_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.047/1.047, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.342e-05/2.358e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05121/0.05126, allocations: 25.17 MB / 173.4 MB, free: 12.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2255/0.2769, allocations: 45.39 MB / 218.8 MB, free: 3.602 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.2771, allocations: 68.05 kB / 218.8 MB, free: 3.59 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1123/0.3895, allocations: 28.43 MB / 247.3 MB, free: 1.793 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3896, allocations: 0 / 247.3 MB, free: 1.793 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001703/0.3897, allocations: 47.94 kB / 247.3 MB, free: 1.746 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.006786/0.3965, allocations: 1.756 MB / 249.1 MB, free: 44 kB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.803e-05/0.3966, allocations: 8.031 kB / 249.1 MB, free: 36 kB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001017/0.3976, allocations: 190.3 kB / 249.3 MB, free: 15.84 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003279/0.4009, allocations: 1.04 MB / 250.3 MB, free: 14.84 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.981e-05/0.4011, allocations: 55.78 kB / 250.4 MB, free: 14.79 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005177/0.4016, allocations: 103.8 kB / 250.5 MB, free: 14.68 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005182/0.4068, allocations: 1.662 MB / 252.1 MB, free: 13.02 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006178/0.413, allocations: 1.907 MB / 254 MB, free: 11.04 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.592e-05/0.4131, allocations: 3.906 kB / 254 MB, free: 11.04 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.4134, allocations: 4 kB / 254 MB, free: 11.03 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001333/0.4135, allocations: 75.25 kB / 254.1 MB, free: 10.96 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01689/0.4304, allocations: 5.815 MB / 259.9 MB, free: 5.031 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003522/0.434, allocations: 1.841 MB / 261.8 MB, free: 3.023 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/0.4356, allocations: 0.6509 MB / 262.4 MB, free: 2.371 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001178/0.4358, allocations: 16.75 kB / 262.4 MB, free: 2.352 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.4358, allocations: 43.34 kB / 262.5 MB, free: 2.301 MB / 202.7 MB Notification: Performance of pre-optimization done (n=93): time 3.677e-06/0.4359, allocations: 0 / 262.5 MB, free: 2.301 MB / 202.7 MB Notification: Performance of matching and sorting (n=113): time 0.01418/0.4501, allocations: 4.351 MB / 266.8 MB, free: 13.89 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.4501, allocations: 60.72 kB / 266.9 MB, free: 13.82 MB / 218.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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/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/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/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/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/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.001565/0.4517, allocations: 0.6551 MB / 267.5 MB, free: 13.16 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000241/0.452, allocations: 25.7 kB / 267.6 MB, free: 13.13 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005877/0.4526, allocations: 0.6924 MB / 268.3 MB, free: 12.43 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005248/0.4531, allocations: 378.3 kB / 268.6 MB, free: 12.05 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.751e-05/0.4532, allocations: 4 kB / 268.6 MB, free: 12.05 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4534, allocations: 350.8 kB / 269 MB, free: 11.7 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.4549, allocations: 0.6078 MB / 269.6 MB, free: 11.09 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.4565, allocations: 0.759 MB / 270.3 MB, free: 10.28 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001747/0.4583, allocations: 0.744 MB / 271.1 MB, free: 9.535 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.4583, allocations: 0 / 271.1 MB, free: 9.535 MB / 218.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.005845/0.4642, allocations: 2.045 MB / 273.1 MB, free: 7.473 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.4642, allocations: 12 kB / 273.1 MB, free: 7.461 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.4643, allocations: 0 / 273.1 MB, free: 7.461 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002803/0.4671, allocations: 0.6295 MB / 273.8 MB, free: 6.824 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.469, allocations: 223.7 kB / 274 MB, free: 6.605 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01599/0.485, allocations: 8.247 MB / 282.2 MB, free: 14 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.4865, allocations: 75.84 kB / 282.3 MB, free: 13.92 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/0.4866, allocations: 40.05 kB / 282.3 MB, free: 13.88 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.0004533/0.4871, allocations: 131.7 kB / 282.5 MB, free: 13.75 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005538/0.4927, allocations: 1.915 MB / 284.4 MB, free: 11.82 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000419/0.4931, allocations: 102.7 kB / 284.5 MB, free: 11.71 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006669/0.4998, allocations: 2.048 MB / 286.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.147e-05/0.4999, allocations: 15.98 kB / 286.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.4999, allocations: 11.94 kB / 286.6 MB, free: 9.617 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.707e-05/0.4999, allocations: 7.969 kB / 286.6 MB, free: 9.609 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.5114, allocations: 3.897 MB / 290.5 MB, free: 5.641 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.5114, allocations: 0 / 290.5 MB, free: 5.641 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/0.513, allocations: 179.9 kB / 290.6 MB, free: 5.465 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002967/0.516, allocations: 0.6312 MB / 291.3 MB, free: 4.824 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002047/0.5162, allocations: 15.98 kB / 291.3 MB, free: 4.809 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1673/0.6836, allocations: 8.101 MB / 299.4 MB, free: 60.06 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.6836, allocations: 3.469 kB / 299.4 MB, free: 60.06 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007167/0.6908, allocations: 3.06 MB / 302.5 MB, free: 59.77 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.6918, allocations: 317.4 kB / 302.8 MB, free: 59.68 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.6921, allocations: 14.56 kB / 302.8 MB, free: 59.68 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.6933, allocations: 73.95 kB / 302.8 MB, free: 59.68 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003887/0.6937, allocations: 87.27 kB / 302.9 MB, free: 59.68 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.6939, allocations: 28.53 kB / 303 MB, free: 59.68 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009363/0.6948, allocations: 497 kB / 303.4 MB, free: 59.58 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6948, allocations: 0 / 303.4 MB, free: 59.58 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002041/0.6969, allocations: 326.7 kB / 303.8 MB, free: 59.58 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.007521/0.7044, allocations: 3.971 MB / 307.7 MB, free: 58.38 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00488/0.7094, allocations: 2.081 MB / 309.8 MB, free: 58.02 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.7094, allocations: 0 / 309.8 MB, free: 58.02 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00341/0.7128, allocations: 1.368 MB / 311.2 MB, free: 57.68 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/0.7148, allocations: 179.2 kB / 311.4 MB, free: 57.68 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009173/0.724, allocations: 3.436 MB / 314.8 MB, free: 56.92 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001604/0.7257, allocations: 1.6 MB / 316.4 MB, free: 56.19 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.7269, allocations: 0.553 MB / 317 MB, free: 55.93 MB / 234.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7269, allocations: 0 / 317 MB, free: 55.93 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.488/4.215, allocations: 47.58 MB / 364.5 MB, free: 22.74 MB / 234.7 MB