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.AIMC_Steinmetz.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.AIMC_Steinmetz,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.049/1.049, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002933/0.0002934, allocations: 16 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0566/0.05693, allocations: 25.16 MB / 183.6 MB, free: 5.891 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2261/0.2831, allocations: 44.22 MB / 227.8 MB, free: 1.859 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.2834, allocations: 65.09 kB / 227.9 MB, free: 1.824 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1089/0.3923, allocations: 22.9 MB / 250.8 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3924, allocations: 0 / 250.8 MB, free: 14.54 MB / 202.7 MB Notification: Performance of Transformations before backend: time 0.0001563/0.3926, allocations: 24 kB / 250.8 MB, free: 14.52 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005777/0.3984, allocations: 1.493 MB / 252.3 MB, free: 13.06 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/0.3984, allocations: 12.03 kB / 252.3 MB, free: 13.05 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008333/0.3993, allocations: 190.4 kB / 252.5 MB, free: 12.93 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005481/0.3999, allocations: 146.2 kB / 252.6 MB, free: 12.78 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00245/0.4023, allocations: 0.7926 MB / 253.4 MB, free: 12.12 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.4025, allocations: 91.73 kB / 253.5 MB, free: 12.07 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003713/0.4029, allocations: 129.8 kB / 253.6 MB, free: 11.98 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005053/0.4079, allocations: 1.614 MB / 255.3 MB, free: 10.58 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.333e-05/0.4081, allocations: 8 kB / 255.3 MB, free: 10.57 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/0.4083, allocations: 51.98 kB / 255.3 MB, free: 10.52 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.4085, allocations: 62.41 kB / 255.4 MB, free: 10.46 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004967/0.4135, allocations: 1.337 MB / 256.7 MB, free: 9.113 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01558/0.4291, allocations: 4.814 MB / 261.5 MB, free: 4.191 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/0.4332, allocations: 1.565 MB / 263.1 MB, free: 2.52 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001436/0.4334, allocations: 9 kB / 263.1 MB, free: 2.512 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.4335, allocations: 43.56 kB / 263.1 MB, free: 2.461 MB / 202.7 MB Notification: Performance of pre-optimization done (n=95): time 3.386e-06/0.4335, allocations: 0 / 263.1 MB, free: 2.461 MB / 202.7 MB Notification: Performance of matching and sorting (n=116): time 0.02967/0.4632, allocations: 6.911 MB / 270.1 MB, free: 11.37 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/0.4633, allocations: 64.36 kB / 270.1 MB, free: 11.29 MB / 218.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:1719:9-1721:75:writable] Warning: Parameter aimc.Rr 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:1716:9-1718:75:writable] Warning: Parameter aimc.Lrsigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.fsNominal)) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Machines.mo:1713:9-1715:75:writable] Warning: Parameter aimc.Lm has no value, and is fixed during initialization (fixed=true), using available start value (start=2.898223593858831 / (6.283185307179586 * aimc.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 aimc.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.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 aimc.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 aimc.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 aimc.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 aimc.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=aimc.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 aimc.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.001517/0.4648, allocations: 0.6008 MB / 270.7 MB, free: 10.68 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003119/0.4652, allocations: 45.69 kB / 270.8 MB, free: 10.63 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000491/0.4657, allocations: 0.5179 MB / 271.3 MB, free: 10.11 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006881/0.4664, allocations: 398.2 kB / 271.7 MB, free: 9.715 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.4665, allocations: 20 kB / 271.7 MB, free: 9.695 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.4667, allocations: 358.8 kB / 272 MB, free: 9.336 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.4686, allocations: 0.5921 MB / 272.6 MB, free: 8.746 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.4706, allocations: 0.7163 MB / 273.3 MB, free: 8 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/0.4728, allocations: 0.7215 MB / 274.1 MB, free: 7.281 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.4729, allocations: 0 / 274.1 MB, free: 7.281 MB / 218.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.007368/0.4803, allocations: 2.223 MB / 276.3 MB, free: 5.031 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.4804, allocations: 9.875 kB / 276.3 MB, free: 5.023 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.4804, allocations: 0 / 276.3 MB, free: 5.023 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003947/0.4843, allocations: 0.8303 MB / 277.1 MB, free: 4.176 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.4858, allocations: 171.8 kB / 277.3 MB, free: 4.008 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02284/0.5087, allocations: 12.2 MB / 289.5 MB, free: 7.137 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.5099, allocations: 72.11 kB / 289.6 MB, free: 7.066 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.5101, allocations: 35.98 kB / 289.6 MB, free: 7.031 MB / 234.7 MB Warning: Assuming fixed start value for the following 9 variables: cStart.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real cRun.v:VARIABLE(unit = "V" fixed = true ) "Voltage drop between the two pins (= p.v - n.v)" type: Real quadraticLoadTorque.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.i_0_s:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator zero-sequence current" type: Real aimc.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: 9 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * 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): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,87.5%) 23,(2,100.0%) 8,(3,100.0%) 9,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001385/0.5115, allocations: 483.2 kB / 290.1 MB, free: 6.555 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003229/0.5118, allocations: 90.95 kB / 290.2 MB, free: 6.465 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007429/0.5193, allocations: 2.241 MB / 292.4 MB, free: 4.188 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/0.5194, allocations: 16 kB / 292.4 MB, free: 4.172 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-05/0.5194, allocations: 12 kB / 292.4 MB, free: 4.16 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.628e-05/0.5195, allocations: 7.969 kB / 292.4 MB, free: 4.152 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.5322, allocations: 4.018 MB / 296.5 MB, free: 48 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/0.5323, allocations: 0 / 296.5 MB, free: 48 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1564/0.6888, allocations: 129.5 kB / 296.6 MB, free: 62.61 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004282/0.6931, allocations: 0.8462 MB / 297.4 MB, free: 62.56 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002583/0.6934, allocations: 28.19 kB / 297.5 MB, free: 62.56 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01967/0.7131, allocations: 12.07 MB / 309.5 MB, free: 56.2 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.7131, allocations: 3.062 kB / 309.5 MB, free: 56.2 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008589/0.7217, allocations: 3.174 MB / 312.7 MB, free: 55.88 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009621/0.7228, allocations: 307.4 kB / 313 MB, free: 55.79 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003436/0.7231, allocations: 31.05 kB / 313 MB, free: 55.79 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.7244, allocations: 67.3 kB / 313.1 MB, free: 55.79 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004903/0.725, allocations: 102.9 kB / 313.2 MB, free: 55.78 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.7251, allocations: 28.91 kB / 313.2 MB, free: 55.78 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.00102/0.7261, allocations: 471.3 kB / 313.7 MB, free: 55.68 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.032e-06/0.7262, allocations: 3.938 kB / 313.7 MB, free: 55.68 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002289/0.7285, allocations: 375.9 kB / 314.1 MB, free: 55.68 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,87.5%) 23,(1,100.0%) 1,(2,100.0%) 8,(3,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009308/0.7378, allocations: 4.03 MB / 318.1 MB, free: 53.99 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.006657/0.7445, allocations: 2.516 MB / 320.6 MB, free: 52.66 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.7446, allocations: 0 / 320.6 MB, free: 52.66 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004566/0.7491, allocations: 1.803 MB / 322.4 MB, free: 51.57 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.7514, allocations: 221.5 kB / 322.6 MB, free: 51.52 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009888/0.7614, allocations: 5.863 MB / 328.5 MB, free: 47.71 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.7627, allocations: 1.373 MB / 329.9 MB, free: 46.88 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000909/0.7636, allocations: 424 kB / 330.3 MB, free: 46.55 MB / 234.7 MB Notification: Performance of SimCode: time 1.312e-06/0.7636, allocations: 0 / 330.3 MB, free: 46.55 MB / 234.7 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: aimc.Jr. [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 2.898223593858831 / (6.283185307179586 * aimc.fsNominal). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 0.1017764061411688 / (6.283185307179586 * aimc.fsNominal).