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.111/1.111, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.439e-05/2.456e-05, allocations: 0 / 154.5 MB, free: 2.844 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0571/0.05715, allocations: 25.19 MB / 179.7 MB, free: 9.617 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SMPM_Inverter): time 0.007939/0.06513, allocations: 4.436 MB / 184.1 MB, free: 5.164 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003703/0.06888, allocations: 1.146 MB / 185.3 MB, free: 4.016 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009907/0.06993, allocations: 47.81 kB / 185.3 MB, free: 3.969 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009081/0.07087, allocations: 218.6 kB / 185.5 MB, free: 3.754 MB / 154.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2128:9-2130:60:writable] Warning: Conditional component damperCage is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.001552/0.07244, allocations: 291 kB / 185.8 MB, free: 3.469 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007635/0.07322, allocations: 171.7 kB / 186 MB, free: 3.301 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.002145/0.07538, allocations: 0.7639 MB / 186.7 MB, free: 2.535 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001972/0.07739, allocations: 1.004 MB / 187.8 MB, free: 1.516 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.07859, allocations: 466.8 kB / 188.2 MB, free: 1.059 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001415/0.08003, allocations: 0.6346 MB / 188.8 MB, free: 432 kB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004059/0.08047, allocations: 64 kB / 188.9 MB, free: 368 kB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003054/0.08079, allocations: 56 kB / 189 MB, free: 312 kB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009373/0.08174, allocations: 490.6 kB / 189.4 MB, free: 15.82 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005307/0.0823, allocations: 136 kB / 189.6 MB, free: 15.69 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003864/0.08618, allocations: 2.423 MB / 192 MB, free: 13.26 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.08622, allocations: 0 / 192 MB, free: 13.26 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.08624, allocations: 0 / 192 MB, free: 13.26 MB / 170.7 MB Notification: Performance of Transformations before backend: time 0.0001233/0.08637, allocations: 0 / 192 MB, free: 13.26 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.006408/0.09279, allocations: 1.785 MB / 193.8 MB, free: 11.42 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.09286, allocations: 8.031 kB / 193.8 MB, free: 11.41 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007727/0.09364, allocations: 189.7 kB / 194 MB, free: 11.23 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003138/0.0968, allocations: 1.032 MB / 195 MB, free: 10.15 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.09702, allocations: 123.2 kB / 195.1 MB, free: 10.03 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006046/0.09764, allocations: 160 kB / 195.3 MB, free: 9.875 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007227/0.1049, allocations: 2.224 MB / 197.5 MB, free: 7.609 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.498e-05/0.105, allocations: 0 / 197.5 MB, free: 7.609 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002673/0.1053, allocations: 71.98 kB / 197.6 MB, free: 7.539 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/0.1055, allocations: 87.27 kB / 197.7 MB, free: 7.453 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006832/0.1123, allocations: 1.918 MB / 199.6 MB, free: 5.531 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.179/0.2913, allocations: 6.282 MB / 205.9 MB, free: 20.21 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003612/0.295, allocations: 1.798 MB / 207.7 MB, free: 19.33 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.2952, allocations: 14.88 kB / 207.7 MB, free: 19.33 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.2952, allocations: 43.83 kB / 207.7 MB, free: 19.29 MB / 170.7 MB Notification: Performance of pre-optimization done (n=89): time 4.198e-06/0.2952, allocations: 0 / 207.7 MB, free: 19.29 MB / 170.7 MB Notification: Performance of matching and sorting (n=106): time 0.02556/0.3208, allocations: 6.434 MB / 214.2 MB, free: 17.45 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.3209, allocations: 63.81 kB / 214.2 MB, free: 17.38 MB / 170.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.001469/0.3224, allocations: 0.6941 MB / 214.9 MB, free: 17.09 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.3226, allocations: 41.08 kB / 214.9 MB, free: 17.05 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004299/0.323, allocations: 0.7065 MB / 215.7 MB, free: 16.42 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003757/0.3234, allocations: 369.6 kB / 216 MB, free: 16.11 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.424e-05/0.3235, allocations: 20.73 kB / 216 MB, free: 16.09 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3236, allocations: 353 kB / 216.4 MB, free: 15.75 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.3252, allocations: 0.6375 MB / 217 MB, free: 15.43 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/0.3272, allocations: 0.8043 MB / 217.8 MB, free: 14.9 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002217/0.3295, allocations: 0.7644 MB / 218.6 MB, free: 14.5 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.3295, allocations: 5.375 kB / 218.6 MB, free: 14.5 MB / 170.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.005879/0.3354, allocations: 2.105 MB / 220.7 MB, free: 13.4 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.3355, allocations: 11.45 kB / 220.7 MB, free: 13.4 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.3355, allocations: 3.688 kB / 220.7 MB, free: 13.4 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002311/0.3378, allocations: 0.5814 MB / 221.3 MB, free: 13.12 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.3395, allocations: 229.6 kB / 221.5 MB, free: 13.05 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/0.3551, allocations: 8.424 MB / 229.9 MB, free: 4.48 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.357, allocations: 83.97 kB / 230 MB, free: 4.398 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/0.3573, allocations: 39.98 kB / 230.1 MB, free: 4.359 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 smpm.idq_dr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "damper space phasor current / rotor fixed frame" type: Real [2] smpm.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "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: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * 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,86.1%) 20,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002125/0.3594, allocations: 0.5989 MB / 230.7 MB, free: 3.75 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004438/0.3599, allocations: 102.7 kB / 230.8 MB, free: 3.648 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008665/0.3686, allocations: 2.131 MB / 232.9 MB, free: 1.496 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.522e-05/0.3687, allocations: 8 kB / 232.9 MB, free: 1.488 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-05/0.3687, allocations: 8 kB / 232.9 MB, free: 1.48 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-05/0.3688, allocations: 9.609 kB / 232.9 MB, free: 1.473 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/0.3866, allocations: 4.128 MB / 237 MB, free: 13.3 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.576e-05/0.3867, allocations: 4 kB / 237 MB, free: 13.3 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002254/0.389, allocations: 171.8 kB / 237.2 MB, free: 13.13 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003776/0.3928, allocations: 0.5957 MB / 237.8 MB, free: 12.53 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002196/0.393, allocations: 31.98 kB / 237.8 MB, free: 12.5 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01948/0.4125, allocations: 8.221 MB / 246.1 MB, free: 3.883 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.4126, allocations: 6.656 kB / 246.1 MB, free: 3.879 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009567/0.4222, allocations: 3.066 MB / 249.1 MB, free: 0.7695 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009292/0.4232, allocations: 307.7 kB / 249.4 MB, free: 460 kB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.4235, allocations: 28 kB / 249.5 MB, free: 432 kB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.4246, allocations: 67.92 kB / 249.5 MB, free: 364 kB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003115/0.4249, allocations: 76.88 kB / 249.6 MB, free: 288 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.425, allocations: 31.98 kB / 249.6 MB, free: 256 kB / 186.7 MB Notification: Performance of sorting global known variables: time 0.001272/0.4263, allocations: 0.5185 MB / 250.2 MB, free: 15.73 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.4264, allocations: 4 kB / 250.2 MB, free: 15.73 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001886/0.4283, allocations: 360 kB / 250.5 MB, free: 15.38 MB / 202.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_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete 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%) 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.0002943/0.4286, allocations: 125.2 kB / 250.6 MB, free: 15.25 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.006278/0.4349, allocations: 2.147 MB / 252.8 MB, free: 13.06 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.4349, allocations: 7.938 kB / 252.8 MB, free: 13.05 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004403/0.4394, allocations: 1.396 MB / 254.2 MB, free: 11.62 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.4412, allocations: 193.8 kB / 254.4 MB, free: 11.43 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009845/0.4511, allocations: 4.359 MB / 258.7 MB, free: 7.039 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/0.4531, allocations: 1.6 MB / 260.3 MB, free: 5.406 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005671/0.4537, allocations: 83.42 kB / 260.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4537, allocations: 0 / 260.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of Templates: time 0.2733/0.727, allocations: 39.56 MB / 300 MB, free: 76.99 MB / 234.7 MB