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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.043/1.043, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.049e-05/3.06e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0559/0.05598, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2243/0.2803, allocations: 43.54 MB / 216.9 MB, free: 4.27 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.2806, allocations: 67.44 kB / 217 MB, free: 4.262 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0942/0.3748, allocations: 24.08 MB / 241.1 MB, free: 7.359 MB / 186.7 MB Notification: Performance of FrontEnd: time 5.601e-06/0.3749, allocations: 0 / 241.1 MB, free: 7.359 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001541/0.375, allocations: 39.14 kB / 241.1 MB, free: 7.324 MB / 186.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.007211/0.3823, allocations: 1.49 MB / 242.6 MB, free: 5.871 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.778e-05/0.3824, allocations: 12.03 kB / 242.6 MB, free: 5.859 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009862/0.3834, allocations: 158.1 kB / 242.8 MB, free: 5.703 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003819/0.3872, allocations: 0.87 MB / 243.6 MB, free: 5 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3874, allocations: 44 kB / 243.7 MB, free: 4.957 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005785/0.388, allocations: 81.88 kB / 243.8 MB, free: 4.879 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005697/0.3937, allocations: 1.357 MB / 245.1 MB, free: 3.98 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006163/0.3999, allocations: 1.563 MB / 246.7 MB, free: 2.352 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-05/0.4001, allocations: 3.906 kB / 246.7 MB, free: 2.348 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.4004, allocations: 7.953 kB / 246.7 MB, free: 2.34 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/0.4005, allocations: 58.64 kB / 246.8 MB, free: 2.281 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0178/0.4183, allocations: 4.532 MB / 251.3 MB, free: 13.72 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004021/0.4224, allocations: 1.446 MB / 252.7 MB, free: 12.16 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.4242, allocations: 0.5487 MB / 253.3 MB, free: 11.61 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.4244, allocations: 8.781 kB / 253.3 MB, free: 11.6 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.686e-05/0.4245, allocations: 43.34 kB / 253.3 MB, free: 11.55 MB / 202.7 MB Notification: Performance of pre-optimization done (n=77): time 5.771e-06/0.4245, allocations: 0 / 253.3 MB, free: 11.55 MB / 202.7 MB Notification: Performance of matching and sorting (n=99): time 0.01946/0.444, allocations: 4.197 MB / 257.5 MB, free: 7.293 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.477e-05/0.4441, allocations: 72.7 kB / 257.6 MB, free: 7.211 MB / 202.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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/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/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/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.00167/0.4458, allocations: 0.5245 MB / 258.1 MB, free: 6.684 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002496/0.446, allocations: 25.7 kB / 258.1 MB, free: 6.652 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006514/0.4467, allocations: 0.5602 MB / 258.7 MB, free: 6.086 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005753/0.4473, allocations: 335 kB / 259 MB, free: 5.754 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.4475, allocations: 4 kB / 259 MB, free: 5.75 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002264/0.4477, allocations: 346.8 kB / 259.4 MB, free: 5.402 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001836/0.4495, allocations: 0.5531 MB / 259.9 MB, free: 4.848 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/0.4515, allocations: 0.6374 MB / 260.6 MB, free: 4.195 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/0.4538, allocations: 0.662 MB / 261.2 MB, free: 3.535 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.919e-05/0.4538, allocations: 0 / 261.2 MB, free: 3.535 MB / 202.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.006247/0.4601, allocations: 1.925 MB / 263.2 MB, free: 1.59 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.08e-05/0.4602, allocations: 4 kB / 263.2 MB, free: 1.586 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.4602, allocations: 7.984 kB / 263.2 MB, free: 1.578 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003149/0.4634, allocations: 0.6836 MB / 263.8 MB, free: 0.8828 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.4649, allocations: 171.8 kB / 264 MB, free: 0.7148 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/0.4812, allocations: 8.286 MB / 272.3 MB, free: 8.09 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.4824, allocations: 55.91 kB / 272.4 MB, free: 8.035 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.4826, allocations: 36.05 kB / 272.4 MB, free: 8 MB / 218.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(phi))" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.inertiaRotor.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * 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,92.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004113/0.483, allocations: 131.4 kB / 272.5 MB, free: 7.863 MB / 218.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005494/0.4885, allocations: 1.834 MB / 274.4 MB, free: 6.008 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004035/0.4889, allocations: 75.06 kB / 274.4 MB, free: 5.934 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00583/0.4948, allocations: 1.976 MB / 276.4 MB, free: 3.938 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.4949, allocations: 8 kB / 276.4 MB, free: 3.93 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.4949, allocations: 12.12 kB / 276.4 MB, free: 3.918 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.571e-05/0.4949, allocations: 3.984 kB / 276.4 MB, free: 3.914 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.5053, allocations: 3.59 MB / 280 MB, free: 280 kB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/0.5054, allocations: 4 kB / 280 MB, free: 276 kB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/0.5068, allocations: 135.8 kB / 280.2 MB, free: 140 kB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004275/0.5111, allocations: 0.71 MB / 280.9 MB, free: 15.41 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/0.5113, allocations: 11.98 kB / 280.9 MB, free: 15.4 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01512/0.5264, allocations: 8.131 MB / 289 MB, free: 6.93 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/0.5265, allocations: 0 / 289 MB, free: 6.93 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007159/0.5336, allocations: 2.884 MB / 291.9 MB, free: 3.973 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008201/0.5345, allocations: 299.9 kB / 292.2 MB, free: 3.66 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.5347, allocations: 11.98 kB / 292.2 MB, free: 3.648 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.5358, allocations: 63.91 kB / 292.3 MB, free: 3.586 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003439/0.5361, allocations: 85.06 kB / 292.3 MB, free: 3.5 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.5362, allocations: 31.98 kB / 292.4 MB, free: 3.469 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007397/0.537, allocations: 399.1 kB / 292.8 MB, free: 3.078 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.537, allocations: 0 / 292.8 MB, free: 3.078 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001532/0.5385, allocations: 299.9 kB / 293.1 MB, free: 2.785 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 66 * 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,92.0%) 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.1658/0.7044, allocations: 3.784 MB / 296.8 MB, free: 65.87 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.005176/0.7096, allocations: 2.031 MB / 298.9 MB, free: 65.44 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.7097, allocations: 0 / 298.9 MB, free: 65.44 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003414/0.7131, allocations: 1.393 MB / 300.3 MB, free: 65.01 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.7149, allocations: 151.3 kB / 300.4 MB, free: 65.01 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008168/0.7231, allocations: 2.981 MB / 303.4 MB, free: 64.36 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001418/0.7246, allocations: 1.438 MB / 304.8 MB, free: 63.64 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009786/0.7256, allocations: 447.9 kB / 305.3 MB, free: 63.64 MB / 234.7 MB Notification: Performance of SimCode: time 1.243e-06/0.7256, allocations: 0 / 305.3 MB, free: 63.64 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.468/4.194, allocations: 45.48 MB / 350.7 MB, free: 36.21 MB / 234.7 MB