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.054/1.054, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.572e-05/2.581e-05, allocations: 4 kB / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1396, allocations: 25.15 MB / 179.4 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06859/0.2082, allocations: 44.14 MB / 223.6 MB, free: 4.945 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.2085, allocations: 63.97 kB / 223.6 MB, free: 4.883 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2107/0.4192, allocations: 22.95 MB / 246.6 MB, free: 44.48 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.042e-06/0.4193, allocations: 2.906 kB / 246.6 MB, free: 44.48 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001062/0.4194, allocations: 31.89 kB / 246.6 MB, free: 44.47 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.002987/0.4224, allocations: 1.377 MB / 248 MB, free: 43.85 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.4225, allocations: 10.44 kB / 248 MB, free: 43.85 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003491/0.4228, allocations: 152.3 kB / 248.1 MB, free: 43.78 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.4243, allocations: 0.7942 MB / 248.9 MB, free: 43.49 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.13e-05/0.4244, allocations: 86.08 kB / 249 MB, free: 43.48 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002358/0.4247, allocations: 124.7 kB / 249.1 MB, free: 43.48 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003091/0.4278, allocations: 1.599 MB / 250.7 MB, free: 43.27 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.627e-05/0.4279, allocations: 12.86 kB / 250.8 MB, free: 43.27 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001705/0.428, allocations: 51.22 kB / 250.8 MB, free: 43.27 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.888e-05/0.4281, allocations: 52.86 kB / 250.9 MB, free: 43.26 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002722/0.4309, allocations: 1.296 MB / 252.2 MB, free: 43.25 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009785/0.4407, allocations: 4.811 MB / 257 MB, free: 41.72 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002307/0.443, allocations: 1.529 MB / 258.5 MB, free: 40.79 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001476/0.4445, allocations: 0.7328 MB / 259.2 MB, free: 40.53 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.64e-05/0.4446, allocations: 20.28 kB / 259.2 MB, free: 40.52 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.4447, allocations: 37.81 kB / 259.3 MB, free: 40.48 MB / 202.7 MB Notification: Performance of pre-optimization done (n=95): time 4.65e-06/0.4447, allocations: 0 / 259.3 MB, free: 40.48 MB / 202.7 MB Notification: Performance of matching and sorting (n=116): time 0.01662/0.4613, allocations: 5.617 MB / 264.9 MB, free: 38.46 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/0.4614, allocations: 68.41 kB / 265 MB, free: 38.38 MB / 202.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.001048/0.4624, allocations: 0.6004 MB / 265.6 MB, free: 37.84 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.4626, allocations: 45.7 kB / 265.6 MB, free: 37.79 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.4628, allocations: 0.5203 MB / 266.1 MB, free: 37.3 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002954/0.4631, allocations: 394.6 kB / 266.5 MB, free: 36.95 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.4632, allocations: 20 kB / 266.5 MB, free: 36.93 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 9.145e-05/0.4633, allocations: 356.5 kB / 266.9 MB, free: 36.59 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.4644, allocations: 0.5801 MB / 267.5 MB, free: 36.06 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.4655, allocations: 0.6962 MB / 268.2 MB, free: 35.4 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.4668, allocations: 0.707 MB / 268.9 MB, free: 34.8 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.256e-06/0.4668, allocations: 0 / 268.9 MB, free: 34.8 MB / 202.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.00433/0.4712, allocations: 2.129 MB / 271 MB, free: 32.95 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.4712, allocations: 4 kB / 271 MB, free: 32.95 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.4712, allocations: 4 kB / 271 MB, free: 32.94 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/0.4736, allocations: 0.7468 MB / 271.8 MB, free: 32.32 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.4746, allocations: 201.9 kB / 271.9 MB, free: 32.16 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.4868, allocations: 10.1 MB / 282.1 MB, free: 22.38 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000921/0.4877, allocations: 74.61 kB / 282.1 MB, free: 22.32 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.4878, allocations: 40.67 kB / 282.2 MB, free: 22.29 MB / 202.7 MB Warning: Assuming fixed start value for the following 9 variables: cStart.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real cRun.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real quadraticLoadTorque.phi:VARIABLE(unit = "rad" ) "Angle of flange with respect to support (= flange.phi - support.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.i_0_s:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator zero-sequence current" type: Real aimc.inertiaRotor.w:VARIABLE(unit = "rad/s" ) "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: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 90 * 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%) 23,(3,100.0%) 9,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003356/0.4882, allocations: 182.5 kB / 282.3 MB, free: 22.12 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.4884, allocations: 94.88 kB / 282.4 MB, free: 22.02 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004344/0.4928, allocations: 2.145 MB / 284.6 MB, free: 20.21 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.4928, allocations: 12 kB / 284.6 MB, free: 20.2 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.4928, allocations: 8 kB / 284.6 MB, free: 20.19 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.4928, allocations: 3.797 kB / 284.6 MB, free: 20.19 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00784/0.5007, allocations: 3.929 MB / 288.5 MB, free: 16.22 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.5007, allocations: 4 kB / 288.5 MB, free: 16.22 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009042/0.5017, allocations: 159.9 kB / 288.7 MB, free: 16.06 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002492/0.5042, allocations: 0.7737 MB / 289.5 MB, free: 15.27 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.5043, allocations: 31.98 kB / 289.5 MB, free: 15.24 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01179/0.5161, allocations: 9.963 MB / 299.5 MB, free: 4.773 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.2e-06/0.5162, allocations: 0 / 299.5 MB, free: 4.773 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005627/0.5218, allocations: 3.064 MB / 302.5 MB, free: 1.641 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006884/0.5225, allocations: 307.9 kB / 302.8 MB, free: 1.32 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/0.5227, allocations: 24 kB / 302.8 MB, free: 1.297 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007696/0.5235, allocations: 75.88 kB / 302.9 MB, free: 1.223 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003034/0.5238, allocations: 92.84 kB / 303 MB, free: 1.133 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.524, allocations: 39.98 kB / 303.1 MB, free: 1.094 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0006629/0.5246, allocations: 459.1 kB / 303.5 MB, free: 0.6523 MB / 202.7 MB Notification: Performance of sort global known variables: time 8.09e-07/0.5247, allocations: 0 / 303.5 MB, free: 0.6523 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001453/0.5261, allocations: 367.9 kB / 303.9 MB, free: 300 kB / 202.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * 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%) 23,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000242/0.5264, allocations: 136.8 kB / 304 MB, free: 156 kB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.004922/0.5313, allocations: 2.303 MB / 306.3 MB, free: 13.78 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.5314, allocations: 4 kB / 306.3 MB, free: 13.78 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003428/0.5348, allocations: 1.626 MB / 307.9 MB, free: 12.07 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.5364, allocations: 216.8 kB / 308.1 MB, free: 11.86 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005757/0.5421, allocations: 2.731 MB / 310.9 MB, free: 9.148 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001521/0.5437, allocations: 1.372 MB / 312.2 MB, free: 7.742 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.5441, allocations: 67.42 kB / 312.3 MB, free: 7.676 MB / 218.7 MB Notification: Performance of SimCode: time 1.778e-06/0.5441, allocations: 0 / 312.3 MB, free: 7.676 MB / 218.7 MB Notification: Performance of Templates: time 0.1851/0.7292, allocations: 42.34 MB / 354.7 MB, free: 63.57 MB / 234.7 MB