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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SMPM_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9728/0.9728, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.722e-05/2.735e-05, allocations: 4 kB / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05237/0.05245, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2295/0.282, allocations: 45.81 MB / 219.2 MB, free: 3.473 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.2823, allocations: 61.81 kB / 219.3 MB, free: 3.465 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.121/0.4033, allocations: 28.79 MB / 248 MB, free: 1.121 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4034, allocations: 0 / 248 MB, free: 1.121 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001739/0.4036, allocations: 47.94 kB / 248.1 MB, free: 1.074 MB / 186.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.006847/0.4105, allocations: 1.778 MB / 249.9 MB, free: 15.31 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.4105, allocations: 12.03 kB / 249.9 MB, free: 15.3 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000967/0.4115, allocations: 185.8 kB / 250.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003318/0.4148, allocations: 1.055 MB / 251.1 MB, free: 14.02 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.415, allocations: 52.34 kB / 251.2 MB, free: 13.97 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005141/0.4156, allocations: 99.86 kB / 251.3 MB, free: 13.87 MB / 202.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00541/0.421, allocations: 1.685 MB / 253 MB, free: 12.19 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006146/0.4272, allocations: 1.931 MB / 254.9 MB, free: 10.18 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.809e-05/0.4273, allocations: 11.91 kB / 254.9 MB, free: 10.17 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.4275, allocations: 0 / 254.9 MB, free: 10.17 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.4277, allocations: 71.3 kB / 255 MB, free: 10.1 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01883/0.4465, allocations: 5.924 MB / 260.9 MB, free: 4.062 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005413/0.452, allocations: 1.829 MB / 262.7 MB, free: 2.066 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002271/0.4544, allocations: 0.6518 MB / 263.4 MB, free: 1.414 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.4546, allocations: 16.77 kB / 263.4 MB, free: 1.395 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.706e-05/0.4546, allocations: 43.34 kB / 263.4 MB, free: 1.344 MB / 202.7 MB Notification: Performance of pre-optimization done (n=94): time 5.891e-06/0.4547, allocations: 0 / 263.4 MB, free: 1.344 MB / 202.7 MB Notification: Performance of matching and sorting (n=115): time 0.01733/0.472, allocations: 4.425 MB / 267.9 MB, free: 12.86 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.4721, allocations: 64.72 kB / 267.9 MB, free: 12.78 MB / 218.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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/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/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/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/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/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/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.001601/0.4737, allocations: 0.6707 MB / 268.6 MB, free: 12.11 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000261/0.474, allocations: 25.7 kB / 268.6 MB, free: 12.08 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000602/0.4746, allocations: 0.7002 MB / 269.3 MB, free: 11.37 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005253/0.4751, allocations: 374.3 kB / 269.7 MB, free: 11 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.4753, allocations: 0 / 269.7 MB, free: 11 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.4755, allocations: 354.8 kB / 270 MB, free: 10.64 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/0.4769, allocations: 0.6156 MB / 270.6 MB, free: 10.02 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001578/0.4785, allocations: 0.7793 MB / 271.4 MB, free: 9.191 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/0.4803, allocations: 0.7518 MB / 272.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-06/0.4803, allocations: 7.938 kB / 272.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.005801/0.4862, allocations: 2.064 MB / 274.2 MB, free: 6.352 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.4862, allocations: 8 kB / 274.3 MB, free: 6.344 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.4863, allocations: 4 kB / 274.3 MB, free: 6.34 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/0.4891, allocations: 0.6309 MB / 274.9 MB, free: 5.699 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001866/0.491, allocations: 227.6 kB / 275.1 MB, free: 5.477 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01538/0.5064, allocations: 8.297 MB / 283.4 MB, free: 12.83 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.5079, allocations: 67.89 kB / 283.5 MB, free: 12.76 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.5081, allocations: 44.05 kB / 283.5 MB, free: 12.72 MB / 234.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 (107): * Single equations (assignments): 104 * 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.0004225/0.5085, allocations: 143.5 kB / 283.7 MB, free: 12.57 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005451/0.514, allocations: 1.935 MB / 285.6 MB, free: 10.62 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004415/0.5145, allocations: 90.88 kB / 285.7 MB, free: 10.53 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005978/0.5205, allocations: 2.079 MB / 287.8 MB, free: 8.43 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.602e-05/0.5205, allocations: 12 kB / 287.8 MB, free: 8.418 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.5206, allocations: 4 kB / 287.8 MB, free: 8.414 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.9e-05/0.5206, allocations: 7.984 kB / 287.8 MB, free: 8.406 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.5321, allocations: 3.946 MB / 291.7 MB, free: 4.387 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.5321, allocations: 3.984 kB / 291.7 MB, free: 4.383 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/0.5337, allocations: 179.9 kB / 291.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003003/0.5368, allocations: 0.6352 MB / 292.5 MB, free: 3.562 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002271/0.537, allocations: 15.98 kB / 292.6 MB, free: 3.547 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1671/0.7042, allocations: 8.143 MB / 300.7 MB, free: 59.5 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.758e-06/0.7042, allocations: 5.5 kB / 300.7 MB, free: 59.5 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007332/0.7116, allocations: 3.086 MB / 303.8 MB, free: 59.21 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009894/0.7126, allocations: 326.2 kB / 304.1 MB, free: 59.12 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002644/0.7129, allocations: 4.406 kB / 304.1 MB, free: 59.12 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.7142, allocations: 81.61 kB / 304.2 MB, free: 59.12 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/0.7146, allocations: 88.48 kB / 304.3 MB, free: 59.12 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.7147, allocations: 36.31 kB / 304.3 MB, free: 59.12 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001007/0.7158, allocations: 496.4 kB / 304.8 MB, free: 59.02 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7158, allocations: 0 / 304.8 MB, free: 59.02 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002132/0.7179, allocations: 338 kB / 305.1 MB, free: 59.02 MB / 234.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 (86): * Single equations (assignments): 83 * 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.007405/0.7254, allocations: 3.996 MB / 309.1 MB, free: 57.82 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004978/0.7304, allocations: 2.095 MB / 311.2 MB, free: 57.46 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.7305, allocations: 0 / 311.2 MB, free: 57.46 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003572/0.734, allocations: 1.379 MB / 312.6 MB, free: 57.11 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.7361, allocations: 173.1 kB / 312.8 MB, free: 57.11 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009279/0.7455, allocations: 3.483 MB / 316.3 MB, free: 56.34 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/0.7472, allocations: 1.614 MB / 317.9 MB, free: 55.54 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001252/0.7485, allocations: 0.5564 MB / 318.4 MB, free: 55.09 MB / 234.7 MB Notification: Performance of SimCode: time 1.523e-06/0.7485, allocations: 1.312 kB / 318.4 MB, free: 55.09 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.515/4.264, allocations: 48.23 MB / 366.7 MB, free: 20.89 MB / 234.7 MB