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.9804/0.9804, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.476e-05, allocations: 0 / 151.4 MB, free: 15.63 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1402, allocations: 25.15 MB / 176.5 MB, free: 20 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07076/0.211, allocations: 46.48 MB / 223 MB, free: 2.98 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.2113, allocations: 63.97 kB / 223.1 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1195/0.3308, allocations: 29.1 MB / 252.2 MB, free: 5.641 MB / 218.7 MB Notification: Performance of FrontEnd: time 3.76e-06/0.3309, allocations: 0 / 252.2 MB, free: 5.641 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001973/0.3311, allocations: 47.94 kB / 252.2 MB, free: 5.594 MB / 218.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.007788/0.3389, allocations: 1.776 MB / 254 MB, free: 3.766 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.339, allocations: 12.03 kB / 254 MB, free: 3.754 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/0.3402, allocations: 185.8 kB / 254.2 MB, free: 3.57 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004662/0.3449, allocations: 1.052 MB / 255.3 MB, free: 2.473 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.3451, allocations: 123.5 kB / 255.4 MB, free: 2.352 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008616/0.346, allocations: 163.9 kB / 255.5 MB, free: 2.191 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1348/0.4808, allocations: 2.147 MB / 257.7 MB, free: 51.89 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001093/0.481, allocations: 1.938 kB / 257.7 MB, free: 51.89 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004791/0.4815, allocations: 68.03 kB / 257.8 MB, free: 51.89 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.4816, allocations: 75.55 kB / 257.8 MB, free: 51.89 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004387/0.486, allocations: 1.754 MB / 259.6 MB, free: 51.88 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01185/0.4979, allocations: 6.223 MB / 265.8 MB, free: 51.02 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002339/0.5003, allocations: 1.846 MB / 267.7 MB, free: 50.14 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.5015, allocations: 0.6747 MB / 268.3 MB, free: 50.13 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.927e-05/0.5016, allocations: 14.77 kB / 268.3 MB, free: 50.13 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.5017, allocations: 41.41 kB / 268.4 MB, free: 50.09 MB / 218.7 MB Notification: Performance of pre-optimization done (n=92): time 4.236e-06/0.5017, allocations: 3.969 kB / 268.4 MB, free: 50.09 MB / 218.7 MB Notification: Performance of matching and sorting (n=113): time 0.01642/0.5181, allocations: 5.746 MB / 274.1 MB, free: 48.38 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.5182, allocations: 66.94 kB / 274.2 MB, free: 48.32 MB / 218.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.001323/0.5195, allocations: 0.7371 MB / 274.9 MB, free: 48.02 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/0.5197, allocations: 41.2 kB / 275 MB, free: 47.98 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.52, allocations: 0.7021 MB / 275.7 MB, free: 47.43 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.5204, allocations: 390.3 kB / 276.1 MB, free: 47.14 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.556e-05/0.5205, allocations: 23.12 kB / 276.1 MB, free: 47.12 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 9.857e-05/0.5206, allocations: 357.5 kB / 276.4 MB, free: 46.79 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.5218, allocations: 0.6226 MB / 277.1 MB, free: 46.56 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.5231, allocations: 0.7904 MB / 277.8 MB, free: 46.17 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.5244, allocations: 0.7689 MB / 278.6 MB, free: 45.88 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.296e-06/0.5244, allocations: 3.312 kB / 278.6 MB, free: 45.88 MB / 218.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.004317/0.5288, allocations: 2.143 MB / 280.8 MB, free: 45.13 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.5288, allocations: 6.5 kB / 280.8 MB, free: 45.13 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.5288, allocations: 3.438 kB / 280.8 MB, free: 45.13 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001986/0.5308, allocations: 0.6337 MB / 281.4 MB, free: 44.96 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.532, allocations: 227.6 kB / 281.6 MB, free: 44.96 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.5433, allocations: 8.637 MB / 290.3 MB, free: 38.75 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.5444, allocations: 93.5 kB / 290.4 MB, free: 38.69 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.5446, allocations: 39.62 kB / 290.4 MB, free: 38.65 MB / 218.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real smpm.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.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: 17 * 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,80.6%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003399/0.5449, allocations: 182.2 kB / 290.6 MB, free: 38.49 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.5451, allocations: 102.7 kB / 290.7 MB, free: 38.39 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004358/0.5495, allocations: 2.158 MB / 292.8 MB, free: 36.6 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.5496, allocations: 12 kB / 292.8 MB, free: 36.59 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.5496, allocations: 8 kB / 292.8 MB, free: 36.58 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.5496, allocations: 6.656 kB / 292.9 MB, free: 36.58 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008362/0.558, allocations: 4.236 MB / 297.1 MB, free: 33.07 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.561e-06/0.558, allocations: 160 / 297.1 MB, free: 33.07 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009845/0.559, allocations: 172.9 kB / 297.3 MB, free: 32.93 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.5612, allocations: 0.6486 MB / 297.9 MB, free: 32.41 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001271/0.5613, allocations: 30.28 kB / 297.9 MB, free: 32.39 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/0.5721, allocations: 8.454 MB / 306.4 MB, free: 24.35 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.775e-06/0.5721, allocations: 4 kB / 306.4 MB, free: 24.34 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005601/0.5778, allocations: 3.154 MB / 309.5 MB, free: 21.51 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006573/0.5785, allocations: 327.1 kB / 309.9 MB, free: 21.2 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/0.5787, allocations: 24 kB / 309.9 MB, free: 21.18 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008387/0.5795, allocations: 86.53 kB / 310 MB, free: 21.12 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002598/0.5798, allocations: 94.47 kB / 310.1 MB, free: 21.06 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.5799, allocations: 38.19 kB / 310.1 MB, free: 21.03 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0008464/0.5808, allocations: 0.5475 MB / 310.7 MB, free: 20.54 MB / 218.7 MB Notification: Performance of sort global known variables: time 8.49e-07/0.5808, allocations: 0 / 310.7 MB, free: 20.54 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001418/0.5822, allocations: 381.8 kB / 311 MB, free: 20.17 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 82 * 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%) 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.000235/0.5825, allocations: 148.3 kB / 311.2 MB, free: 20.02 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.00381/0.5863, allocations: 2.114 MB / 313.3 MB, free: 17.91 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 4.892e-06/0.5863, allocations: 0 / 313.3 MB, free: 17.91 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002598/0.5889, allocations: 1.399 MB / 314.7 MB, free: 16.48 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.5903, allocations: 218.8 kB / 314.9 MB, free: 16.29 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005765/0.5961, allocations: 3.09 MB / 318 MB, free: 13.19 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.5975, allocations: 1.62 MB / 319.6 MB, free: 11.54 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/0.598, allocations: 75.42 kB / 319.7 MB, free: 11.47 MB / 218.7 MB Notification: Performance of SimCode: time 1.683e-06/0.598, allocations: 4 kB / 319.7 MB, free: 11.46 MB / 218.7 MB Notification: Performance of Templates: time 0.2381/0.8361, allocations: 40.03 MB / 359.7 MB, free: 59.96 MB / 234.7 MB