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.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.108/1.108, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.0003472, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05493/0.05533, allocations: 25.16 MB / 183.6 MB, free: 5.883 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2452/0.3006, allocations: 46.14 MB / 229.7 MB, free: 15.93 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.3008, allocations: 71.89 kB / 229.8 MB, free: 15.89 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1173/0.4181, allocations: 28.65 MB / 258.5 MB, free: 7.496 MB / 202.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.4182, allocations: 0 / 258.5 MB, free: 7.496 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001593/0.4184, allocations: 43.94 kB / 258.5 MB, free: 7.453 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: 416 * Number of variables: 416 Notification: Performance of Generate backend data structure: time 0.007131/0.4255, allocations: 1.889 MB / 260.4 MB, free: 5.508 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.4256, allocations: 15.97 kB / 260.4 MB, free: 5.492 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009738/0.4266, allocations: 248.4 kB / 260.6 MB, free: 5.238 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005503/0.4271, allocations: 185.8 kB / 260.8 MB, free: 5.055 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003149/0.4303, allocations: 1.044 MB / 261.9 MB, free: 3.965 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.4305, allocations: 127.5 kB / 262 MB, free: 3.84 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006746/0.4312, allocations: 160 kB / 262.1 MB, free: 3.684 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007068/0.4383, allocations: 2.202 MB / 264.3 MB, free: 1.406 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.462e-05/0.4384, allocations: 0 / 264.3 MB, free: 1.406 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.4387, allocations: 75.97 kB / 264.4 MB, free: 1.332 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/0.4388, allocations: 75.25 kB / 264.5 MB, free: 1.258 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006567/0.4454, allocations: 1.836 MB / 266.3 MB, free: 15.41 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01833/0.4638, allocations: 6.114 MB / 272.4 MB, free: 9.176 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004343/0.4682, allocations: 1.92 MB / 274.4 MB, free: 7.082 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.4684, allocations: 9 kB / 274.4 MB, free: 7.074 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.4684, allocations: 47.5 kB / 274.4 MB, free: 7.02 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 4.278e-06/0.4684, allocations: 0 / 274.4 MB, free: 7.02 MB / 218.7 MB Notification: Performance of matching and sorting (n=110): time 0.0258/0.4942, allocations: 6.472 MB / 280.9 MB, free: 444 kB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.4944, allocations: 64.41 kB / 281 MB, free: 368 kB / 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:2609:9-2611:75:writable] Warning: Parameter smr.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:2603:9-2605:75:writable] Warning: Parameter smr.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2600:9-2602:51:writable] Warning: Parameter smr.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:2597:9-2599:75:writable] Warning: Parameter smr.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.9 / (6.283185307179586 * smr.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:2594:9-2596:75:writable] Warning: Parameter smr.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=2.9 / (6.283185307179586 * smr.fsNominal)) 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 smr.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smr.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 smr.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 smr.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 smr.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 smr.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smr.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 smr.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.001803/0.4962, allocations: 0.7282 MB / 281.7 MB, free: 15.62 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002922/0.4965, allocations: 41.7 kB / 281.7 MB, free: 15.57 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006206/0.4971, allocations: 0.6885 MB / 282.4 MB, free: 14.88 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006045/0.4977, allocations: 390.4 kB / 282.8 MB, free: 14.49 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.4979, allocations: 20 kB / 282.8 MB, free: 14.47 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.4981, allocations: 354.8 kB / 283.2 MB, free: 14.12 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001931/0.5, allocations: 0.6662 MB / 283.8 MB, free: 13.45 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002106/0.5021, allocations: 0.8239 MB / 284.7 MB, free: 12.58 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002247/0.5044, allocations: 0.7975 MB / 285.5 MB, free: 11.78 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.5045, allocations: 0 / 285.5 MB, free: 11.78 MB / 234.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.006809/0.5113, allocations: 2.21 MB / 287.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.5114, allocations: 8 kB / 287.7 MB, free: 9.543 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.582e-05/0.5114, allocations: 7.984 kB / 287.7 MB, free: 9.535 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00298/0.5144, allocations: 0.6446 MB / 288.3 MB, free: 8.883 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/0.5163, allocations: 223.6 kB / 288.5 MB, free: 8.664 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1718/0.6881, allocations: 8.843 MB / 297.4 MB, free: 57.17 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/0.6897, allocations: 93.8 kB / 297.5 MB, free: 57.17 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/0.6899, allocations: 40.14 kB / 297.5 MB, free: 57.17 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 smr.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.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: 16 * 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 (102): * Single equations (assignments): 99 * 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%) 22,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001764/0.6917, allocations: 0.6012 MB / 298.1 MB, free: 57.06 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003409/0.692, allocations: 99 kB / 298.2 MB, free: 57.06 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006214/0.6983, allocations: 2.214 MB / 300.4 MB, free: 56.98 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.6983, allocations: 14.7 kB / 300.4 MB, free: 56.98 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.6983, allocations: 17.66 kB / 300.5 MB, free: 56.98 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.6984, allocations: 3.797 kB / 300.5 MB, free: 56.98 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/0.7101, allocations: 4.242 MB / 304.7 MB, free: 56.59 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.7102, allocations: 1.844 kB / 304.7 MB, free: 56.59 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/0.7117, allocations: 169.6 kB / 304.9 MB, free: 56.59 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002983/0.7147, allocations: 0.6403 MB / 305.5 MB, free: 56.56 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002375/0.715, allocations: 25.33 kB / 305.5 MB, free: 56.56 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01502/0.73, allocations: 8.673 MB / 314.2 MB, free: 52.74 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.7301, allocations: 3.625 kB / 314.2 MB, free: 52.74 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007844/0.7379, allocations: 3.183 MB / 317.4 MB, free: 51.88 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008683/0.7388, allocations: 318 kB / 317.7 MB, free: 51.67 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.7391, allocations: 30.3 kB / 317.7 MB, free: 51.66 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.7402, allocations: 85.95 kB / 317.8 MB, free: 51.64 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003417/0.7406, allocations: 78.22 kB / 317.9 MB, free: 51.63 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.7407, allocations: 32.2 kB / 317.9 MB, free: 51.62 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001047/0.7417, allocations: 0.5507 MB / 318.5 MB, free: 51.39 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7418, allocations: 1.094 kB / 318.5 MB, free: 51.39 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001837/0.7436, allocations: 375.8 kB / 318.8 MB, free: 51.35 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_rr[1],smr.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 (82): * Single equations (assignments): 79 * 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%) 22,(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.008152/0.7518, allocations: 3.91 MB / 322.8 MB, free: 49.38 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005833/0.7577, allocations: 2.239 MB / 325 MB, free: 48.41 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.7577, allocations: 0 / 325 MB, free: 48.41 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004003/0.7617, allocations: 1.466 MB / 326.5 MB, free: 47.7 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00203/0.7638, allocations: 210.7 kB / 326.7 MB, free: 47.64 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.7758, allocations: 7.448 MB / 334.1 MB, free: 42.51 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002145/0.7781, allocations: 1.612 MB / 335.7 MB, free: 41.62 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001487/0.7796, allocations: 0.5384 MB / 336.3 MB, free: 41.19 MB / 234.7 MB Notification: Performance of SimCode: time 1.233e-06/0.7796, allocations: 0 / 336.3 MB, free: 41.19 MB / 234.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: smr.Jr. [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 2.9 / (6.283185307179586 * smr.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.9 / (6.283185307179586 * smr.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.05 / (6.283185307179586 * smr.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.1 / (6.283185307179586 * smr.fsNominal).