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_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.AIMC_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.034/1.034, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.931e-05/1.945e-05, allocations: 0 / 154.4 MB, free: 13.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.171, allocations: 25.15 MB / 179.5 MB, free: 0.8086 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09871/0.2698, allocations: 44.22 MB / 223.7 MB, free: 4.848 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/0.2702, allocations: 67.97 kB / 223.8 MB, free: 4.781 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3419/0.6121, allocations: 24.33 MB / 248.1 MB, free: 44.76 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.6121, allocations: 0 / 248.1 MB, free: 44.76 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001461/0.6123, allocations: 32.86 kB / 248.2 MB, free: 44.76 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.006712/0.619, allocations: 1.492 MB / 249.7 MB, free: 44.09 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.6191, allocations: 10.72 kB / 249.7 MB, free: 44.09 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008181/0.6199, allocations: 206.2 kB / 249.9 MB, free: 44.05 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006348/0.6206, allocations: 147.8 kB / 250 MB, free: 43.97 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003219/0.6238, allocations: 0.8712 MB / 250.9 MB, free: 43.67 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.624, allocations: 98 kB / 251 MB, free: 43.66 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005741/0.6246, allocations: 129.3 kB / 251.1 MB, free: 43.66 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006303/0.6309, allocations: 1.741 MB / 252.9 MB, free: 43.46 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.782e-05/0.6311, allocations: 14.84 kB / 252.9 MB, free: 43.45 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003498/0.6315, allocations: 56.94 kB / 252.9 MB, free: 43.45 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/0.6316, allocations: 62.06 kB / 253 MB, free: 43.45 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006053/0.6377, allocations: 1.42 MB / 254.4 MB, free: 43.43 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01816/0.6559, allocations: 4.779 MB / 259.2 MB, free: 41.51 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003984/0.6599, allocations: 1.472 MB / 260.7 MB, free: 40.55 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.6618, allocations: 0.5742 MB / 261.2 MB, free: 40.33 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.662, allocations: 18.39 kB / 261.2 MB, free: 40.32 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/0.662, allocations: 39.75 kB / 261.3 MB, free: 40.28 MB / 202.7 MB Notification: Performance of pre-optimization done (n=77): time 5.33e-06/0.662, allocations: 0 / 261.3 MB, free: 40.28 MB / 202.7 MB Notification: Performance of matching and sorting (n=99): time 0.02655/0.6886, allocations: 5.507 MB / 266.8 MB, free: 37.44 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.6887, allocations: 64.41 kB / 266.9 MB, free: 37.36 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: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.0012/0.6899, allocations: 0.5661 MB / 267.4 MB, free: 36.85 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002007/0.6901, allocations: 45.7 kB / 267.5 MB, free: 36.8 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003056/0.6904, allocations: 0.5664 MB / 268 MB, free: 36.28 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003458/0.6908, allocations: 348.5 kB / 268.4 MB, free: 35.97 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.6909, allocations: 12 kB / 268.4 MB, free: 35.96 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.191e-05/0.691, allocations: 348 kB / 268.7 MB, free: 35.62 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.6922, allocations: 0.5647 MB / 269.3 MB, free: 35.11 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.6936, allocations: 0.6631 MB / 270 MB, free: 34.5 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.695, allocations: 0.671 MB / 270.6 MB, free: 33.93 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.695, allocations: 4 kB / 270.6 MB, free: 33.92 MB / 202.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.005174/0.7002, allocations: 2 MB / 272.6 MB, free: 32.2 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.7003, allocations: 12 kB / 272.6 MB, free: 32.19 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.7003, allocations: 0 / 272.6 MB, free: 32.19 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002892/0.7032, allocations: 0.6948 MB / 273.3 MB, free: 31.62 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.7046, allocations: 169.2 kB / 273.5 MB, free: 31.49 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01387/0.7185, allocations: 8.619 MB / 282.1 MB, free: 23.23 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.7197, allocations: 87.45 kB / 282.2 MB, free: 23.15 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.7199, allocations: 24 kB / 282.2 MB, free: 23.13 MB / 202.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(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.inertiaRotor.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * 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: 3 * 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: 3 {(5,92.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004142/0.7203, allocations: 179 kB / 282.4 MB, free: 22.96 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000237/0.7206, allocations: 83.02 kB / 282.5 MB, free: 22.88 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005437/0.726, allocations: 2.05 MB / 284.5 MB, free: 20.8 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.7261, allocations: 8 kB / 284.5 MB, free: 20.8 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.7261, allocations: 8 kB / 284.5 MB, free: 20.79 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.437e-05/0.7261, allocations: 7.969 kB / 284.6 MB, free: 20.78 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009903/0.736, allocations: 3.852 MB / 288.4 MB, free: 16.86 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.7361, allocations: 4 kB / 288.4 MB, free: 16.86 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.7374, allocations: 144 kB / 288.6 MB, free: 16.72 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003198/0.7406, allocations: 0.7137 MB / 289.3 MB, free: 15.99 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002384/0.7409, allocations: 31.97 kB / 289.3 MB, free: 15.96 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.7544, allocations: 8.44 MB / 297.7 MB, free: 7.133 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.7545, allocations: 10.42 kB / 297.7 MB, free: 7.125 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006851/0.7614, allocations: 2.972 MB / 300.7 MB, free: 4.086 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008277/0.7622, allocations: 292 kB / 301 MB, free: 3.781 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002442/0.7625, allocations: 23.98 kB / 301 MB, free: 3.758 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.7637, allocations: 75.92 kB / 301.1 MB, free: 3.684 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003294/0.764, allocations: 96.77 kB / 301.2 MB, free: 3.586 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.712e-05/0.7641, allocations: 23.98 kB / 301.2 MB, free: 3.562 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0007821/0.7649, allocations: 441.5 kB / 301.7 MB, free: 3.137 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7649, allocations: 0 / 301.7 MB, free: 3.137 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001654/0.7666, allocations: 340 kB / 302 MB, free: 2.805 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 66 * 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: 3 * 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: 3 {(5,92.0%) 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.007794/0.7744, allocations: 3.882 MB / 305.9 MB, free: 14.86 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.005886/0.7804, allocations: 2.1 MB / 308 MB, free: 12.69 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.7804, allocations: 0 / 308 MB, free: 12.69 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004104/0.7845, allocations: 1.463 MB / 309.4 MB, free: 11.17 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/0.7865, allocations: 180.8 kB / 309.6 MB, free: 11 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008284/0.7949, allocations: 3.075 MB / 312.7 MB, free: 7.91 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001572/0.7965, allocations: 1.447 MB / 314.1 MB, free: 6.438 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.7976, allocations: 443.3 kB / 314.6 MB, free: 6.004 MB / 218.7 MB Notification: Performance of SimCode: time 1.412e-06/0.7976, allocations: 0 / 314.6 MB, free: 6.004 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.651/4.449, allocations: 45.81 MB / 360.4 MB, free: 60.59 MB / 234.7 MB