Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.656/1.656, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000482/0.0004823, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08706, allocations: 38.78 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4064/0.4935, allocations: 101.8 MB / 373.9 MB, free: 4.094 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.4938, allocations: 87.95 kB / 374 MB, free: 4.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25/1.744, allocations: 210.1 MB / 0.5704 GB, free: 31.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.467e-06/1.744, allocations: 3.188 kB / 0.5704 GB, free: 31.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.001165/1.745, allocations: 240.1 kB / 0.5706 GB, free: 31.45 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.04613/1.792, allocations: 10.16 MB / 0.5806 GB, free: 27.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/1.792, allocations: 11.66 kB / 0.5806 GB, free: 27.89 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007067/1.799, allocations: 1.301 MB / 0.5819 GB, free: 27.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01508/1.814, allocations: 1.55 MB / 0.5834 GB, free: 27.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03637/1.85, allocations: 7.565 MB / 0.5908 GB, free: 26.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001372/1.852, allocations: 0.705 MB / 0.5914 GB, free: 26.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005597/1.857, allocations: 0.9202 MB / 0.5923 GB, free: 26.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04775/1.905, allocations: 13.01 MB / 0.605 GB, free: 24.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006577/1.906, allocations: 10.75 kB / 0.6051 GB, free: 24.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004218/1.91, allocations: 404.4 kB / 0.6054 GB, free: 24.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004769/1.911, allocations: 398.7 kB / 0.6058 GB, free: 24.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03436/1.945, allocations: 10.5 MB / 0.6161 GB, free: 24.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1076/2.053, allocations: 40.58 MB / 0.6557 GB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02084/2.074, allocations: 8.713 MB / 0.6642 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006297/2.074, allocations: 50.36 kB / 0.6643 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001039/2.074, allocations: 85.84 kB / 0.6643 GB, free: 14.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=431): time 7.925e-06/2.074, allocations: 0 / 0.6643 GB, free: 14.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=439): time 0.1062/2.181, allocations: 22.4 MB / 0.6862 GB, free: 11.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.501e-05/2.181, allocations: 98.86 kB / 0.6863 GB, free: 11.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01331/2.194, allocations: 4.655 MB / 0.6909 GB, free: 7.168 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001171/2.195, allocations: 105.6 kB / 0.691 GB, free: 7.059 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005301/2.201, allocations: 4.118 MB / 0.695 GB, free: 3.391 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002966/2.204, allocations: 1.446 MB / 0.6964 GB, free: 2.086 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006572/2.204, allocations: 96 kB / 0.6965 GB, free: 1.992 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005195/2.205, allocations: 494.4 kB / 0.697 GB, free: 1.559 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01556/2.22, allocations: 2.579 MB / 0.6995 GB, free: 0 / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3073/2.528, allocations: 3.394 MB / 0.7028 GB, free: 57.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008152/2.536, allocations: 2.913 MB / 0.7056 GB, free: 57.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.636e-05/2.536, allocations: 11.88 kB / 0.7056 GB, free: 57.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.02438/2.56, allocations: 7.999 MB / 0.7135 GB, free: 57.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.243e-05/2.561, allocations: 16.66 kB / 0.7135 GB, free: 57.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.513e-05/2.561, allocations: 27.97 kB / 0.7135 GB, free: 57.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006462/2.567, allocations: 1.519 MB / 0.715 GB, free: 56.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007872/2.575, allocations: 0.967 MB / 0.7159 GB, free: 56.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03464/2.61, allocations: 27.67 MB / 0.7429 GB, free: 39.17 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006615/2.616, allocations: 217.9 kB / 0.7432 GB, free: 39.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001239/2.618, allocations: 171.3 kB / 0.7433 GB, free: 39.17 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 493 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,56.2%) 25,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009208/2.627, allocations: 3.162 MB / 0.7464 GB, free: 39.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002054/2.629, allocations: 0.5663 MB / 0.747 GB, free: 39.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02336/2.652, allocations: 7.995 MB / 0.7548 GB, free: 38.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.584e-05/2.653, allocations: 44.14 kB / 0.7548 GB, free: 38.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.595e-05/2.653, allocations: 28.69 kB / 0.7548 GB, free: 38.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001018/2.653, allocations: 21.05 kB / 0.7549 GB, free: 38.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05225/2.705, allocations: 17.72 MB / 0.7722 GB, free: 35.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.797e-05/2.705, allocations: 3.656 kB / 0.7722 GB, free: 35.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004224/2.709, allocations: 476.2 kB / 0.7726 GB, free: 35.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009394/2.719, allocations: 2.256 MB / 0.7748 GB, free: 34.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00096/2.72, allocations: 97.41 kB / 0.7749 GB, free: 34.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05343/2.773, allocations: 35.53 MB / 0.8096 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/2.773, allocations: 10.47 kB / 0.8096 GB, free: 9.199 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03169/2.805, allocations: 12.1 MB / 0.8214 GB, free: 3.418 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004728/2.81, allocations: 1.202 MB / 0.8226 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001939/2.812, allocations: 89.06 kB / 0.8227 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005713/2.817, allocations: 253 kB / 0.8229 GB, free: 2.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001762/2.819, allocations: 428 kB / 0.8233 GB, free: 2.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005364/2.82, allocations: 112.9 kB / 0.8234 GB, free: 2.473 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01054/2.83, allocations: 3.66 MB / 0.827 GB, free: 0 / 394.7 MB Notification: Performance of sort global known variables: time 6.52e-07/2.83, allocations: 336 / 0.827 GB, free: 0 / 394.7 MB Notification: Performance of remove unused functions: time 0.02584/2.856, allocations: 2.719 MB / 0.8297 GB, free: 0 / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 240 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,54.5%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03736/2.894, allocations: 14.08 MB / 0.8434 GB, free: 3.387 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3078/3.202, allocations: 8.256 MB / 0.8515 GB, free: 66.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/3.202, allocations: 2.719 kB / 0.8515 GB, free: 66.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01489/3.217, allocations: 5.892 MB / 0.8572 GB, free: 64.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0116/3.228, allocations: 1.596 MB / 0.8588 GB, free: 64.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1584/3.387, allocations: 77.57 MB / 0.9346 GB, free: 20.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01363/3.4, allocations: 6.317 MB / 0.9407 GB, free: 19.67 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00769/3.408, allocations: 1.151 MB / 0.9418 GB, free: 19.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008664/3.417, allocations: 3.66 MB / 0.9454 GB, free: 19.55 MB / 410.7 MB Notification: Performance of SimCode: time 1.533e-06/3.417, allocations: 0 / 0.9454 GB, free: 19.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7073/4.124, allocations: 162.4 MB / 1.104 GB, free: 20.48 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003826/4.125, allocations: 236.7 kB / 1.104 GB, free: 20.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.255/13.38, allocations: 0 / 1.104 GB, free: 20.23 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat