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.197/1.197, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003776/0.0003778, allocations: 8 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05806/0.05848, allocations: 25.17 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AIMC_Steinmetz): time 0.007754/0.06628, allocations: 4.315 MB / 187.8 MB, free: 1.594 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.0699, allocations: 1.177 MB / 189 MB, free: 424 kB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008222/0.07077, allocations: 23.88 kB / 189 MB, free: 400 kB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005176/0.07131, allocations: 163 kB / 189.2 MB, free: 236 kB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001301/0.07263, allocations: 311 kB / 189.5 MB, free: 15.93 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006436/0.0733, allocations: 151.8 kB / 189.6 MB, free: 15.78 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.002121/0.07544, allocations: 0.9321 MB / 190.6 MB, free: 14.84 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001556/0.07703, allocations: 0.7513 MB / 191.3 MB, free: 14.07 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.07813, allocations: 478.4 kB / 191.8 MB, free: 13.61 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.07938, allocations: 0.5798 MB / 192.4 MB, free: 13.02 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003212/0.07973, allocations: 80 kB / 192.5 MB, free: 12.95 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003801/0.08012, allocations: 76 kB / 192.5 MB, free: 12.87 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000658/0.08079, allocations: 386.9 kB / 192.9 MB, free: 12.49 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004702/0.08128, allocations: 289 kB / 193.2 MB, free: 12.2 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003275/0.08457, allocations: 1.769 MB / 195 MB, free: 10.43 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.08463, allocations: 0 / 195 MB, free: 10.43 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.426e-06/0.08466, allocations: 0 / 195 MB, free: 10.43 MB / 170.7 MB Notification: Performance of Transformations before backend: time 8.278e-05/0.08476, allocations: 4 kB / 195 MB, free: 10.43 MB / 170.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.00727/0.09205, allocations: 1.493 MB / 196.5 MB, free: 8.879 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.533e-05/0.09215, allocations: 8.031 kB / 196.5 MB, free: 8.871 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008748/0.09305, allocations: 189.9 kB / 196.6 MB, free: 8.676 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006903/0.09377, allocations: 142.2 kB / 196.8 MB, free: 8.535 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003558/0.09736, allocations: 0.8164 MB / 197.6 MB, free: 7.672 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.09757, allocations: 94.34 kB / 197.7 MB, free: 7.578 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005112/0.0981, allocations: 120 kB / 197.8 MB, free: 7.461 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005888/0.104, allocations: 1.603 MB / 199.4 MB, free: 5.801 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.374e-05/0.1041, allocations: 11.91 kB / 199.4 MB, free: 5.789 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/0.1044, allocations: 51.98 kB / 199.5 MB, free: 5.738 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000151/0.1046, allocations: 70.34 kB / 199.5 MB, free: 5.668 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005688/0.1103, allocations: 1.306 MB / 200.8 MB, free: 4.355 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1881/0.2985, allocations: 4.823 MB / 205.7 MB, free: 21.12 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003012/0.3016, allocations: 1.332 MB / 207 MB, free: 20.62 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.078e-05/0.3017, allocations: 11.3 kB / 207 MB, free: 20.62 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.3017, allocations: 47.3 kB / 207.1 MB, free: 20.58 MB / 170.7 MB Notification: Performance of pre-optimization done (n=79): time 3.136e-06/0.3018, allocations: 0 / 207.1 MB, free: 20.58 MB / 170.7 MB Notification: Performance of matching and sorting (n=97): time 0.02389/0.3256, allocations: 6.122 MB / 213.2 MB, free: 18.96 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.3257, allocations: 62 kB / 213.2 MB, free: 18.9 MB / 170.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.001198/0.327, allocations: 0.6507 MB / 213.9 MB, free: 18.55 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.3271, allocations: 41.67 kB / 213.9 MB, free: 18.51 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.3274, allocations: 0.5568 MB / 214.5 MB, free: 18 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003074/0.3278, allocations: 342.9 kB / 214.8 MB, free: 17.71 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.242e-05/0.3279, allocations: 23.88 kB / 214.8 MB, free: 17.69 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 9.542e-05/0.328, allocations: 354.5 kB / 215.2 MB, free: 17.35 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.3292, allocations: 0.5219 MB / 215.7 MB, free: 17.09 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.3305, allocations: 0.6983 MB / 216.4 MB, free: 16.62 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.332, allocations: 0.6478 MB / 217.1 MB, free: 16.27 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3321, allocations: 1.219 kB / 217.1 MB, free: 16.27 MB / 170.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005326/0.3374, allocations: 1.985 MB / 219 MB, free: 15.21 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.3375, allocations: 8.766 kB / 219.1 MB, free: 15.21 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.3375, allocations: 7.672 kB / 219.1 MB, free: 15.21 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002931/0.3404, allocations: 0.6981 MB / 219.8 MB, free: 14.86 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.3417, allocations: 167.4 kB / 219.9 MB, free: 14.82 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/0.3565, allocations: 9.849 MB / 229.8 MB, free: 4.93 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.3576, allocations: 65.05 kB / 229.8 MB, free: 4.867 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.536e-05/0.3577, allocations: 36 kB / 229.9 MB, free: 4.832 MB / 170.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 final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "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: 20 * 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 (90): * Single equations (assignments): 85 * 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: 4 * 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: 4 {(4,87.5%) 19,(2,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001057/0.3588, allocations: 470.5 kB / 230.3 MB, free: 4.371 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.359, allocations: 86.92 kB / 230.4 MB, free: 4.285 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005047/0.3641, allocations: 1.964 MB / 232.4 MB, free: 2.293 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.3641, allocations: 8 kB / 232.4 MB, free: 2.285 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.3641, allocations: 11.88 kB / 232.4 MB, free: 2.277 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/0.3642, allocations: 3.984 kB / 232.4 MB, free: 2.273 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009568/0.3737, allocations: 3.612 MB / 236 MB, free: 14.59 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/0.3738, allocations: 4.844 kB / 236 MB, free: 14.59 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.3749, allocations: 119.8 kB / 236.1 MB, free: 14.47 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00352/0.3785, allocations: 0.7299 MB / 236.9 MB, free: 13.73 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/0.3787, allocations: 23.98 kB / 236.9 MB, free: 13.7 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01761/0.3963, allocations: 9.66 MB / 246.6 MB, free: 3.523 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3963, allocations: 0 / 246.6 MB, free: 3.523 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007759/0.4041, allocations: 2.759 MB / 249.3 MB, free: 0.7227 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008278/0.405, allocations: 268 kB / 249.6 MB, free: 452 kB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002696/0.4053, allocations: 27.98 kB / 249.6 MB, free: 424 kB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009145/0.4062, allocations: 50.03 kB / 249.6 MB, free: 376 kB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003526/0.4066, allocations: 76.83 kB / 249.7 MB, free: 296 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.485e-05/0.4067, allocations: 32 kB / 249.8 MB, free: 264 kB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0009578/0.4077, allocations: 445.8 kB / 250.2 MB, free: 15.82 MB / 202.7 MB Notification: Performance of sort global known variables: time 6.22e-07/0.4077, allocations: 0 / 250.2 MB, free: 15.82 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001884/0.4096, allocations: 324 kB / 250.5 MB, free: 15.51 MB / 202.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 (63): * Single equations (assignments): 58 * 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: 4 * 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: 4 {(4,87.5%) 19,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008222/0.4178, allocations: 3.329 MB / 253.8 MB, free: 12.12 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.006422/0.4243, allocations: 2.157 MB / 256 MB, free: 9.895 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.4244, allocations: 0 / 256 MB, free: 9.895 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004456/0.4288, allocations: 1.517 MB / 257.5 MB, free: 8.305 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.4308, allocations: 193.1 kB / 257.7 MB, free: 8.117 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009693/0.4405, allocations: 4.415 MB / 262.1 MB, free: 3.582 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001481/0.4421, allocations: 1.349 MB / 263.5 MB, free: 2.207 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009972/0.4431, allocations: 427.3 kB / 263.9 MB, free: 1.789 MB / 202.7 MB Notification: Performance of SimCode: time 1.743e-06/0.4431, allocations: 0 / 263.9 MB, free: 1.789 MB / 202.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).