Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003488, allocations: 12 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09242, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4278/0.5203, allocations: 104.7 MB / 413.3 MB, free: 11.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5206, allocations: 92.8 kB / 413.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2931/0.8138, allocations: 80.53 MB / 493.9 MB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.8138, allocations: 0 / 493.9 MB, free: 9.812 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003004/0.8141, allocations: 87.92 kB / 494 MB, free: 9.727 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01462/0.8288, allocations: 3.521 MB / 497.5 MB, free: 6.137 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.8288, allocations: 8.031 kB / 497.5 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001669/0.8305, allocations: 459.6 kB / 497.9 MB, free: 5.668 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005705/0.8362, allocations: 0.7451 MB / 498.7 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01205/0.8483, allocations: 3.328 MB / 0.4902 GB, free: 1.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002932/0.8487, allocations: 246.4 kB / 0.4905 GB, free: 1.289 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009709/0.8496, allocations: 319.9 kB / 0.4908 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01202/0.8617, allocations: 4.204 MB / 0.4949 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.8618, allocations: 3.906 kB / 0.4949 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005255/0.8624, allocations: 140 kB / 0.495 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/0.8626, allocations: 150.4 kB / 0.4952 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01084/0.8735, allocations: 3.426 MB / 0.4985 GB, free: 8.926 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0357/0.9092, allocations: 13.91 MB / 0.5121 GB, free: 10.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.9202, allocations: 6.675 MB / 0.5186 GB, free: 3.137 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2848/1.205, allocations: 3.394 MB / 0.5219 GB, free: 85.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/1.205, allocations: 57.31 kB / 0.522 GB, free: 85.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=152): time 4.558e-06/1.205, allocations: 0 / 0.522 GB, free: 85.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.02047/1.226, allocations: 6.463 MB / 0.5283 GB, free: 84.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/1.226, allocations: 68.38 kB / 0.5284 GB, free: 83.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003677/1.229, allocations: 1.528 MB / 0.5299 GB, free: 83.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003572/1.23, allocations: 56.98 kB / 0.5299 GB, free: 83.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000983/1.231, allocations: 1.345 MB / 0.5312 GB, free: 83.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006694/1.231, allocations: 0.526 MB / 0.5317 GB, free: 82.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/1.232, allocations: 35.53 kB / 0.5318 GB, free: 82.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/1.232, allocations: 380.2 kB / 0.5321 GB, free: 82.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/1.234, allocations: 0.7197 MB / 0.5328 GB, free: 82.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002117/1.236, allocations: 1.185 MB / 0.534 GB, free: 82.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/1.238, allocations: 0.9436 MB / 0.5349 GB, free: 82.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/1.238, allocations: 2.969 kB / 0.5349 GB, free: 82.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.007067/1.245, allocations: 2.583 MB / 0.5374 GB, free: 81.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/1.245, allocations: 11.56 kB / 0.5375 GB, free: 81.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.154e-05/1.246, allocations: 13.38 kB / 0.5375 GB, free: 81.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001897/1.247, allocations: 455.6 kB / 0.5379 GB, free: 81.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/1.25, allocations: 371 kB / 0.5383 GB, free: 81.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/1.263, allocations: 9.809 MB / 0.5478 GB, free: 75.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/1.265, allocations: 84.72 kB / 0.5479 GB, free: 75.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/1.265, allocations: 69.12 kB / 0.548 GB, free: 75.24 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (189): * Single equations (assignments): 183 * 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 {(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002696/1.268, allocations: 1.008 MB / 0.549 GB, free: 75.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006246/1.269, allocations: 195.7 kB / 0.5492 GB, free: 75.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006697/1.275, allocations: 2.534 MB / 0.5516 GB, free: 74.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/1.275, allocations: 19.61 kB / 0.5516 GB, free: 74.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-05/1.275, allocations: 11.25 kB / 0.5517 GB, free: 74.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.08e-05/1.276, allocations: 7.219 kB / 0.5517 GB, free: 74.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/1.289, allocations: 5.453 MB / 0.557 GB, free: 73.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/1.29, allocations: 8.25 kB / 0.557 GB, free: 73.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/1.291, allocations: 188.8 kB / 0.5572 GB, free: 73.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002651/1.294, allocations: 0.6335 MB / 0.5578 GB, free: 73.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00024/1.294, allocations: 39.5 kB / 0.5578 GB, free: 73.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01768/1.312, allocations: 14.27 MB / 0.5718 GB, free: 64.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/1.312, allocations: 2.219 kB / 0.5718 GB, free: 64.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0095/1.321, allocations: 3.655 MB / 0.5753 GB, free: 63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/1.323, allocations: 446.7 kB / 0.5758 GB, free: 62.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000455/1.323, allocations: 38.83 kB / 0.5758 GB, free: 62.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/1.325, allocations: 77.58 kB / 0.5759 GB, free: 62.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004977/1.325, allocations: 126.2 kB / 0.576 GB, free: 62.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001307/1.326, allocations: 44.78 kB / 0.576 GB, free: 62.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002431/1.328, allocations: 1.175 MB / 0.5772 GB, free: 62.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.328, allocations: 0 / 0.5772 GB, free: 62.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003759/1.332, allocations: 0.6451 MB / 0.5778 GB, free: 62.08 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (93): * Single equations (assignments): 86 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009144/1.341, allocations: 4.847 MB / 0.5826 GB, free: 59.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005494/1.347, allocations: 2.652 MB / 0.5851 GB, free: 57.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.347, allocations: 0 / 0.5851 GB, free: 57.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004001/1.351, allocations: 2.016 MB / 0.5871 GB, free: 56.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003582/1.354, allocations: 0.4952 MB / 0.5876 GB, free: 56.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04179/1.396, allocations: 26.03 MB / 0.613 GB, free: 37.49 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002523/1.399, allocations: 2.328 MB / 0.6153 GB, free: 36.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002266/1.401, allocations: 1.148 MB / 0.6164 GB, free: 35.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/1.401, allocations: 0 / 0.6164 GB, free: 35.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.326/5.727, allocations: 154.4 MB / 0.7672 GB, free: 36.68 MB / 410.7 MB