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 1.162/1.162, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002757, allocations: 4 kB / 158.2 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04689/0.04719, allocations: 25.18 MB / 183.4 MB, free: 5.996 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AIMC_Inverter): time 0.00605/0.05329, allocations: 3.894 MB / 187.3 MB, free: 2.09 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.05623, allocations: 1.111 MB / 188.4 MB, free: 0.9766 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000757/0.05703, allocations: 23.88 kB / 188.5 MB, free: 0.9531 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005023/0.05757, allocations: 167 kB / 188.6 MB, free: 0.7891 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001099/0.05868, allocations: 263.2 kB / 188.9 MB, free: 0.5312 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005742/0.05928, allocations: 139.8 kB / 189 MB, free: 404 kB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.001686/0.06098, allocations: 0.8459 MB / 189.9 MB, free: 15.55 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.06269, allocations: 0.9434 MB / 190.8 MB, free: 14.59 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.06373, allocations: 486.2 kB / 191.3 MB, free: 14.11 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000996/0.06475, allocations: 0.5954 MB / 191.9 MB, free: 13.52 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002554/0.06505, allocations: 76 kB / 191.9 MB, free: 13.44 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002831/0.06535, allocations: 80 kB / 192 MB, free: 13.36 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006553/0.06602, allocations: 434.8 kB / 192.4 MB, free: 12.94 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004347/0.06647, allocations: 289 kB / 192.7 MB, free: 12.65 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002732/0.06922, allocations: 1.96 MB / 194.7 MB, free: 10.68 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.314e-06/0.06926, allocations: 0 / 194.7 MB, free: 10.68 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.936e-06/0.06927, allocations: 4 kB / 194.7 MB, free: 10.68 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.34e-05/0.06933, allocations: 0 / 194.7 MB, free: 10.68 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.003984/0.07332, allocations: 1.584 MB / 196.3 MB, free: 9.043 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.07338, allocations: 11.97 kB / 196.3 MB, free: 9.031 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004648/0.07387, allocations: 150.2 kB / 196.4 MB, free: 8.883 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.07598, allocations: 0.8634 MB / 197.3 MB, free: 7.977 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.07614, allocations: 94.58 kB / 197.4 MB, free: 7.883 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003527/0.07651, allocations: 124 kB / 197.5 MB, free: 7.762 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004579/0.0811, allocations: 1.819 MB / 199.3 MB, free: 5.895 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.13e-05/0.08119, allocations: 11.89 kB / 199.3 MB, free: 5.883 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001738/0.08138, allocations: 52 kB / 199.4 MB, free: 5.832 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/0.0815, allocations: 66.61 kB / 199.5 MB, free: 5.766 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004246/0.08576, allocations: 1.54 MB / 201 MB, free: 4.219 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1302/0.216, allocations: 4.818 MB / 205.8 MB, free: 21.44 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/0.2187, allocations: 1.456 MB / 207.3 MB, free: 20.83 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.045e-05/0.2188, allocations: 11.64 kB / 207.3 MB, free: 20.83 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.2188, allocations: 37.5 kB / 207.3 MB, free: 20.79 MB / 170.7 MB Notification: Performance of pre-optimization done (n=74): time 4.446e-06/0.2188, allocations: 3.969 kB / 207.3 MB, free: 20.79 MB / 170.7 MB Notification: Performance of matching and sorting (n=92): time 0.01766/0.2365, allocations: 6.204 MB / 213.5 MB, free: 18.97 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.2366, allocations: 60.28 kB / 213.6 MB, free: 18.9 MB / 170.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.001012/0.2376, allocations: 0.6073 MB / 214.2 MB, free: 18.54 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.2378, allocations: 41.64 kB / 214.2 MB, free: 18.5 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.2381, allocations: 0.5631 MB / 214.8 MB, free: 17.98 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.2383, allocations: 322.3 kB / 215.1 MB, free: 17.71 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.473e-05/0.2384, allocations: 15.91 kB / 215.1 MB, free: 17.7 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.2385, allocations: 342.6 kB / 215.5 MB, free: 17.37 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.2397, allocations: 0.5679 MB / 216 MB, free: 17.08 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.2411, allocations: 0.6641 MB / 216.7 MB, free: 16.69 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.2426, allocations: 0.6722 MB / 217.4 MB, free: 16.34 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.704e-06/0.2426, allocations: 1.375 kB / 217.4 MB, free: 16.34 MB / 170.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004289/0.2469, allocations: 1.94 MB / 219.3 MB, free: 15.31 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.247, allocations: 6.562 kB / 219.3 MB, free: 15.31 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.247, allocations: 3.5 kB / 219.3 MB, free: 15.31 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001996/0.249, allocations: 0.6391 MB / 220 MB, free: 14.99 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009311/0.25, allocations: 173 kB / 220.1 MB, free: 14.94 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.2603, allocations: 8.277 MB / 228.4 MB, free: 6.648 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007477/0.261, allocations: 71.97 kB / 228.5 MB, free: 6.578 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.96e-05/0.2612, allocations: 28 kB / 228.5 MB, free: 6.551 MB / 170.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" 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.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: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 75 * 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,76.0%) 20,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009758/0.2621, allocations: 0.5098 MB / 229 MB, free: 6.039 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002058/0.2624, allocations: 79.06 kB / 229.1 MB, free: 5.961 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00415/0.2665, allocations: 2.028 MB / 231.1 MB, free: 3.91 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.2666, allocations: 8 kB / 231.1 MB, free: 3.902 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.2666, allocations: 4 kB / 231.1 MB, free: 3.898 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.135e-05/0.2666, allocations: 11.3 kB / 231.1 MB, free: 3.891 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008268/0.2749, allocations: 3.745 MB / 234.9 MB, free: 92 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.58e-06/0.275, allocations: 7.969 kB / 234.9 MB, free: 84 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.276, allocations: 143.8 kB / 235 MB, free: 15.94 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002538/0.2786, allocations: 0.6759 MB / 235.7 MB, free: 15.25 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000219/0.2788, allocations: 27.98 kB / 235.7 MB, free: 15.23 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01932/0.2981, allocations: 8.101 MB / 243.8 MB, free: 6.73 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.913e-06/0.2982, allocations: 7.891 kB / 243.8 MB, free: 6.723 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006681/0.3049, allocations: 2.857 MB / 246.7 MB, free: 3.832 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006802/0.3056, allocations: 276.1 kB / 247 MB, free: 3.543 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.3058, allocations: 24 kB / 247 MB, free: 3.52 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006722/0.3065, allocations: 62.44 kB / 247.1 MB, free: 3.461 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/0.3068, allocations: 72.83 kB / 247.1 MB, free: 3.391 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.754e-05/0.3069, allocations: 27.98 kB / 247.2 MB, free: 3.363 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0007377/0.3076, allocations: 410.8 kB / 247.6 MB, free: 2.965 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.73e-07/0.3076, allocations: 4 kB / 247.6 MB, free: 2.961 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001453/0.3091, allocations: 308 kB / 247.9 MB, free: 2.66 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 64 * 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,76.0%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002491/0.3094, allocations: 128.2 kB / 248 MB, free: 2.527 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.004752/0.3141, allocations: 2.078 MB / 250.1 MB, free: 396 kB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.3142, allocations: 0 / 250.1 MB, free: 396 kB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003216/0.3174, allocations: 1.419 MB / 251.5 MB, free: 14.91 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.3186, allocations: 168.2 kB / 251.6 MB, free: 14.75 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007111/0.3258, allocations: 3.735 MB / 255.4 MB, free: 10.98 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001623/0.3274, allocations: 1.431 MB / 256.8 MB, free: 9.523 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.3278, allocations: 63.42 kB / 256.9 MB, free: 9.461 MB / 202.7 MB Notification: Performance of SimCode: time 4.247e-06/0.3278, allocations: 0 / 256.9 MB, free: 9.461 MB / 202.7 MB Notification: Performance of Templates: time 0.05749/0.3853, allocations: 38.08 MB / 295 MB, free: 3.344 MB / 234.7 MB