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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.077/1.077, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.64e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04626/0.04632, allocations: 25.18 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.229, allocations: 43.54 MB / 216.8 MB, free: 5.988 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/0.2292, allocations: 67.75 kB / 216.9 MB, free: 5.98 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08413/0.3134, allocations: 24.08 MB / 241 MB, free: 8.551 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.489e-06/0.3134, allocations: 0 / 241 MB, free: 8.551 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001124/0.3135, allocations: 35.94 kB / 241 MB, free: 8.516 MB / 186.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.003954/0.3175, allocations: 1.481 MB / 242.5 MB, free: 7.074 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3176, allocations: 8.031 kB / 242.5 MB, free: 7.066 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000556/0.3181, allocations: 158.1 kB / 242.7 MB, free: 6.91 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.3203, allocations: 0.8693 MB / 243.5 MB, free: 6.195 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-05/0.3204, allocations: 44 kB / 243.6 MB, free: 6.152 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000304/0.3207, allocations: 79.56 kB / 243.7 MB, free: 6.078 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003528/0.3242, allocations: 1.357 MB / 245 MB, free: 5.246 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004069/0.3283, allocations: 1.552 MB / 246.6 MB, free: 3.742 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.408e-05/0.3284, allocations: 11.91 kB / 246.6 MB, free: 3.73 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001757/0.3286, allocations: 3.953 kB / 246.6 MB, free: 3.727 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.81e-05/0.3287, allocations: 62.64 kB / 246.6 MB, free: 3.664 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01162/0.3404, allocations: 4.534 MB / 251.2 MB, free: 15.06 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/0.3431, allocations: 1.446 MB / 252.6 MB, free: 13.5 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.3443, allocations: 0.542 MB / 253.2 MB, free: 12.95 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.99e-05/0.3444, allocations: 20.77 kB / 253.2 MB, free: 12.93 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.3444, allocations: 39.34 kB / 253.2 MB, free: 12.88 MB / 202.7 MB Notification: Performance of pre-optimization done (n=77): time 4.295e-06/0.3444, allocations: 0 / 253.2 MB, free: 12.88 MB / 202.7 MB Notification: Performance of matching and sorting (n=99): time 0.01168/0.3561, allocations: 4.2 MB / 257.4 MB, free: 8.609 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.3562, allocations: 64.72 kB / 257.5 MB, free: 8.535 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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/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/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/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/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/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/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/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.001194/0.3574, allocations: 0.5316 MB / 258 MB, free: 8 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.3576, allocations: 29.69 kB / 258 MB, free: 7.965 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004862/0.3581, allocations: 0.5602 MB / 258.6 MB, free: 7.398 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004148/0.3586, allocations: 323.1 kB / 258.9 MB, free: 7.078 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.148e-05/0.3586, allocations: 0 / 258.9 MB, free: 7.078 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.3589, allocations: 350.8 kB / 259.3 MB, free: 6.727 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.36, allocations: 0.5531 MB / 259.8 MB, free: 6.172 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.3613, allocations: 0.6374 MB / 260.4 MB, free: 5.52 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.3626, allocations: 0.662 MB / 261.1 MB, free: 4.859 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.845e-06/0.3626, allocations: 4 kB / 261.1 MB, free: 4.855 MB / 202.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004553/0.3672, allocations: 1.917 MB / 263 MB, free: 2.918 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.3673, allocations: 8 kB / 263 MB, free: 2.91 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.3673, allocations: 0 / 263 MB, free: 2.91 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002474/0.3698, allocations: 0.6914 MB / 263.7 MB, free: 2.207 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000994/0.3708, allocations: 171.8 kB / 263.9 MB, free: 2.039 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/0.3847, allocations: 8.287 MB / 272.2 MB, free: 9.406 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008765/0.3856, allocations: 55.91 kB / 272.2 MB, free: 9.352 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.3858, allocations: 32.36 kB / 272.3 MB, free: 9.32 MB / 218.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.0003661/0.3862, allocations: 152.1 kB / 272.4 MB, free: 9.168 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.3864, allocations: 75.06 kB / 272.5 MB, free: 9.094 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00472/0.3911, allocations: 1.961 MB / 274.5 MB, free: 7.105 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.3912, allocations: 8 kB / 274.5 MB, free: 7.098 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/0.3912, allocations: 15.95 kB / 274.5 MB, free: 7.082 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.128e-05/0.3912, allocations: 3.984 kB / 274.5 MB, free: 7.078 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008863/0.4001, allocations: 3.584 MB / 278.1 MB, free: 3.426 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.4001, allocations: 0 / 278.1 MB, free: 3.426 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008792/0.401, allocations: 135.8 kB / 278.2 MB, free: 3.293 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002678/0.4037, allocations: 0.7177 MB / 278.9 MB, free: 2.562 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.4039, allocations: 11.98 kB / 278.9 MB, free: 2.551 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/0.4176, allocations: 8.135 MB / 287.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.825e-06/0.4176, allocations: 0 / 287.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006439/0.4241, allocations: 2.888 MB / 290 MB, free: 7.105 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008116/0.4249, allocations: 288.1 kB / 290.2 MB, free: 6.805 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001973/0.4252, allocations: 7.984 kB / 290.2 MB, free: 6.797 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008066/0.426, allocations: 68.09 kB / 290.3 MB, free: 6.73 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/0.4263, allocations: 89.08 kB / 290.4 MB, free: 6.641 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.4264, allocations: 32 kB / 290.4 MB, free: 6.609 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007411/0.4272, allocations: 398.8 kB / 290.8 MB, free: 6.219 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.39e-07/0.4272, allocations: 0 / 290.8 MB, free: 6.219 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0016/0.4288, allocations: 300 kB / 291.1 MB, free: 5.926 MB / 234.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.0003027/0.4291, allocations: 119 kB / 291.2 MB, free: 5.801 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004512/0.4337, allocations: 2.023 MB / 293.2 MB, free: 3.73 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.4337, allocations: 0 / 293.2 MB, free: 3.73 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003175/0.4369, allocations: 1.394 MB / 294.6 MB, free: 2.285 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.4383, allocations: 160 kB / 294.8 MB, free: 2.133 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1291/0.5674, allocations: 2.616 MB / 297.4 MB, free: 66.51 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001669/0.5691, allocations: 1.444 MB / 298.9 MB, free: 65.8 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.5695, allocations: 63.44 kB / 298.9 MB, free: 65.79 MB / 234.7 MB Notification: Performance of SimCode: time 1.93e-06/0.5695, allocations: 3.844 kB / 298.9 MB, free: 65.79 MB / 234.7 MB Notification: Performance of Templates: time 0.04524/0.6148, allocations: 38.47 MB / 337.4 MB, free: 49.21 MB / 234.7 MB