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/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.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.035/1.035, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.257e-05, allocations: 0 / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.192, allocations: 25.16 MB / 179.5 MB, free: 0.8086 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08123/0.2733, allocations: 44.13 MB / 223.7 MB, free: 4.938 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.2736, allocations: 67.97 kB / 223.7 MB, free: 4.871 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2498/0.5234, allocations: 22.95 MB / 246.7 MB, free: 44.56 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5234, allocations: 0 / 246.7 MB, free: 44.56 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001231/0.5235, allocations: 34.5 kB / 246.7 MB, free: 44.55 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005266/0.5288, allocations: 1.385 MB / 248.1 MB, free: 43.93 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.5289, allocations: 8.281 kB / 248.1 MB, free: 43.93 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006463/0.5296, allocations: 191.5 kB / 248.3 MB, free: 43.89 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004721/0.53, allocations: 153.5 kB / 248.4 MB, free: 43.82 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/0.5324, allocations: 0.7837 MB / 249.2 MB, free: 43.53 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.5325, allocations: 94.39 kB / 249.3 MB, free: 43.52 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004176/0.5329, allocations: 132.1 kB / 249.4 MB, free: 43.52 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004438/0.5374, allocations: 1.586 MB / 251 MB, free: 43.31 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-05/0.5376, allocations: 7.625 kB / 251 MB, free: 43.3 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002007/0.5378, allocations: 52.3 kB / 251.1 MB, free: 43.3 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001113/0.5379, allocations: 69.17 kB / 251.2 MB, free: 43.3 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003878/0.5418, allocations: 1.291 MB / 252.4 MB, free: 43.29 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/0.5556, allocations: 4.809 MB / 257.3 MB, free: 41.66 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003261/0.5589, allocations: 1.527 MB / 258.8 MB, free: 40.73 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001924/0.5609, allocations: 0.7366 MB / 259.5 MB, free: 40.47 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001138/0.561, allocations: 11.88 kB / 259.5 MB, free: 40.47 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.5611, allocations: 39 kB / 259.6 MB, free: 40.42 MB / 202.7 MB Notification: Performance of pre-optimization done (n=95): time 3.657e-06/0.5611, allocations: 3.375 kB / 259.6 MB, free: 40.42 MB / 202.7 MB Notification: Performance of matching and sorting (n=116): time 0.02247/0.5836, allocations: 5.622 MB / 265.2 MB, free: 38.28 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.5837, allocations: 64.41 kB / 265.3 MB, free: 38.21 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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/OpenModelica/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.001231/0.5849, allocations: 0.6013 MB / 265.9 MB, free: 37.66 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002727/0.5852, allocations: 41.7 kB / 265.9 MB, free: 37.61 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003056/0.5855, allocations: 0.5181 MB / 266.4 MB, free: 37.13 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005045/0.586, allocations: 396.8 kB / 266.8 MB, free: 36.78 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.5862, allocations: 20 kB / 266.8 MB, free: 36.76 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.5863, allocations: 360.6 kB / 267.2 MB, free: 36.41 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.5876, allocations: 0.5778 MB / 267.7 MB, free: 35.89 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.5891, allocations: 0.699 MB / 268.4 MB, free: 35.23 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.5907, allocations: 0.7069 MB / 269.2 MB, free: 34.62 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.5908, allocations: 0 / 269.2 MB, free: 34.62 MB / 202.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.005911/0.5967, allocations: 2.128 MB / 271.3 MB, free: 32.77 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.5968, allocations: 4 kB / 271.3 MB, free: 32.77 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.5968, allocations: 7.953 kB / 271.3 MB, free: 32.76 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003215/0.6001, allocations: 0.7511 MB / 272 MB, free: 32.14 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.6016, allocations: 198.9 kB / 272.2 MB, free: 31.98 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0155/0.6172, allocations: 10.1 MB / 282.3 MB, free: 22.2 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.6186, allocations: 81.47 kB / 282.4 MB, free: 22.14 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/0.6188, allocations: 32 kB / 282.5 MB, free: 22.11 MB / 202.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.0004451/0.6193, allocations: 180 kB / 282.6 MB, free: 21.94 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.6196, allocations: 90.88 kB / 282.7 MB, free: 21.85 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005842/0.6254, allocations: 2.142 MB / 284.9 MB, free: 20.03 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/0.6255, allocations: 14.94 kB / 284.9 MB, free: 20.02 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/0.6255, allocations: 8 kB / 284.9 MB, free: 20.01 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.054e-05/0.6256, allocations: 3.984 kB / 284.9 MB, free: 20 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.6365, allocations: 3.934 MB / 288.8 MB, free: 16.01 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.25e-05/0.6365, allocations: 7.938 kB / 288.8 MB, free: 16 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.6379, allocations: 151.8 kB / 289 MB, free: 15.85 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003432/0.6414, allocations: 0.7738 MB / 289.8 MB, free: 15.06 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002719/0.6417, allocations: 31.98 kB / 289.8 MB, free: 15.03 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01509/0.6568, allocations: 9.953 MB / 299.7 MB, free: 4.562 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6569, allocations: 0 / 299.7 MB, free: 4.562 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007526/0.6644, allocations: 3.074 MB / 302.8 MB, free: 1.422 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009868/0.6655, allocations: 300 kB / 303.1 MB, free: 1.109 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002917/0.6658, allocations: 27.95 kB / 303.1 MB, free: 1.082 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.6669, allocations: 71.92 kB / 303.2 MB, free: 1.012 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003651/0.6673, allocations: 97.03 kB / 303.3 MB, free: 0.918 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.6674, allocations: 32 kB / 303.3 MB, free: 0.8867 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0007935/0.6682, allocations: 467.1 kB / 303.8 MB, free: 448 kB / 202.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6683, allocations: 0 / 303.8 MB, free: 448 kB / 202.7 MB Notification: Performance of remove unused functions: time 0.001913/0.6702, allocations: 363.9 kB / 304.1 MB, free: 84 kB / 202.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.009502/0.6797, allocations: 3.923 MB / 308.1 MB, free: 12.09 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.006591/0.6864, allocations: 2.309 MB / 310.4 MB, free: 9.719 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/0.6864, allocations: 4 kB / 310.4 MB, free: 9.715 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004548/0.691, allocations: 1.624 MB / 312 MB, free: 8.016 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002416/0.6935, allocations: 220 kB / 312.2 MB, free: 7.805 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008992/0.7025, allocations: 3.08 MB / 315.3 MB, free: 4.723 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/0.7041, allocations: 1.368 MB / 316.7 MB, free: 3.324 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/0.7053, allocations: 431.3 kB / 317.1 MB, free: 2.902 MB / 218.7 MB Notification: Performance of SimCode: time 1.423e-06/0.7053, allocations: 4 kB / 317.1 MB, free: 2.898 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.699/4.404, allocations: 49.07 MB / 366.2 MB, free: 53.22 MB / 234.7 MB