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/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.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.017/1.017, allocations: 111.2 MB / 124.2 MB, free: 11.22 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.037e-05/3.041e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1656, allocations: 25.14 MB / 179.5 MB, free: 0.6914 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08087/0.2466, allocations: 46.05 MB / 225.6 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.2469, allocations: 67.97 kB / 225.6 MB, free: 2.875 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2619/0.5088, allocations: 28.74 MB / 254.4 MB, free: 45.6 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.5088, allocations: 0 / 254.4 MB, free: 45.6 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001661/0.509, allocations: 48.38 kB / 254.4 MB, free: 45.59 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.005891/0.5149, allocations: 1.758 MB / 256.2 MB, free: 44.79 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.515, allocations: 13.91 kB / 256.2 MB, free: 44.79 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007258/0.5158, allocations: 243.6 kB / 256.4 MB, free: 44.74 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004943/0.5163, allocations: 187.9 kB / 256.6 MB, free: 44.65 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002865/0.5191, allocations: 1.042 MB / 257.7 MB, free: 44.31 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.5193, allocations: 121.7 kB / 257.8 MB, free: 44.3 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005018/0.5198, allocations: 159.7 kB / 257.9 MB, free: 44.3 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005544/0.5254, allocations: 2.149 MB / 260.1 MB, free: 43.33 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.632e-05/0.5255, allocations: 7.906 kB / 260.1 MB, free: 43.32 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002539/0.5258, allocations: 63.12 kB / 260.1 MB, free: 43.27 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/0.5259, allocations: 80.38 kB / 260.2 MB, free: 43.26 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004916/0.5308, allocations: 1.75 MB / 262 MB, free: 42.59 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01593/0.5468, allocations: 6.106 MB / 268.1 MB, free: 38.25 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003191/0.5501, allocations: 1.864 MB / 269.9 MB, free: 36.34 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.5516, allocations: 0.6644 MB / 270.6 MB, free: 35.73 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.5517, allocations: 24.67 kB / 270.6 MB, free: 35.71 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.5518, allocations: 39.34 kB / 270.7 MB, free: 35.66 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 4.379e-06/0.5518, allocations: 0 / 270.7 MB, free: 35.66 MB / 202.7 MB Notification: Performance of matching and sorting (n=111): time 0.02018/0.572, allocations: 5.481 MB / 276.2 MB, free: 30.13 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.5721, allocations: 64.36 kB / 276.2 MB, free: 30.06 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: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/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/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/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/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/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/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/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/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/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/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.001559/0.5736, allocations: 0.7325 MB / 277 MB, free: 29.32 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002652/0.5739, allocations: 45.7 kB / 277 MB, free: 29.27 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/0.5744, allocations: 0.6846 MB / 277.7 MB, free: 28.58 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004276/0.5748, allocations: 381.9 kB / 278.1 MB, free: 28.21 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.5749, allocations: 20 kB / 278.1 MB, free: 28.19 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.575, allocations: 358.8 kB / 278.4 MB, free: 27.83 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.5764, allocations: 0.6234 MB / 279 MB, free: 27.21 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.5779, allocations: 0.7783 MB / 279.8 MB, free: 26.38 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.5796, allocations: 0.7603 MB / 280.6 MB, free: 25.62 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.5796, allocations: 0 / 280.6 MB, free: 25.62 MB / 202.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.005376/0.585, allocations: 2.128 MB / 282.7 MB, free: 23.47 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.585, allocations: 8 kB / 282.7 MB, free: 23.46 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.5851, allocations: 4 kB / 282.7 MB, free: 23.46 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002633/0.5877, allocations: 0.6407 MB / 283.4 MB, free: 22.81 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.5895, allocations: 223.6 kB / 283.6 MB, free: 22.6 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/0.6032, allocations: 8.569 MB / 292.2 MB, free: 13.64 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.6047, allocations: 91.94 kB / 292.2 MB, free: 13.55 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.6049, allocations: 39.98 kB / 292.3 MB, free: 13.51 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.0004016/0.6053, allocations: 185.5 kB / 292.5 MB, free: 13.32 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002573/0.6056, allocations: 94.78 kB / 292.6 MB, free: 13.23 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005577/0.6112, allocations: 2.138 MB / 294.7 MB, free: 11.07 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/0.6113, allocations: 15.94 kB / 294.7 MB, free: 11.05 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.6113, allocations: 8 kB / 294.7 MB, free: 11.04 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/0.6113, allocations: 3.984 kB / 294.7 MB, free: 11.04 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.6222, allocations: 4.195 MB / 298.9 MB, free: 6.797 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.6223, allocations: 4 kB / 298.9 MB, free: 6.793 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/0.6238, allocations: 175.9 kB / 299.1 MB, free: 6.621 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002816/0.6266, allocations: 0.6393 MB / 299.7 MB, free: 5.973 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/0.6269, allocations: 31.98 kB / 299.8 MB, free: 5.941 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/0.6412, allocations: 8.402 MB / 308.2 MB, free: 13.14 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.6412, allocations: 0 / 308.2 MB, free: 13.14 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008277/0.6495, allocations: 3.12 MB / 311.3 MB, free: 9.957 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/0.6506, allocations: 319.8 kB / 311.6 MB, free: 9.625 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002706/0.6509, allocations: 27.98 kB / 311.6 MB, free: 9.598 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.6523, allocations: 91.89 kB / 311.7 MB, free: 9.508 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003692/0.6527, allocations: 88.81 kB / 311.8 MB, free: 9.418 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.6528, allocations: 39.94 kB / 311.8 MB, free: 9.379 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001253/0.6541, allocations: 0.5382 MB / 312.4 MB, free: 8.844 MB / 218.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.6541, allocations: 4 kB / 312.4 MB, free: 8.84 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.002071/0.6562, allocations: 380 kB / 312.8 MB, free: 8.469 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.009092/0.6653, allocations: 4.037 MB / 316.8 MB, free: 4.367 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.006027/0.6714, allocations: 2.14 MB / 318.9 MB, free: 2.184 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.6715, allocations: 0 / 318.9 MB, free: 2.184 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004108/0.6756, allocations: 1.423 MB / 320.4 MB, free: 0.7305 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.6778, allocations: 220 kB / 320.6 MB, free: 0.5234 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009799/0.6876, allocations: 3.521 MB / 324.1 MB, free: 12.97 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001987/0.6897, allocations: 1.596 MB / 325.7 MB, free: 11.34 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/0.6911, allocations: 0.5422 MB / 326.2 MB, free: 10.8 MB / 234.7 MB Notification: Performance of SimCode: time 1.793e-06/0.6911, allocations: 0 / 326.2 MB, free: 10.8 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.598/4.289, allocations: 47.94 MB / 374.2 MB, free: 44.73 MB / 234.7 MB