Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.AIMC_Inverter") Notification: Performance of loadModel(Modelica): time 0.9355/0.9356, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.995e-05/2.002e-05, allocations: 4 kB / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1346, allocations: 25.14 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06432/0.199, allocations: 44.22 MB / 223.6 MB, free: 4.875 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.1993, allocations: 67.97 kB / 223.7 MB, free: 4.809 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2118/0.4111, allocations: 24.33 MB / 248 MB, free: 44.76 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.906e-06/0.4111, allocations: 0 / 248 MB, free: 44.76 MB / 202.7 MB Notification: Performance of Transformations before backend: time 8.517e-05/0.4112, allocations: 33.45 kB / 248.1 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.003027/0.4143, allocations: 1.484 MB / 249.6 MB, free: 44.1 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.4143, allocations: 13.22 kB / 249.6 MB, free: 44.1 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003093/0.4146, allocations: 153.7 kB / 249.7 MB, free: 44.03 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00159/0.4163, allocations: 0.8737 MB / 250.6 MB, free: 43.72 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.967e-05/0.4164, allocations: 98.69 kB / 250.7 MB, free: 43.72 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002602/0.4166, allocations: 131.3 kB / 250.8 MB, free: 43.71 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003163/0.4198, allocations: 1.741 MB / 252.6 MB, free: 43.51 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.049e-05/0.4199, allocations: 3.75 kB / 252.6 MB, free: 43.51 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/0.4201, allocations: 61.48 kB / 252.6 MB, free: 43.51 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-05/0.4202, allocations: 63.31 kB / 252.7 MB, free: 43.5 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.4229, allocations: 1.427 MB / 254.1 MB, free: 43.48 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008908/0.4319, allocations: 4.78 MB / 258.9 MB, free: 41.64 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.434, allocations: 1.474 MB / 260.4 MB, free: 40.68 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000933/0.435, allocations: 0.5677 MB / 260.9 MB, free: 40.46 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.636e-05/0.435, allocations: 12.06 kB / 260.9 MB, free: 40.46 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.4351, allocations: 44.2 kB / 261 MB, free: 40.41 MB / 202.7 MB Notification: Performance of pre-optimization done (n=77): time 4.175e-06/0.4351, allocations: 0 / 261 MB, free: 40.41 MB / 202.7 MB Notification: Performance of matching and sorting (n=99): time 0.01472/0.4498, allocations: 5.507 MB / 266.5 MB, free: 37.69 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.4499, allocations: 60.41 kB / 266.5 MB, free: 37.62 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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.0009797/0.4509, allocations: 0.5731 MB / 267.1 MB, free: 37.1 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.451, allocations: 41.7 kB / 267.2 MB, free: 37.05 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.4513, allocations: 0.5681 MB / 267.7 MB, free: 36.52 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002664/0.4515, allocations: 344.8 kB / 268.1 MB, free: 36.22 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.717e-05/0.4516, allocations: 16 kB / 268.1 MB, free: 36.21 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 8.435e-05/0.4517, allocations: 349.1 kB / 268.4 MB, free: 35.87 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009614/0.4527, allocations: 0.5624 MB / 269 MB, free: 35.36 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.4537, allocations: 0.655 MB / 269.6 MB, free: 34.76 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.4549, allocations: 0.6782 MB / 270.3 MB, free: 34.18 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.4549, allocations: 0 / 270.3 MB, free: 34.18 MB / 202.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003971/0.4589, allocations: 2.004 MB / 272.3 MB, free: 32.45 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.4589, allocations: 4 kB / 272.3 MB, free: 32.45 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.4589, allocations: 4 kB / 272.3 MB, free: 32.45 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.4611, allocations: 0.6948 MB / 273 MB, free: 31.88 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009175/0.462, allocations: 171 kB / 273.2 MB, free: 31.74 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.4729, allocations: 8.622 MB / 281.8 MB, free: 23.52 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008273/0.4738, allocations: 75.95 kB / 281.9 MB, free: 23.44 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.524e-05/0.4739, allocations: 32 kB / 281.9 MB, free: 23.41 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.0003078/0.4742, allocations: 177.5 kB / 282.1 MB, free: 23.24 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.4744, allocations: 79.06 kB / 282.2 MB, free: 23.16 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004079/0.4785, allocations: 2.058 MB / 284.2 MB, free: 21.09 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.4785, allocations: 12 kB / 284.2 MB, free: 21.07 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.871e-06/0.4786, allocations: 4 kB / 284.2 MB, free: 21.07 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4786, allocations: 7.969 kB / 284.3 MB, free: 21.06 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007428/0.486, allocations: 3.852 MB / 288.1 MB, free: 17.14 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.431e-06/0.4861, allocations: 0 / 288.1 MB, free: 17.14 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007981/0.4869, allocations: 143.9 kB / 288.2 MB, free: 17 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002309/0.4892, allocations: 0.7215 MB / 289 MB, free: 16.27 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.4893, allocations: 35.59 kB / 289 MB, free: 16.24 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/0.4997, allocations: 8.446 MB / 297.4 MB, free: 7.406 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.501e-06/0.4997, allocations: 0 / 297.4 MB, free: 7.406 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005211/0.5049, allocations: 2.973 MB / 300.4 MB, free: 4.363 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006046/0.5056, allocations: 295.9 kB / 300.7 MB, free: 4.055 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.5058, allocations: 20 kB / 300.7 MB, free: 4.035 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007414/0.5065, allocations: 79.91 kB / 300.8 MB, free: 3.957 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002588/0.5068, allocations: 80.88 kB / 300.9 MB, free: 3.875 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.507, allocations: 35.94 kB / 300.9 MB, free: 3.84 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006489/0.5076, allocations: 441.5 kB / 301.4 MB, free: 3.414 MB / 202.7 MB Notification: Performance of sort global known variables: time 9.01e-07/0.5076, allocations: 0 / 301.4 MB, free: 3.414 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001425/0.5091, allocations: 332 kB / 301.7 MB, free: 3.09 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.000242/0.5093, allocations: 144.1 kB / 301.8 MB, free: 2.941 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003728/0.5131, allocations: 2.096 MB / 303.9 MB, free: 0.7852 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.785e-06/0.5131, allocations: 3.938 kB / 303.9 MB, free: 0.7812 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002795/0.5159, allocations: 1.451 MB / 305.4 MB, free: 15.28 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.5173, allocations: 180.3 kB / 305.5 MB, free: 15.11 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005844/0.5231, allocations: 2.693 MB / 308.2 MB, free: 12.41 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.5248, allocations: 1.443 MB / 309.7 MB, free: 10.94 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.5252, allocations: 63.42 kB / 309.7 MB, free: 10.88 MB / 218.7 MB Notification: Performance of SimCode: time 1.71e-06/0.5252, allocations: 0 / 309.7 MB, free: 10.88 MB / 218.7 MB Notification: Performance of Templates: time 0.1781/0.7032, allocations: 38.79 MB / 348.5 MB, free: 67.36 MB / 234.7 MB