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.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Machines.Examples.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 0.9753/0.9753, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002699/0.0002701, allocations: 12 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04589/0.04618, allocations: 25.16 MB / 183.5 MB, free: 5.984 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1825/0.2288, allocations: 46.56 MB / 230.1 MB, free: 15.97 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.2291, allocations: 68.53 kB / 230.1 MB, free: 15.94 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1126/0.3417, allocations: 29.02 MB / 259.1 MB, free: 6.914 MB / 202.7 MB Notification: Performance of FrontEnd: time 6.393e-06/0.3418, allocations: 0 / 259.1 MB, free: 6.914 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001407/0.3419, allocations: 51.88 kB / 259.2 MB, free: 6.863 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.005138/0.3471, allocations: 1.897 MB / 261.1 MB, free: 4.91 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3471, allocations: 12.03 kB / 261.1 MB, free: 4.898 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000563/0.3477, allocations: 189.7 kB / 261.3 MB, free: 4.711 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002764/0.3505, allocations: 1.059 MB / 262.3 MB, free: 3.605 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.3507, allocations: 127.5 kB / 262.5 MB, free: 3.48 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004049/0.3511, allocations: 160 kB / 262.6 MB, free: 3.324 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005518/0.3566, allocations: 2.222 MB / 264.8 MB, free: 1.027 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.355e-05/0.3567, allocations: 11.92 kB / 264.9 MB, free: 1.016 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000266/0.357, allocations: 75.92 kB / 264.9 MB, free: 0.9414 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.3571, allocations: 79.3 kB / 265 MB, free: 0.8633 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004869/0.362, allocations: 1.86 MB / 266.9 MB, free: 15 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.3765, allocations: 6.223 MB / 273.1 MB, free: 8.645 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.38, allocations: 1.909 MB / 275 MB, free: 6.559 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.864e-05/0.3801, allocations: 13 kB / 275 MB, free: 6.547 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.431e-05/0.3802, allocations: 39.56 kB / 275.1 MB, free: 6.5 MB / 218.7 MB Notification: Performance of pre-optimization done (n=92): time 4.833e-06/0.3802, allocations: 3.938 kB / 275.1 MB, free: 6.496 MB / 218.7 MB Notification: Performance of matching and sorting (n=112): time 0.02124/0.4014, allocations: 6.747 MB / 281.8 MB, free: 15.63 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.4015, allocations: 64.41 kB / 281.9 MB, free: 15.56 MB / 234.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:2122:9-2124:75:writable] Warning: Parameter smpm.Rrd 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:2116:9-2118:75:writable] Warning: Parameter smpm.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2113:9-2115:51:writable] Warning: Parameter smpm.useDamperCage has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2110:9-2112:75:writable] Warning: Parameter smpm.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2107:9-2109:75:writable] Warning: Parameter smpm.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2104:9-2106:50:writable] Warning: Parameter smpm.VsOpenCircuit has no value, and is fixed during initialization (fixed=true), using available start value (start=112.3) 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 smpm.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smpm.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 smpm.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 smpm.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 smpm.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 smpm.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smpm.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 smpm.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.00167/0.4032, allocations: 0.75 MB / 282.6 MB, free: 14.8 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001652/0.4034, allocations: 41.7 kB / 282.7 MB, free: 14.76 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006267/0.404, allocations: 0.7001 MB / 283.4 MB, free: 14.05 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004736/0.4045, allocations: 382.4 kB / 283.7 MB, free: 13.67 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.4046, allocations: 24 kB / 283.8 MB, free: 13.65 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.4049, allocations: 354.8 kB / 284.1 MB, free: 13.29 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/0.4065, allocations: 0.674 MB / 284.8 MB, free: 12.62 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/0.4083, allocations: 0.8365 MB / 285.6 MB, free: 11.73 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001907/0.4102, allocations: 0.8092 MB / 286.4 MB, free: 10.92 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.213e-06/0.4103, allocations: 0 / 286.4 MB, free: 10.92 MB / 234.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.005767/0.416, allocations: 2.236 MB / 288.7 MB, free: 8.664 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.4161, allocations: 11.95 kB / 288.7 MB, free: 8.652 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.4161, allocations: 4 kB / 288.7 MB, free: 8.648 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002372/0.4185, allocations: 0.6465 MB / 289.3 MB, free: 7.992 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.4198, allocations: 227.6 kB / 289.5 MB, free: 7.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1479/0.5678, allocations: 8.874 MB / 298.4 MB, free: 57.02 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.5688, allocations: 100.8 kB / 298.5 MB, free: 57.02 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.569, allocations: 38.98 kB / 298.6 MB, free: 57.02 MB / 234.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 smpm.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.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: 17 * 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 (104): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,80.6%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00126/0.5703, allocations: 0.6054 MB / 299.2 MB, free: 56.9 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.5705, allocations: 102.7 kB / 299.3 MB, free: 56.9 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005118/0.5756, allocations: 2.241 MB / 301.5 MB, free: 56.81 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.5757, allocations: 15.12 kB / 301.5 MB, free: 56.81 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.5757, allocations: 7.156 kB / 301.5 MB, free: 56.81 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.625e-05/0.5757, allocations: 3.656 kB / 301.5 MB, free: 56.81 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00988/0.5856, allocations: 4.287 MB / 305.8 MB, free: 56.41 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.886e-06/0.5857, allocations: 4.25 kB / 305.8 MB, free: 56.41 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.5868, allocations: 173.9 kB / 306 MB, free: 56.41 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/0.5893, allocations: 0.6448 MB / 306.6 MB, free: 56.39 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001362/0.5895, allocations: 27.06 kB / 306.7 MB, free: 56.39 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01249/0.602, allocations: 8.717 MB / 315.4 MB, free: 52.19 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.602, allocations: 0.6562 kB / 315.4 MB, free: 52.19 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006329/0.6084, allocations: 3.215 MB / 318.6 MB, free: 50.94 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007207/0.6091, allocations: 328.1 kB / 318.9 MB, free: 50.73 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001951/0.6094, allocations: 34.86 kB / 318.9 MB, free: 50.71 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000792/0.6102, allocations: 80.86 kB / 319 MB, free: 50.7 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.6104, allocations: 89.5 kB / 319.1 MB, free: 50.68 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.95e-05/0.6106, allocations: 36.19 kB / 319.1 MB, free: 50.67 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008731/0.6114, allocations: 0.5592 MB / 319.7 MB, free: 50.43 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.24e-07/0.6115, allocations: 0 / 319.7 MB, free: 50.43 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001601/0.6131, allocations: 379.2 kB / 320.1 MB, free: 50.39 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[1],smpm.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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,80.6%) 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.0002521/0.6133, allocations: 144.9 kB / 320.2 MB, free: 50.29 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004314/0.6177, allocations: 2.253 MB / 322.5 MB, free: 49.31 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.6177, allocations: 2.734 kB / 322.5 MB, free: 49.31 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003054/0.6208, allocations: 1.472 MB / 323.9 MB, free: 48.6 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.6221, allocations: 212.3 kB / 324.2 MB, free: 48.55 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006586/0.6287, allocations: 4.417 MB / 328.6 MB, free: 46.17 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/0.6301, allocations: 1.617 MB / 330.2 MB, free: 45.29 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004342/0.6305, allocations: 76.83 kB / 330.3 MB, free: 45.28 MB / 234.7 MB Notification: Performance of SimCode: time 1.645e-06/0.6306, allocations: 4 kB / 330.3 MB, free: 45.28 MB / 234.7 MB Notification: Performance of Templates: time 0.045/0.6756, allocations: 40.14 MB / 370.4 MB, free: 14.09 MB / 234.7 MB