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.AIMC_Steinmetz.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.AIMC_Steinmetz,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.305/1.305, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.432e-05/2.432e-05, allocations: 0 / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06015/0.06023, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2338/0.2941, allocations: 43.47 MB / 216.9 MB, free: 4.32 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.2945, allocations: 64.03 kB / 216.9 MB, free: 4.312 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09247/0.3869, allocations: 22.71 MB / 239.6 MB, free: 8.488 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.387, allocations: 0 / 239.6 MB, free: 8.488 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001167/0.3871, allocations: 31.94 kB / 239.7 MB, free: 8.457 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005136/0.3923, allocations: 1.372 MB / 241 MB, free: 7.117 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.3924, allocations: 12.03 kB / 241 MB, free: 7.105 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006652/0.3931, allocations: 150.2 kB / 241.2 MB, free: 6.957 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/0.3954, allocations: 0.8018 MB / 242 MB, free: 6.309 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.435e-05/0.3956, allocations: 36 kB / 242 MB, free: 6.273 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004399/0.396, allocations: 75.31 kB / 242.1 MB, free: 6.203 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003956/0.4, allocations: 1.227 MB / 243.3 MB, free: 5.449 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004414/0.4045, allocations: 1.42 MB / 244.7 MB, free: 4.234 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.022e-05/0.4046, allocations: 11.91 kB / 244.8 MB, free: 4.223 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002194/0.4049, allocations: 3.953 kB / 244.8 MB, free: 4.219 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.405, allocations: 54.45 kB / 244.8 MB, free: 4.164 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01378/0.4188, allocations: 4.585 MB / 249.4 MB, free: 15.54 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003452/0.4223, allocations: 1.485 MB / 250.9 MB, free: 13.95 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002136/0.4245, allocations: 0.7053 MB / 251.6 MB, free: 13.25 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.4246, allocations: 8.781 kB / 251.6 MB, free: 13.24 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.181e-05/0.4247, allocations: 47.34 kB / 251.6 MB, free: 13.18 MB / 202.7 MB Notification: Performance of pre-optimization done (n=95): time 4.608e-06/0.4247, allocations: 0 / 251.6 MB, free: 13.18 MB / 202.7 MB Notification: Performance of matching and sorting (n=116): time 0.01554/0.4403, allocations: 4.281 MB / 255.9 MB, free: 8.836 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.4404, allocations: 64.72 kB / 256 MB, free: 8.762 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:1719:9-1721:75:writable] Warning: Parameter aimc.Rr 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:1716:9-1718:75:writable] Warning: Parameter aimc.Lrsigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:1713:9-1715:75:writable] Warning: Parameter aimc.Lm has no value, and is fixed during initialization (fixed=true), using available start value (start=2.898223593858831 / (6.283185307179586 * aimc.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 aimc.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.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 aimc.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 aimc.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 aimc.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 aimc.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=aimc.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 aimc.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.001293/0.4417, allocations: 0.5285 MB / 256.5 MB, free: 8.23 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002756/0.442, allocations: 25.7 kB / 256.5 MB, free: 8.199 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004652/0.4425, allocations: 0.5248 MB / 257.1 MB, free: 7.672 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005297/0.443, allocations: 382.2 kB / 257.4 MB, free: 7.293 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/0.4431, allocations: 0 / 257.4 MB, free: 7.293 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.4433, allocations: 358.8 kB / 257.8 MB, free: 6.934 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.4447, allocations: 0.5609 MB / 258.3 MB, free: 6.371 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.4462, allocations: 0.6711 MB / 259 MB, free: 5.676 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.4479, allocations: 0.6893 MB / 259.7 MB, free: 4.988 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.4479, allocations: 0 / 259.7 MB, free: 4.988 MB / 202.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.006057/0.454, allocations: 2.027 MB / 261.7 MB, free: 2.938 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.4541, allocations: 4 kB / 261.7 MB, free: 2.934 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.4541, allocations: 4 kB / 261.7 MB, free: 2.93 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003315/0.4574, allocations: 0.736 MB / 262.5 MB, free: 2.18 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.4591, allocations: 195.7 kB / 262.7 MB, free: 1.988 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01758/0.4767, allocations: 9.722 MB / 272.4 MB, free: 7.805 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.478, allocations: 47.92 kB / 272.4 MB, free: 7.758 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.4782, allocations: 32 kB / 272.5 MB, free: 7.727 MB / 218.7 MB Warning: Assuming fixed start value for the following 9 variables: cStart.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real cRun.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real quadraticLoadTorque.phi:VARIABLE(unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.i_0_s:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator zero-sequence current" type: Real aimc.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: 9 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,87.5%) 23,(3,100.0%) 9,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004542/0.4786, allocations: 139.3 kB / 272.6 MB, free: 7.582 MB / 218.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005689/0.4843, allocations: 1.92 MB / 274.5 MB, free: 5.633 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004605/0.4849, allocations: 90.92 kB / 274.6 MB, free: 5.543 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006035/0.4909, allocations: 2.039 MB / 276.7 MB, free: 3.484 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.241e-05/0.491, allocations: 12 kB / 276.7 MB, free: 3.473 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.491, allocations: 8 kB / 276.7 MB, free: 3.465 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/0.491, allocations: 3.984 kB / 276.7 MB, free: 3.461 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0111/0.5022, allocations: 3.668 MB / 280.3 MB, free: 15.74 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.5022, allocations: 0 / 280.3 MB, free: 15.74 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.5037, allocations: 159.9 kB / 280.5 MB, free: 15.59 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003606/0.5073, allocations: 0.7616 MB / 281.3 MB, free: 14.81 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002662/0.5076, allocations: 27.94 kB / 281.3 MB, free: 14.78 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01701/0.5247, allocations: 9.56 MB / 290.9 MB, free: 4.766 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/0.5247, allocations: 4 kB / 290.9 MB, free: 4.762 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007862/0.5326, allocations: 2.97 MB / 293.8 MB, free: 1.727 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000926/0.5336, allocations: 296 kB / 294.1 MB, free: 1.418 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.5338, allocations: 15.94 kB / 294.1 MB, free: 1.402 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.5349, allocations: 51.92 kB / 294.2 MB, free: 1.352 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004699/0.5354, allocations: 93.2 kB / 294.3 MB, free: 1.258 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.5355, allocations: 35.98 kB / 294.3 MB, free: 1.223 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008092/0.5364, allocations: 398.9 kB / 294.7 MB, free: 0.832 MB / 234.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5364, allocations: 0 / 294.7 MB, free: 0.832 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001907/0.5383, allocations: 315.9 kB / 295 MB, free: 0.5234 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,87.5%) 23,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1642/0.7026, allocations: 3.805 MB / 298.8 MB, free: 65.95 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005793/0.7084, allocations: 2.22 MB / 301 MB, free: 65.39 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.7085, allocations: 1.375 kB / 301 MB, free: 65.39 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004008/0.7125, allocations: 1.563 MB / 302.6 MB, free: 64.85 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.7147, allocations: 177.5 kB / 302.8 MB, free: 64.85 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008407/0.7231, allocations: 2.983 MB / 305.8 MB, free: 64.13 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.7244, allocations: 1.366 MB / 307.1 MB, free: 63.4 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009713/0.7254, allocations: 430.2 kB / 307.5 MB, free: 63.39 MB / 234.7 MB Notification: Performance of SimCode: time 2.014e-06/0.7254, allocations: 0 / 307.5 MB, free: 63.39 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.883/4.609, allocations: 48.6 MB / 356.1 MB, free: 31.04 MB / 234.7 MB