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: "" <> 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 1.056/1.056, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003477, allocations: 11.98 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06549/0.06587, allocations: 25.16 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2673/0.3333, allocations: 46.56 MB / 230.2 MB, free: 15.9 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.3336, allocations: 68.78 kB / 230.2 MB, free: 15.87 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1237/0.4573, allocations: 29.02 MB / 259.2 MB, free: 6.824 MB / 202.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4574, allocations: 0 / 259.2 MB, free: 6.824 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001771/0.4576, allocations: 51.94 kB / 259.3 MB, free: 6.773 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.007223/0.4648, allocations: 1.893 MB / 261.2 MB, free: 4.824 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.091e-05/0.4649, allocations: 12.03 kB / 261.2 MB, free: 4.812 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001081/0.466, allocations: 248.6 kB / 261.4 MB, free: 4.559 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007458/0.4668, allocations: 197.6 kB / 261.6 MB, free: 4.363 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00405/0.4709, allocations: 1.06 MB / 262.7 MB, free: 3.258 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/0.4711, allocations: 131.2 kB / 262.8 MB, free: 3.129 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006416/0.4718, allocations: 164 kB / 263 MB, free: 2.969 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008907/0.4807, allocations: 2.226 MB / 265.2 MB, free: 0.668 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.533e-05/0.4809, allocations: 3.984 kB / 265.2 MB, free: 0.6641 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004168/0.4813, allocations: 72 kB / 265.3 MB, free: 0.5938 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001956/0.4815, allocations: 75.3 kB / 265.4 MB, free: 0.5195 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009164/0.4907, allocations: 1.864 MB / 267.2 MB, free: 14.65 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02422/0.515, allocations: 6.223 MB / 273.4 MB, free: 8.297 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005645/0.5207, allocations: 1.904 MB / 275.3 MB, free: 6.215 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/0.5209, allocations: 13.69 kB / 275.4 MB, free: 6.203 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.343e-05/0.521, allocations: 47.5 kB / 275.4 MB, free: 6.148 MB / 218.7 MB Notification: Performance of pre-optimization done (n=92): time 5.27e-06/0.521, allocations: 3.938 kB / 275.4 MB, free: 6.145 MB / 218.7 MB Notification: Performance of matching and sorting (n=112): time 0.03397/0.555, allocations: 6.741 MB / 282.1 MB, free: 15.29 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.5551, allocations: 60.41 kB / 282.2 MB, free: 15.22 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.001834/0.5569, allocations: 0.7488 MB / 283 MB, free: 14.46 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002674/0.5572, allocations: 45.7 kB / 283 MB, free: 14.41 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006381/0.5579, allocations: 0.6924 MB / 283.7 MB, free: 13.71 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000586/0.5585, allocations: 394.3 kB / 284.1 MB, free: 13.32 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.5586, allocations: 20 kB / 284.1 MB, free: 13.3 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5588, allocations: 350.8 kB / 284.4 MB, free: 12.95 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/0.5608, allocations: 0.674 MB / 285.1 MB, free: 12.28 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002088/0.5629, allocations: 0.8326 MB / 285.9 MB, free: 11.39 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/0.5653, allocations: 0.8169 MB / 286.8 MB, free: 10.57 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.5654, allocations: 0 / 286.8 MB, free: 10.57 MB / 234.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.007445/0.5728, allocations: 2.229 MB / 289 MB, free: 8.324 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.5729, allocations: 11.95 kB / 289 MB, free: 8.312 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.5729, allocations: 8 kB / 289 MB, free: 8.305 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002962/0.5759, allocations: 0.6503 MB / 289.7 MB, free: 7.645 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/0.5778, allocations: 223.6 kB / 289.9 MB, free: 7.426 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1754/0.7532, allocations: 8.885 MB / 298.8 MB, free: 57.33 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.7548, allocations: 88.86 kB / 298.9 MB, free: 57.33 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/0.755, allocations: 35.59 kB / 298.9 MB, free: 57.33 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.001642/0.7567, allocations: 0.6155 MB / 299.5 MB, free: 57.22 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003163/0.757, allocations: 97.91 kB / 299.6 MB, free: 57.22 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007096/0.7641, allocations: 2.239 MB / 301.8 MB, free: 57.13 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.079e-05/0.7642, allocations: 14.94 kB / 301.9 MB, free: 57.13 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-05/0.7642, allocations: 6.875 kB / 301.9 MB, free: 57.13 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.9e-05/0.7643, allocations: 10.77 kB / 301.9 MB, free: 57.13 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/0.7776, allocations: 4.285 MB / 306.2 MB, free: 56.73 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.792e-05/0.7776, allocations: 2.125 kB / 306.2 MB, free: 56.73 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/0.7793, allocations: 172.4 kB / 306.3 MB, free: 56.73 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003086/0.7824, allocations: 0.646 MB / 307 MB, free: 56.71 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000263/0.7827, allocations: 28.42 kB / 307 MB, free: 56.71 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01493/0.7977, allocations: 8.718 MB / 315.7 MB, free: 52.37 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.7977, allocations: 0 / 315.7 MB, free: 52.37 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008524/0.8063, allocations: 3.217 MB / 318.9 MB, free: 51.11 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.8073, allocations: 327.6 kB / 319.3 MB, free: 50.9 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002947/0.8076, allocations: 30.2 kB / 319.3 MB, free: 50.88 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.8089, allocations: 86.73 kB / 319.4 MB, free: 50.87 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003676/0.8092, allocations: 83.03 kB / 319.5 MB, free: 50.86 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.8094, allocations: 34.17 kB / 319.5 MB, free: 50.85 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001106/0.8105, allocations: 0.5605 MB / 320 MB, free: 50.61 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8105, allocations: 0 / 320 MB, free: 50.61 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002002/0.8125, allocations: 379.2 kB / 320.4 MB, free: 50.57 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.008736/0.8213, allocations: 3.941 MB / 324.4 MB, free: 48.58 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.006069/0.8274, allocations: 2.253 MB / 326.6 MB, free: 47.6 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/0.8275, allocations: 3.781 kB / 326.6 MB, free: 47.6 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0041/0.8316, allocations: 1.477 MB / 328.1 MB, free: 46.89 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002079/0.8337, allocations: 216.2 kB / 328.3 MB, free: 46.84 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.8452, allocations: 7.637 MB / 335.9 MB, free: 41.52 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.8469, allocations: 1.613 MB / 337.5 MB, free: 40.63 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/0.8481, allocations: 0.5512 MB / 338.1 MB, free: 40.2 MB / 234.7 MB Notification: Performance of SimCode: time 1.583e-06/0.8481, allocations: 3.75 kB / 338.1 MB, free: 40.2 MB / 234.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: smpm.Jr. [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.3 / (6.283185307179586 * smpm.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.05 / (6.283185307179586 * smpm.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.1 / (6.283185307179586 * smpm.fsNominal).