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_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.AIMC_Steinmetz") Notification: Performance of loadModel(Modelica): time 1.028/1.028, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002673/0.0002675, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04679/0.04708, allocations: 25.17 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AIMC_Steinmetz): time 0.006555/0.05368, allocations: 4.319 MB / 187.7 MB, free: 1.68 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003203/0.05693, allocations: 1.181 MB / 188.9 MB, free: 0.4961 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009132/0.05789, allocations: 23.88 kB / 188.9 MB, free: 484 kB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005117/0.05843, allocations: 159 kB / 189.1 MB, free: 324 kB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.05968, allocations: 315 kB / 189.4 MB, free: 8 kB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006096/0.06032, allocations: 151.8 kB / 189.6 MB, free: 15.86 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.001738/0.06208, allocations: 0.9244 MB / 190.5 MB, free: 14.93 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0014/0.0635, allocations: 0.7513 MB / 191.2 MB, free: 14.16 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009012/0.06443, allocations: 478.3 kB / 191.7 MB, free: 13.7 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009614/0.06542, allocations: 0.5915 MB / 192.3 MB, free: 13.1 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003005/0.06574, allocations: 76 kB / 192.4 MB, free: 13.03 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004083/0.06617, allocations: 76 kB / 192.4 MB, free: 12.95 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009005/0.0671, allocations: 382.9 kB / 192.8 MB, free: 12.58 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007738/0.0679, allocations: 285 kB / 193.1 MB, free: 12.29 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003147/0.07108, allocations: 1.769 MB / 194.9 MB, free: 10.52 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.842e-06/0.07112, allocations: 0 / 194.9 MB, free: 10.52 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.07e-06/0.07113, allocations: 0 / 194.9 MB, free: 10.52 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.479e-05/0.07119, allocations: 0 / 194.9 MB, free: 10.52 MB / 170.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.004527/0.07573, allocations: 1.489 MB / 196.3 MB, free: 8.977 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.07579, allocations: 8.031 kB / 196.4 MB, free: 8.969 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004199/0.07622, allocations: 142.3 kB / 196.5 MB, free: 8.828 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003018/0.07925, allocations: 0.8203 MB / 197.3 MB, free: 7.961 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001732/0.07946, allocations: 90.41 kB / 197.4 MB, free: 7.871 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005437/0.08003, allocations: 123.9 kB / 197.5 MB, free: 7.75 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006403/0.08645, allocations: 1.611 MB / 199.1 MB, free: 6.082 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.549e-05/0.08655, allocations: 11.84 kB / 199.1 MB, free: 6.07 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.08676, allocations: 44 kB / 199.2 MB, free: 6.027 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001536/0.08694, allocations: 62.42 kB / 199.3 MB, free: 5.965 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005766/0.09273, allocations: 1.309 MB / 200.6 MB, free: 4.648 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1341/0.2269, allocations: 4.831 MB / 205.4 MB, free: 22.16 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002414/0.2294, allocations: 1.342 MB / 206.7 MB, free: 21.66 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.087e-05/0.2295, allocations: 9.703 kB / 206.7 MB, free: 21.66 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.2295, allocations: 41.78 kB / 206.8 MB, free: 21.62 MB / 170.7 MB Notification: Performance of pre-optimization done (n=79): time 4.429e-06/0.2295, allocations: 0 / 206.8 MB, free: 21.62 MB / 170.7 MB Notification: Performance of matching and sorting (n=97): time 0.01719/0.2467, allocations: 6.128 MB / 212.9 MB, free: 19.7 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.2468, allocations: 65.47 kB / 213 MB, free: 19.63 MB / 170.7 MB [/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.001091/0.2479, allocations: 0.6468 MB / 213.6 MB, free: 19.32 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.248, allocations: 45.64 kB / 213.7 MB, free: 19.28 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.2483, allocations: 0.5491 MB / 214.2 MB, free: 18.77 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002689/0.2486, allocations: 340.2 kB / 214.5 MB, free: 18.49 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.592e-05/0.2487, allocations: 19.88 kB / 214.6 MB, free: 18.47 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.403e-05/0.2488, allocations: 346.5 kB / 214.9 MB, free: 18.13 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.2499, allocations: 0.5277 MB / 215.4 MB, free: 17.87 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.251, allocations: 0.7023 MB / 216.1 MB, free: 17.39 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.2522, allocations: 0.6528 MB / 216.8 MB, free: 17.05 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.813e-06/0.2523, allocations: 0.875 kB / 216.8 MB, free: 17.05 MB / 170.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004244/0.2565, allocations: 1.981 MB / 218.8 MB, free: 15.99 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.2566, allocations: 8.125 kB / 218.8 MB, free: 15.99 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2566, allocations: 11.03 kB / 218.8 MB, free: 15.98 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/0.2589, allocations: 0.694 MB / 219.5 MB, free: 15.63 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007812/0.2597, allocations: 175.9 kB / 219.7 MB, free: 15.59 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/0.2714, allocations: 9.845 MB / 229.5 MB, free: 5.898 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007672/0.2722, allocations: 63.97 kB / 229.6 MB, free: 5.836 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.87e-05/0.2723, allocations: 32 kB / 229.6 MB, free: 5.805 MB / 170.7 MB Warning: Assuming fixed start value for the following 9 variables: cStart.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real cRun.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real quadraticLoadTorque.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.i_0_s:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator zero-sequence current" type: Real aimc.inertiaRotor.w:VARIABLE(unit = "rad/s" fixed = true ) "Absolute angular velocity of component (= der(phi))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 85 * 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%) 19,(2,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008586/0.2732, allocations: 483.5 kB / 230.1 MB, free: 5.328 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.2733, allocations: 82.97 kB / 230.1 MB, free: 5.246 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003957/0.2773, allocations: 1.955 MB / 232.1 MB, free: 3.262 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.2774, allocations: 12 kB / 232.1 MB, free: 3.25 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.2774, allocations: 4 kB / 232.1 MB, free: 3.246 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.2774, allocations: 9.078 kB / 232.1 MB, free: 3.238 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007231/0.2846, allocations: 3.617 MB / 235.7 MB, free: 15.55 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.184e-06/0.2847, allocations: 0 / 235.7 MB, free: 15.55 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007466/0.2854, allocations: 123.8 kB / 235.9 MB, free: 15.43 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002623/0.2881, allocations: 0.7158 MB / 236.6 MB, free: 14.7 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.2882, allocations: 23.98 kB / 236.6 MB, free: 14.68 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01648/0.3047, allocations: 9.671 MB / 246.3 MB, free: 4.492 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/0.3048, allocations: 4 kB / 246.3 MB, free: 4.488 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/0.3153, allocations: 2.756 MB / 249 MB, free: 1.691 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009831/0.3164, allocations: 268.1 kB / 249.3 MB, free: 1.41 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.3166, allocations: 27.97 kB / 249.3 MB, free: 1.383 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006261/0.3172, allocations: 43.95 kB / 249.4 MB, free: 1.34 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/0.3175, allocations: 88.78 kB / 249.5 MB, free: 1.25 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.34e-05/0.3176, allocations: 20 kB / 249.5 MB, free: 1.23 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0007941/0.3184, allocations: 452.9 kB / 249.9 MB, free: 0.7891 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.28e-07/0.3184, allocations: 0 / 249.9 MB, free: 0.7891 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001629/0.3201, allocations: 324 kB / 250.2 MB, free: 484 kB / 186.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 58 * 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%) 19,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002551/0.3204, allocations: 127.2 kB / 250.4 MB, free: 344 kB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.004794/0.3252, allocations: 2.158 MB / 252.5 MB, free: 14.11 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.409e-06/0.3252, allocations: 0 / 252.5 MB, free: 14.11 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003274/0.3285, allocations: 1.518 MB / 254 MB, free: 12.52 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.3298, allocations: 197.2 kB / 254.2 MB, free: 12.33 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006867/0.3367, allocations: 3.712 MB / 257.9 MB, free: 8.57 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001446/0.3382, allocations: 1.352 MB / 259.3 MB, free: 7.195 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.3385, allocations: 63.44 kB / 259.4 MB, free: 7.133 MB / 202.7 MB Notification: Performance of SimCode: time 1.664e-06/0.3385, allocations: 0 / 259.4 MB, free: 7.133 MB / 202.7 MB Notification: Performance of Templates: time 0.2617/0.6002, allocations: 41.1 MB / 300.5 MB, free: 78.11 MB / 234.7 MB