Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.562/1.562, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003433, allocations: 8 kB / 233.3 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08119/0.08156, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.4868, allocations: 99.44 MB / 371.5 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.4872, allocations: 89.33 kB / 371.6 MB, free: 6.473 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9566/1.444, allocations: 175.3 MB / 0.5341 GB, free: 14.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.905e-06/1.444, allocations: 4 kB / 0.5341 GB, free: 14.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007472/1.445, allocations: 199.7 kB / 0.5343 GB, free: 14.33 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.03514/1.48, allocations: 8.234 MB / 0.5423 GB, free: 6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.48, allocations: 8.031 kB / 0.5423 GB, free: 5.992 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004547/1.484, allocations: 1.073 MB / 0.5434 GB, free: 4.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008934/1.493, allocations: 1.307 MB / 0.5447 GB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01906/1.512, allocations: 5.825 MB / 0.5503 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009555/1.513, allocations: 0.5818 MB / 0.5509 GB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003681/1.517, allocations: 0.7729 MB / 0.5517 GB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03822/1.555, allocations: 10.51 MB / 0.5619 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000361/1.556, allocations: 11.91 kB / 0.5619 GB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002611/1.558, allocations: 328 kB / 0.5623 GB, free: 1.277 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004937/1.559, allocations: 343.7 kB / 0.5626 GB, free: 0.9414 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5754/2.134, allocations: 8.499 MB / 0.5709 GB, free: 39.51 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08365/2.218, allocations: 32.72 MB / 0.6028 GB, free: 33.96 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01311/2.231, allocations: 8.189 MB / 0.6108 GB, free: 30.12 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004312/2.232, allocations: 49.23 kB / 0.6109 GB, free: 30.12 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.411e-05/2.232, allocations: 74.72 kB / 0.611 GB, free: 30.07 MB / 362.8 MB Notification: Performance of pre-optimization done (n=351): time 7.864e-06/2.232, allocations: 7.062 kB / 0.611 GB, free: 30.07 MB / 362.8 MB Notification: Performance of matching and sorting (n=411): time 0.0672/2.299, allocations: 19.37 MB / 0.6299 GB, free: 23.5 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/2.299, allocations: 92.67 kB / 0.63 GB, free: 23.43 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008119/2.307, allocations: 3.797 MB / 0.6337 GB, free: 22.03 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008035/2.308, allocations: 99.7 kB / 0.6338 GB, free: 21.94 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002279/2.31, allocations: 3.086 MB / 0.6368 GB, free: 19.48 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001743/2.312, allocations: 1.371 MB / 0.6381 GB, free: 18.42 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003943/2.313, allocations: 87.31 kB / 0.6382 GB, free: 18.35 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0002505/2.313, allocations: 486.5 kB / 0.6387 GB, free: 17.96 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005307/2.318, allocations: 2.197 MB / 0.6408 GB, free: 17.09 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005914/2.324, allocations: 3.092 MB / 0.6438 GB, free: 15.17 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006347/2.33, allocations: 2.731 MB / 0.6465 GB, free: 13.93 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.704e-05/2.331, allocations: 8.844 kB / 0.6465 GB, free: 13.93 MB / 362.8 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.0174/2.348, allocations: 7.026 MB / 0.6534 GB, free: 11.12 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/2.348, allocations: 17.44 kB / 0.6534 GB, free: 11.12 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.047e-05/2.348, allocations: 29.02 kB / 0.6534 GB, free: 11.12 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005236/2.353, allocations: 1.45 MB / 0.6548 GB, free: 10.62 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006345/2.36, allocations: 0.8342 MB / 0.6556 GB, free: 10.59 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03289/2.393, allocations: 20.49 MB / 0.6757 GB, free: 11.48 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005249/2.398, allocations: 179.2 kB / 0.6758 GB, free: 11.33 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006689/2.399, allocations: 159.2 kB / 0.676 GB, free: 11.18 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.007539/2.406, allocations: 2.663 MB / 0.6786 GB, free: 8.918 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001536/2.408, allocations: 481.7 kB / 0.679 GB, free: 8.445 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02151/2.429, allocations: 7.275 MB / 0.6861 GB, free: 2.215 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.143e-05/2.429, allocations: 40 kB / 0.6862 GB, free: 2.176 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.46e-05/2.429, allocations: 24 kB / 0.6862 GB, free: 2.152 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/2.43, allocations: 17.62 kB / 0.6862 GB, free: 2.152 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05333/2.483, allocations: 17.2 MB / 0.703 GB, free: 4.375 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.153e-05/2.483, allocations: 11.95 kB / 0.703 GB, free: 4.363 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004326/2.487, allocations: 493 kB / 0.7035 GB, free: 3.957 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007257/2.495, allocations: 1.762 MB / 0.7052 GB, free: 2.5 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007888/2.495, allocations: 102.6 kB / 0.7053 GB, free: 2.41 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.325/2.82, allocations: 28.66 MB / 0.7333 GB, free: 54.45 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/2.82, allocations: 10.38 kB / 0.7333 GB, free: 54.45 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02609/2.847, allocations: 10.88 MB / 0.7439 GB, free: 52.59 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003766/2.85, allocations: 1.074 MB / 0.745 GB, free: 52.5 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001658/2.852, allocations: 97.31 kB / 0.7451 GB, free: 52.5 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005023/2.857, allocations: 191.5 kB / 0.7453 GB, free: 52.5 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001538/2.859, allocations: 353.1 kB / 0.7456 GB, free: 52.49 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004045/2.859, allocations: 110.1 kB / 0.7457 GB, free: 52.49 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.007103/2.866, allocations: 2.924 MB / 0.7486 GB, free: 52.31 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.603e-06/2.866, allocations: 0 / 0.7486 GB, free: 52.31 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.008222/2.875, allocations: 1.567 MB / 0.7501 GB, free: 52.31 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.0263/2.901, allocations: 12.97 MB / 0.7628 GB, free: 48.89 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01688/2.918, allocations: 6.915 MB / 0.7695 GB, free: 47.84 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/2.918, allocations: 0 / 0.7695 GB, free: 47.84 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01259/2.93, allocations: 5.024 MB / 0.7744 GB, free: 45.41 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008934/2.939, allocations: 1.186 MB / 0.7756 GB, free: 45.12 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1309/3.07, allocations: 65.27 MB / 0.8393 GB, free: 12.82 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01111/3.081, allocations: 5.256 MB / 0.8445 GB, free: 8.895 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007873/3.089, allocations: 2.998 MB / 0.8474 GB, free: 6.105 MB / 410.8 MB Notification: Performance of SimCode: time 1.403e-06/3.089, allocations: 0 / 0.8474 GB, free: 6.105 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.679/9.769, allocations: 475.7 MB / 1.312 GB, free: 60.18 MB / 426.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat