Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 194.9 MB / 211.1 MB, free: 8.547 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003613, allocations: 12 kB / 264.1 MB, free: 3.457 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3271, allocations: 44.5 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1851/0.5122, allocations: 103.7 MB / 412.3 MB, free: 4.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003455/0.5126, allocations: 99.94 kB / 412.4 MB, free: 4.773 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6391/1.152, allocations: 80.22 MB / 492.6 MB, free: 33.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.326e-06/1.152, allocations: 0 / 492.6 MB, free: 33.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003329/1.152, allocations: 75.94 kB / 492.7 MB, free: 33.03 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01466/1.167, allocations: 3.529 MB / 496.2 MB, free: 29.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.167, allocations: 8.031 kB / 496.2 MB, free: 29.42 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00182/1.169, allocations: 454.9 kB / 496.7 MB, free: 28.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005972/1.175, allocations: 0.7335 MB / 497.4 MB, free: 28.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01177/1.187, allocations: 3.371 MB / 0.489 GB, free: 24.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002798/1.187, allocations: 242.2 kB / 0.4893 GB, free: 24.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/1.188, allocations: 319.7 kB / 0.4896 GB, free: 24.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/1.202, allocations: 4.176 MB / 0.4937 GB, free: 19.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001548/1.202, allocations: 3.938 kB / 0.4937 GB, free: 19.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008646/1.203, allocations: 132 kB / 0.4938 GB, free: 19.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001735/1.203, allocations: 142.2 kB / 0.4939 GB, free: 19.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01101/1.214, allocations: 3.464 MB / 0.4973 GB, free: 16.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03365/1.248, allocations: 13.55 MB / 0.5105 GB, free: 2.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/1.258, allocations: 6.882 MB / 0.5173 GB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/1.269, allocations: 3.269 MB / 0.5205 GB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/1.269, allocations: 43.88 kB / 0.5205 GB, free: 7.109 MB / 362.7 MB Notification: Performance of pre-optimization done (n=130): time 4.268e-06/1.269, allocations: 0 / 0.5205 GB, free: 7.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=150): time 0.02471/1.293, allocations: 6.796 MB / 0.5271 GB, free: 116 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/1.293, allocations: 76.7 kB / 0.5272 GB, free: 28 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004373/1.298, allocations: 1.619 MB / 0.5288 GB, free: 14.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003542/1.298, allocations: 53.7 kB / 0.5288 GB, free: 14.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001609/1.3, allocations: 1.42 MB / 0.5302 GB, free: 12.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000827/1.301, allocations: 0.5083 MB / 0.5307 GB, free: 12.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/1.301, allocations: 36 kB / 0.5308 GB, free: 12.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002857/1.301, allocations: 369.9 kB / 0.5311 GB, free: 12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/1.304, allocations: 0.7847 MB / 0.5319 GB, free: 11.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002913/1.307, allocations: 1.222 MB / 0.5331 GB, free: 9.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00303/1.31, allocations: 1.002 MB / 0.534 GB, free: 8.801 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-05/1.31, allocations: 4 kB / 0.5341 GB, free: 8.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.008738/1.319, allocations: 2.691 MB / 0.5367 GB, free: 6.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.153e-05/1.319, allocations: 12 kB / 0.5367 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/1.319, allocations: 12.31 kB / 0.5367 GB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/1.321, allocations: 0.5125 MB / 0.5372 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003209/1.324, allocations: 391.4 kB / 0.5376 GB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01446/1.339, allocations: 6.552 MB / 0.544 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002769/1.342, allocations: 84.11 kB / 0.5441 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004545/1.342, allocations: 71.98 kB / 0.5441 GB, free: 14.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (184): * Single equations (assignments): 182 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003242/1.345, allocations: 1.048 MB / 0.5451 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006932/1.346, allocations: 197.6 kB / 0.5453 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008069/1.354, allocations: 2.566 MB / 0.5478 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.471e-05/1.354, allocations: 19.94 kB / 0.5479 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/1.354, allocations: 8 kB / 0.5479 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.561e-05/1.354, allocations: 7.969 kB / 0.5479 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/1.371, allocations: 5.653 MB / 0.5534 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/1.371, allocations: 4 kB / 0.5534 GB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002199/1.373, allocations: 231.7 kB / 0.5536 GB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00243/1.375, allocations: 0.496 MB / 0.5541 GB, free: 3.734 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003092/1.376, allocations: 39.98 kB / 0.5541 GB, free: 3.695 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2906/1.666, allocations: 10.58 MB / 0.5645 GB, free: 79.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/1.666, allocations: 13.8 kB / 0.5645 GB, free: 79.84 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008721/1.675, allocations: 3.754 MB / 0.5682 GB, free: 79.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/1.677, allocations: 469.5 kB / 0.5686 GB, free: 79.15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004534/1.677, allocations: 33.25 kB / 0.5686 GB, free: 79.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/1.679, allocations: 77.69 kB / 0.5687 GB, free: 79.15 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/1.679, allocations: 109.3 kB / 0.5688 GB, free: 79.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/1.679, allocations: 43.42 kB / 0.5689 GB, free: 79.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002808/1.682, allocations: 1.251 MB / 0.5701 GB, free: 79.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.682, allocations: 0 / 0.5701 GB, free: 79.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003396/1.686, allocations: 0.6316 MB / 0.5707 GB, free: 79.04 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * 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 (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009527/1.695, allocations: 4.947 MB / 0.5755 GB, free: 77.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006113/1.701, allocations: 2.447 MB / 0.5779 GB, free: 77.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/1.701, allocations: 7.188 kB / 0.5779 GB, free: 77.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003742/1.705, allocations: 1.736 MB / 0.5796 GB, free: 76.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003912/1.709, allocations: 496.8 kB / 0.5801 GB, free: 76.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04728/1.756, allocations: 26.22 MB / 0.6057 GB, free: 61.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003613/1.76, allocations: 2.429 MB / 0.6081 GB, free: 60.95 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002607/1.763, allocations: 419.5 kB / 0.6085 GB, free: 60.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002613/1.765, allocations: 1.125 MB / 0.6096 GB, free: 60.67 MB / 394.7 MB Notification: Performance of SimCode: time 1.693e-06/1.765, allocations: 0 / 0.6096 GB, free: 60.67 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1612/1.927, allocations: 54.37 MB / 0.6627 GB, free: 29.59 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002269/1.927, allocations: 222.4 kB / 0.6629 GB, free: 29.36 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.805/6.732, allocations: 3.938 kB / 0.6629 GB, free: 29.35 MB / 394.7 MB