Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.152/1.152, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002754/0.0002755, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05601/0.05631, allocations: 25.17 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2821/0.3384, allocations: 46.55 MB / 230.6 MB, free: 12 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.3388, allocations: 68.84 kB / 230.7 MB, free: 15.98 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.145/0.4839, allocations: 29.03 MB / 259.7 MB, free: 6.961 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.484, allocations: 3.938 kB / 259.7 MB, free: 6.957 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0002286/0.4842, allocations: 43.94 kB / 259.7 MB, free: 6.914 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.009428/0.4936, allocations: 1.905 MB / 261.6 MB, free: 4.953 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/0.4937, allocations: 8.031 kB / 261.6 MB, free: 4.945 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.4949, allocations: 189.7 kB / 261.8 MB, free: 4.758 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003814/0.4988, allocations: 1.055 MB / 262.9 MB, free: 3.66 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/0.499, allocations: 119.5 kB / 263 MB, free: 3.543 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006367/0.4997, allocations: 167.9 kB / 263.2 MB, free: 3.379 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007592/0.5073, allocations: 2.242 MB / 265.4 MB, free: 1.062 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.92e-05/0.5074, allocations: 0 / 265.4 MB, free: 1.062 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002845/0.5077, allocations: 68 kB / 265.5 MB, free: 0.9961 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.5079, allocations: 75.3 kB / 265.5 MB, free: 0.9219 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007925/0.5158, allocations: 1.871 MB / 267.4 MB, free: 15.04 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02085/0.5367, allocations: 6.223 MB / 273.6 MB, free: 8.691 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004547/0.5414, allocations: 1.9 MB / 275.5 MB, free: 6.613 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001587/0.5416, allocations: 17.69 kB / 275.6 MB, free: 6.598 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/0.5416, allocations: 47.55 kB / 275.6 MB, free: 6.543 MB / 218.7 MB Notification: Performance of pre-optimization done (n=92): time 4.248e-06/0.5416, allocations: 0 / 275.6 MB, free: 6.543 MB / 218.7 MB Notification: Performance of matching and sorting (n=112): time 0.02856/0.5702, allocations: 6.745 MB / 282.4 MB, free: 15.68 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.5703, allocations: 60.41 kB / 282.4 MB, free: 15.61 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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/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/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/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/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/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/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.002076/0.5724, allocations: 0.8383 MB / 283.3 MB, free: 14.77 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003293/0.5728, allocations: 45.7 kB / 283.3 MB, free: 14.71 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006862/0.5735, allocations: 0.7002 MB / 284 MB, free: 14 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006671/0.5742, allocations: 390.4 kB / 284.4 MB, free: 13.62 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.5743, allocations: 20 kB / 284.4 MB, free: 13.6 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.5745, allocations: 354.8 kB / 284.7 MB, free: 13.24 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002064/0.5766, allocations: 0.6701 MB / 285.4 MB, free: 12.57 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.5788, allocations: 0.8442 MB / 286.3 MB, free: 11.68 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002418/0.5813, allocations: 0.7975 MB / 287.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.5813, allocations: 7.938 kB / 287.1 MB, free: 10.87 MB / 234.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.007153/0.5885, allocations: 2.24 MB / 289.3 MB, free: 8.609 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.5886, allocations: 7.953 kB / 289.3 MB, free: 8.602 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.5886, allocations: 4 kB / 289.3 MB, free: 8.598 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002917/0.5915, allocations: 0.6426 MB / 290 MB, free: 7.945 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.5934, allocations: 227.6 kB / 290.2 MB, free: 7.723 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1765/0.7699, allocations: 8.884 MB / 299.1 MB, free: 57.31 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/0.7715, allocations: 93.58 kB / 299.2 MB, free: 57.31 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.7717, allocations: 41.61 kB / 299.2 MB, free: 57.31 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.001831/0.7735, allocations: 0.6116 MB / 299.8 MB, free: 57.2 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003331/0.7739, allocations: 96.53 kB / 299.9 MB, free: 57.2 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006673/0.7806, allocations: 2.243 MB / 302.1 MB, free: 57.11 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/0.7807, allocations: 12.25 kB / 302.2 MB, free: 57.11 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.7807, allocations: 5.344 kB / 302.2 MB, free: 57.11 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-05/0.7807, allocations: 10.22 kB / 302.2 MB, free: 57.11 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/0.7936, allocations: 4.281 MB / 306.5 MB, free: 56.71 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.7937, allocations: 1.125 kB / 306.5 MB, free: 56.71 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001578/0.7953, allocations: 168.4 kB / 306.6 MB, free: 56.71 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003273/0.7986, allocations: 0.6477 MB / 307.3 MB, free: 56.69 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004071/0.799, allocations: 31.56 kB / 307.3 MB, free: 56.69 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01679/0.8159, allocations: 8.718 MB / 316 MB, free: 52.41 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.816, allocations: 0 / 316 MB, free: 52.41 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008463/0.8244, allocations: 3.194 MB / 319.2 MB, free: 51.19 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009914/0.8255, allocations: 332.4 kB / 319.5 MB, free: 50.97 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003107/0.8258, allocations: 26.25 kB / 319.6 MB, free: 50.96 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.8272, allocations: 89.53 kB / 319.6 MB, free: 50.94 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003864/0.8276, allocations: 76.86 kB / 319.7 MB, free: 50.93 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.8277, allocations: 33.36 kB / 319.8 MB, free: 50.93 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001135/0.8289, allocations: 0.5659 MB / 320.3 MB, free: 50.69 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8289, allocations: 2.844 kB / 320.3 MB, free: 50.69 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00205/0.8309, allocations: 378.3 kB / 320.7 MB, free: 50.65 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.0003859/0.8314, allocations: 142.1 kB / 320.8 MB, free: 50.54 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.006197/0.8376, allocations: 2.26 MB / 323.1 MB, free: 49.57 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.435e-06/0.8376, allocations: 0 / 323.1 MB, free: 49.57 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004213/0.8419, allocations: 1.479 MB / 324.6 MB, free: 48.85 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.844, allocations: 208.3 kB / 324.8 MB, free: 48.79 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009419/0.8535, allocations: 4.429 MB / 329.2 MB, free: 46.42 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002028/0.8556, allocations: 1.612 MB / 330.8 MB, free: 45.54 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006806/0.8563, allocations: 76.67 kB / 330.9 MB, free: 45.53 MB / 234.7 MB Notification: Performance of SimCode: time 1.663e-06/0.8563, allocations: 0 / 330.9 MB, free: 45.53 MB / 234.7 MB Notification: Performance of Templates: time 0.06514/0.9215, allocations: 40.14 MB / 371 MB, free: 14.5 MB / 234.7 MB