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_DOL.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_DOL,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.987/1.987, allocations: 194.8 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008435/0.0008437, allocations: 8 kB / 264.1 MB, free: 3.469 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3286, allocations: 44.5 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4725/0.8012, allocations: 117.2 MB / 425.7 MB, free: 50.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003433/0.8016, allocations: 90.59 kB / 425.8 MB, free: 50.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4398/1.241, allocations: 117.5 MB / 0.5306 GB, free: 4.945 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.987e-06/1.241, allocations: 3.938 kB / 0.5306 GB, free: 4.941 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006734/1.242, allocations: 127.9 kB / 0.5307 GB, free: 4.816 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02628/1.268, allocations: 5.439 MB / 0.536 GB, free: 15.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/1.269, allocations: 12.03 kB / 0.5361 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003716/1.272, allocations: 0.7076 MB / 0.5367 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008249/1.281, allocations: 1 MB / 0.5377 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01912/1.3, allocations: 4.629 MB / 0.5422 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006821/1.301, allocations: 386.3 kB / 0.5426 GB, free: 8.473 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002569/1.303, allocations: 0.4998 MB / 0.5431 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02636/1.33, allocations: 6.858 MB / 0.5498 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003487/1.33, allocations: 11.91 kB / 0.5498 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002048/1.332, allocations: 212 kB / 0.55 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00039/1.332, allocations: 234.2 kB / 0.5502 GB, free: 472 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02141/1.354, allocations: 5.596 MB / 0.5557 GB, free: 10.85 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.362/1.716, allocations: 21.44 MB / 0.5766 GB, free: 54.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/1.728, allocations: 8.746 MB / 0.5852 GB, free: 48.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01654/1.745, allocations: 5.209 MB / 0.5903 GB, free: 47.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.258e-05/1.745, allocations: 63.67 kB / 0.5903 GB, free: 47.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=230): time 6.221e-06/1.745, allocations: 3.828 kB / 0.5903 GB, free: 47.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=249): time 0.04505/1.79, allocations: 11.59 MB / 0.6016 GB, free: 45.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/1.79, allocations: 84.03 kB / 0.6017 GB, free: 45.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005964/1.796, allocations: 2.603 MB / 0.6043 GB, free: 45.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006004/1.797, allocations: 67.86 kB / 0.6043 GB, free: 45.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001947/1.799, allocations: 2.281 MB / 0.6066 GB, free: 44.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/1.8, allocations: 0.8469 MB / 0.6074 GB, free: 43.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/1.8, allocations: 57.47 kB / 0.6074 GB, free: 43.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001856/1.801, allocations: 424.6 kB / 0.6078 GB, free: 43.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003352/1.804, allocations: 1.39 MB / 0.6092 GB, free: 43.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003883/1.808, allocations: 2.129 MB / 0.6113 GB, free: 42.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004372/1.812, allocations: 1.73 MB / 0.613 GB, free: 42.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.091e-05/1.812, allocations: 7.562 kB / 0.613 GB, free: 42.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01244/1.825, allocations: 4.712 MB / 0.6176 GB, free: 42.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.467e-05/1.825, allocations: 14.69 kB / 0.6176 GB, free: 42.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.911e-05/1.825, allocations: 25.88 kB / 0.6176 GB, free: 42.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002873/1.828, allocations: 0.7565 MB / 0.6184 GB, free: 42.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004865/1.833, allocations: 0.6572 MB / 0.619 GB, free: 42.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01532/1.848, allocations: 13.57 MB / 0.6323 GB, free: 33.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/1.852, allocations: 158.6 kB / 0.6324 GB, free: 33.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006661/1.853, allocations: 119.6 kB / 0.6325 GB, free: 33.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 7 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004333/1.857, allocations: 1.604 MB / 0.6341 GB, free: 33.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/1.858, allocations: 327.2 kB / 0.6344 GB, free: 32.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01128/1.87, allocations: 4.322 MB / 0.6386 GB, free: 31.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-05/1.87, allocations: 20.91 kB / 0.6386 GB, free: 31.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.829e-05/1.87, allocations: 10.66 kB / 0.6386 GB, free: 31.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.583e-05/1.87, allocations: 14.11 kB / 0.6387 GB, free: 31.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02597/1.896, allocations: 9.326 MB / 0.6478 GB, free: 27.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.954e-05/1.896, allocations: 6.688 kB / 0.6478 GB, free: 27.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003527/1.9, allocations: 411.2 kB / 0.6482 GB, free: 27.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00414/1.904, allocations: 0.9233 MB / 0.6491 GB, free: 27.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006368/1.904, allocations: 65.98 kB / 0.6491 GB, free: 27.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02149/1.926, allocations: 16.79 MB / 0.6655 GB, free: 30.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.926, allocations: 9.469 kB / 0.6655 GB, free: 30.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01507/1.941, allocations: 6.587 MB / 0.672 GB, free: 26.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0027/1.944, allocations: 0.7192 MB / 0.6727 GB, free: 26.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.945, allocations: 59.41 kB / 0.6727 GB, free: 26.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003788/1.949, allocations: 145.2 kB / 0.6729 GB, free: 26.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009997/1.95, allocations: 204.5 kB / 0.6731 GB, free: 26.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002919/1.95, allocations: 72.84 kB / 0.6731 GB, free: 26.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005189/1.955, allocations: 1.986 MB / 0.6751 GB, free: 25.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.955, allocations: 7.188 kB / 0.6751 GB, free: 25.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005734/1.961, allocations: 1.027 MB / 0.6761 GB, free: 25.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 181 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01848/1.98, allocations: 8.42 MB / 0.6843 GB, free: 20.65 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01057/1.99, allocations: 4.668 MB / 0.6889 GB, free: 18.31 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/1.99, allocations: 4.312 kB / 0.6889 GB, free: 18.31 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007884/1.998, allocations: 3.114 MB / 0.6919 GB, free: 15.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006643/2.005, allocations: 0.8358 MB / 0.6927 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4863/2.491, allocations: 45.45 MB / 0.7371 GB, free: 85.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008306/2.5, allocations: 3.53 MB / 0.7405 GB, free: 85.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006499/2.506, allocations: 0.7729 MB / 0.7413 GB, free: 84.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006035/2.512, allocations: 1.958 MB / 0.7432 GB, free: 84.99 MB / 442.7 MB Notification: Performance of SimCode: time 2.004e-06/2.512, allocations: 0 / 0.7432 GB, free: 84.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.208/2.72, allocations: 87.51 MB / 0.8287 GB, free: 54.55 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/2.721, allocations: 218.4 kB / 0.8289 GB, free: 54.31 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.161/8.882, allocations: 0 / 0.8289 GB, free: 54.31 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat