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_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.AIMC_Inverter,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Machines_Examples_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.083/1.083, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.00026, allocations: 8 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05543/0.05573, allocations: 25.18 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AIMC_Inverter): time 0.006941/0.06273, allocations: 3.894 MB / 187.4 MB, free: 2.012 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.003127/0.06591, allocations: 1.107 MB / 188.5 MB, free: 0.9023 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006032/0.06657, allocations: 23.88 kB / 188.5 MB, free: 0.8789 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005134/0.0671, allocations: 171 kB / 188.7 MB, free: 0.7109 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001012/0.06813, allocations: 259.2 kB / 189 MB, free: 468 kB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005956/0.06874, allocations: 139.7 kB / 189.1 MB, free: 328 kB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.001959/0.07072, allocations: 0.8537 MB / 190 MB, free: 15.46 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001763/0.07252, allocations: 0.9431 MB / 190.9 MB, free: 14.51 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.07356, allocations: 482.3 kB / 191.4 MB, free: 14.04 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.07468, allocations: 0.5993 MB / 192 MB, free: 13.43 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002565/0.07496, allocations: 80 kB / 192 MB, free: 13.36 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003317/0.0753, allocations: 76 kB / 192.1 MB, free: 13.28 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007158/0.07603, allocations: 430.8 kB / 192.5 MB, free: 12.86 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004077/0.07646, allocations: 293 kB / 192.8 MB, free: 12.57 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002899/0.07937, allocations: 1.952 MB / 194.8 MB, free: 10.61 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.07942, allocations: 0 / 194.8 MB, free: 10.61 MB / 170.7 MB Notification: Performance of FrontEnd: time 5.63e-06/0.07944, allocations: 7.984 kB / 194.8 MB, free: 10.6 MB / 170.7 MB Notification: Performance of Transformations before backend: time 6.113e-05/0.07951, allocations: 0 / 194.8 MB, free: 10.6 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.005245/0.08477, allocations: 1.583 MB / 196.4 MB, free: 8.965 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.08485, allocations: 8.031 kB / 196.4 MB, free: 8.957 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006034/0.08546, allocations: 206.4 kB / 196.6 MB, free: 8.746 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003938/0.08587, allocations: 146.2 kB / 196.7 MB, free: 8.602 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002408/0.08829, allocations: 0.8634 MB / 197.6 MB, free: 7.695 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.08845, allocations: 98.58 kB / 197.7 MB, free: 7.598 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003322/0.0888, allocations: 124 kB / 197.8 MB, free: 7.477 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005147/0.09396, allocations: 1.815 MB / 199.6 MB, free: 5.613 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.568e-05/0.09407, allocations: 11.89 kB / 199.6 MB, free: 5.602 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001956/0.09428, allocations: 52 kB / 199.7 MB, free: 5.551 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/0.09442, allocations: 66.61 kB / 199.7 MB, free: 5.484 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005102/0.09954, allocations: 1.54 MB / 201.3 MB, free: 3.938 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1547/0.2543, allocations: 4.826 MB / 206.1 MB, free: 21.38 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00357/0.2579, allocations: 1.447 MB / 207.6 MB, free: 20.78 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/0.2581, allocations: 12.3 kB / 207.6 MB, free: 20.78 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.2581, allocations: 40.09 kB / 207.6 MB, free: 20.74 MB / 170.7 MB Notification: Performance of pre-optimization done (n=74): time 3.857e-06/0.2581, allocations: 0 / 207.6 MB, free: 20.74 MB / 170.7 MB Notification: Performance of matching and sorting (n=92): time 0.02474/0.2829, allocations: 6.21 MB / 213.8 MB, free: 18.89 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.283, allocations: 61.72 kB / 213.9 MB, free: 18.83 MB / 170.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: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.001134/0.2841, allocations: 0.5977 MB / 214.5 MB, free: 18.48 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.2843, allocations: 44.73 kB / 214.5 MB, free: 18.44 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003428/0.2847, allocations: 0.565 MB / 215.1 MB, free: 17.92 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000381/0.285, allocations: 321 kB / 215.4 MB, free: 17.65 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-05/0.2851, allocations: 15.94 kB / 215.4 MB, free: 17.64 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2853, allocations: 346.7 kB / 215.8 MB, free: 17.3 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.2868, allocations: 0.5651 MB / 216.3 MB, free: 17.02 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/0.2885, allocations: 0.6712 MB / 217 MB, free: 16.62 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/0.2902, allocations: 0.6676 MB / 217.7 MB, free: 16.27 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.2903, allocations: 0 / 217.7 MB, free: 16.27 MB / 170.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.005527/0.2958, allocations: 1.947 MB / 219.6 MB, free: 15.24 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/0.2959, allocations: 3.812 kB / 219.6 MB, free: 15.24 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.2959, allocations: 7.797 kB / 219.6 MB, free: 15.23 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002561/0.2985, allocations: 0.6425 MB / 220.3 MB, free: 14.91 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.2998, allocations: 169.9 kB / 220.4 MB, free: 14.86 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01298/0.3129, allocations: 8.265 MB / 228.7 MB, free: 6.57 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.314, allocations: 71.92 kB / 228.8 MB, free: 6.5 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.3141, allocations: 28 kB / 228.8 MB, free: 6.473 MB / 170.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 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.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 75 * 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: 3 * 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: 3 {(5,76.0%) 20,(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001274/0.3154, allocations: 0.5176 MB / 229.3 MB, free: 5.949 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/0.3157, allocations: 75.06 kB / 229.4 MB, free: 5.875 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005495/0.3212, allocations: 2.031 MB / 231.4 MB, free: 3.82 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.798e-05/0.3213, allocations: 12 kB / 231.4 MB, free: 3.809 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.3213, allocations: 4 kB / 231.4 MB, free: 3.805 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.306e-05/0.3213, allocations: 3.984 kB / 231.4 MB, free: 3.801 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0097/0.331, allocations: 3.75 MB / 235.2 MB, free: 15.99 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.3311, allocations: 0.875 kB / 235.2 MB, free: 15.99 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.3324, allocations: 139.7 kB / 235.3 MB, free: 15.86 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/0.3356, allocations: 0.6751 MB / 236 MB, free: 15.17 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/0.3359, allocations: 23.98 kB / 236 MB, free: 15.15 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01586/0.3517, allocations: 8.114 MB / 244.1 MB, free: 6.637 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.3518, allocations: 0 / 244.1 MB, free: 6.637 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008497/0.3603, allocations: 2.868 MB / 247 MB, free: 3.734 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008882/0.3612, allocations: 276 kB / 247.3 MB, free: 3.445 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000246/0.3615, allocations: 25.52 kB / 247.3 MB, free: 3.422 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.3628, allocations: 59.88 kB / 247.3 MB, free: 3.367 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003841/0.3632, allocations: 76.84 kB / 247.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.793e-05/0.3634, allocations: 23.98 kB / 247.4 MB, free: 3.27 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0008616/0.3642, allocations: 414.8 kB / 247.9 MB, free: 2.867 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3642, allocations: 0 / 247.9 MB, free: 2.867 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.00168/0.3659, allocations: 308 kB / 248.2 MB, free: 2.566 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.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 (68): * Single equations (assignments): 64 * 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: 3 * 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: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01275/0.3787, allocations: 3.425 MB / 251.6 MB, free: 15.09 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.007533/0.3863, allocations: 2.072 MB / 253.6 MB, free: 12.96 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.3864, allocations: 4 kB / 253.7 MB, free: 12.96 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004124/0.3905, allocations: 1.42 MB / 255.1 MB, free: 11.48 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.3923, allocations: 163 kB / 255.2 MB, free: 11.32 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.403, allocations: 4.417 MB / 259.6 MB, free: 6.828 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001926/0.405, allocations: 1.427 MB / 261.1 MB, free: 5.375 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/0.4061, allocations: 447.3 kB / 261.5 MB, free: 4.938 MB / 202.7 MB Notification: Performance of SimCode: time 1.573e-06/0.4061, allocations: 0 / 261.5 MB, free: 4.938 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).