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.AIMC_DOL_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.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.68/1.68, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.000341, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08068/0.08105, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3945/0.4756, allocations: 99.44 MB / 371.6 MB, free: 5.945 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.4759, allocations: 87.64 kB / 371.7 MB, free: 5.898 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9178/1.394, allocations: 175.3 MB / 0.5341 GB, free: 14.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.896e-06/1.394, allocations: 0 / 0.5341 GB, free: 14.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007728/1.395, allocations: 195.9 kB / 0.5343 GB, free: 13.83 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: 2059 * Number of variables: 2059 Notification: Performance of Generate backend data structure: time 0.03584/1.43, allocations: 8.237 MB / 0.5424 GB, free: 5.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/1.431, allocations: 12.03 kB / 0.5424 GB, free: 5.484 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004967/1.435, allocations: 1.069 MB / 0.5434 GB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00903/1.445, allocations: 1.307 MB / 0.5447 GB, free: 3.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02055/1.465, allocations: 5.825 MB / 0.5504 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001038/1.466, allocations: 0.5739 MB / 0.5509 GB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003716/1.47, allocations: 0.7729 MB / 0.5517 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04085/1.511, allocations: 10.52 MB / 0.562 GB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003909/1.511, allocations: 11.91 kB / 0.562 GB, free: 1.094 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002818/1.514, allocations: 331.9 kB / 0.5623 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005574/1.515, allocations: 339.7 kB / 0.5626 GB, free: 448 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5842/2.099, allocations: 8.5 MB / 0.5709 GB, free: 39.6 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08782/2.187, allocations: 32.72 MB / 0.6029 GB, free: 34.04 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/2.201, allocations: 8.187 MB / 0.6109 GB, free: 30.21 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005345/2.201, allocations: 39.22 kB / 0.6109 GB, free: 30.21 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.365e-05/2.202, allocations: 76.16 kB / 0.611 GB, free: 30.16 MB / 362.8 MB Notification: Performance of pre-optimization done (n=351): time 7.855e-06/2.202, allocations: 0 / 0.611 GB, free: 30.16 MB / 362.8 MB Notification: Performance of matching and sorting (n=411): time 0.06783/2.269, allocations: 19.38 MB / 0.6299 GB, free: 23.37 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/2.269, allocations: 92.02 kB / 0.63 GB, free: 23.3 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00967/2.279, allocations: 3.801 MB / 0.6337 GB, free: 21.89 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000859/2.28, allocations: 95.23 kB / 0.6338 GB, free: 21.81 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002993/2.283, allocations: 3.349 MB / 0.6371 GB, free: 19.29 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001796/2.285, allocations: 1.362 MB / 0.6384 GB, free: 18.22 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004598/2.285, allocations: 92.47 kB / 0.6385 GB, free: 18.15 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0002774/2.286, allocations: 475 kB / 0.6389 GB, free: 17.77 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005782/2.291, allocations: 2.198 MB / 0.6411 GB, free: 16.91 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007016/2.299, allocations: 3.098 MB / 0.6441 GB, free: 14.98 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007283/2.306, allocations: 2.729 MB / 0.6468 GB, free: 13.75 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.4e-05/2.306, allocations: 6.281 kB / 0.6468 GB, free: 13.75 MB / 362.8 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.02111/2.327, allocations: 7.317 MB / 0.6539 GB, free: 10.79 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.894e-05/2.327, allocations: 18.25 kB / 0.6539 GB, free: 10.79 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.713e-05/2.327, allocations: 29.02 kB / 0.654 GB, free: 10.78 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005594/2.333, allocations: 1.454 MB / 0.6554 GB, free: 10.28 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006629/2.34, allocations: 0.8473 MB / 0.6562 GB, free: 10.25 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03506/2.375, allocations: 20.49 MB / 0.6762 GB, free: 10.46 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00569/2.38, allocations: 176.4 kB / 0.6764 GB, free: 10.31 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001048/2.381, allocations: 155.5 kB / 0.6765 GB, free: 10.16 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 8 (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 (437): * Single equations (assignments): 429 * 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: 6 * 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: 6 {(4,100.0%) 27,(1,100.0%) 5,(1,100.0%) 1,(6,77.8%) 41,(1,100.0%) 1,(4,56.2%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008242/2.39, allocations: 2.672 MB / 0.6791 GB, free: 7.895 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/2.391, allocations: 478.2 kB / 0.6796 GB, free: 7.422 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02286/2.414, allocations: 7.268 MB / 0.6867 GB, free: 1.199 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.574e-05/2.414, allocations: 40 kB / 0.6867 GB, free: 1.16 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-05/2.415, allocations: 24 kB / 0.6868 GB, free: 1.137 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001002/2.415, allocations: 20.02 kB / 0.6868 GB, free: 1.137 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05422/2.469, allocations: 17.09 MB / 0.7035 GB, free: 3.066 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.133e-05/2.469, allocations: 4 kB / 0.7035 GB, free: 3.062 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004449/2.473, allocations: 489.1 kB / 0.7039 GB, free: 2.656 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007475/2.481, allocations: 1.768 MB / 0.7057 GB, free: 1.191 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008841/2.482, allocations: 102.2 kB / 0.7058 GB, free: 1.102 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3461/2.828, allocations: 28.65 MB / 0.7337 GB, free: 53.21 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/2.828, allocations: 7.375 kB / 0.7338 GB, free: 53.21 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02725/2.855, allocations: 10.88 MB / 0.7444 GB, free: 51.35 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004214/2.86, allocations: 1.081 MB / 0.7454 GB, free: 51.25 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001751/2.861, allocations: 95.39 kB / 0.7455 GB, free: 51.25 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004982/2.866, allocations: 187.2 kB / 0.7457 GB, free: 51.25 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001581/2.868, allocations: 362.5 kB / 0.7461 GB, free: 51.25 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004121/2.869, allocations: 111.3 kB / 0.7462 GB, free: 51.25 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.007633/2.876, allocations: 2.919 MB / 0.749 GB, free: 51.07 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.183e-06/2.876, allocations: 0 / 0.749 GB, free: 51.07 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.009095/2.885, allocations: 1.566 MB / 0.7505 GB, free: 51.07 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcM.rotorCage.strayInductor.inductor[4].i,aimcM.rotorCage.strayInductor.inductor[5].i,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.stator.strayReluctance.Phi.re,aimc3.stator.strayReluctance.Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (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 (255): * Single equations (assignments): 246 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(6,77.8%) 40,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 8,(5,92.0%) 25,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02832/2.914, allocations: 12.97 MB / 0.7632 GB, free: 47.65 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01779/2.932, allocations: 6.919 MB / 0.77 GB, free: 46.6 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.932, allocations: 1.312 kB / 0.77 GB, free: 46.6 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01337/2.945, allocations: 5.017 MB / 0.7749 GB, free: 44.01 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009429/2.954, allocations: 1.194 MB / 0.776 GB, free: 43.71 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1497/3.104, allocations: 66 MB / 0.8405 GB, free: 12.73 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01269/3.117, allocations: 5.374 MB / 0.8457 GB, free: 8.719 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.006391/3.123, allocations: 0.9738 MB / 0.8467 GB, free: 8.043 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008315/3.132, allocations: 2.973 MB / 0.8496 GB, free: 5.273 MB / 410.8 MB Notification: Performance of SimCode: time 2.705e-06/3.132, allocations: 0 / 0.8496 GB, free: 5.273 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5851/3.717, allocations: 134.7 MB / 0.9811 GB, free: 16.84 MB / 410.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003107/3.717, allocations: 234.5 kB / 0.9814 GB, free: 16.59 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/11.52, allocations: 0 / 0.9814 GB, free: 16.59 MB / 410.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat