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_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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.843/1.843, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003467, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09396, allocations: 44.52 MB / 308.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4499/0.5439, allocations: 117.2 MB / 425.7 MB, free: 5.816 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5443, allocations: 89.14 kB / 425.8 MB, free: 5.805 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7468/1.291, allocations: 117.5 MB / 0.5306 GB, free: 65.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.291, allocations: 3.438 kB / 0.5306 GB, free: 65.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006328/1.292, allocations: 135.2 kB / 0.5307 GB, free: 65.35 MB / 410.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.02442/1.316, allocations: 5.427 MB / 0.536 GB, free: 63.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/1.316, allocations: 9.062 kB / 0.536 GB, free: 63.54 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003232/1.32, allocations: 0.7097 MB / 0.5367 GB, free: 63.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008238/1.328, allocations: 0.9981 MB / 0.5377 GB, free: 63.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01835/1.346, allocations: 4.637 MB / 0.5422 GB, free: 62.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006035/1.347, allocations: 388.8 kB / 0.5426 GB, free: 62.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002294/1.349, allocations: 0.5133 MB / 0.5431 GB, free: 62.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02923/1.378, allocations: 6.835 MB / 0.5497 GB, free: 61.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004513/1.379, allocations: 14.83 kB / 0.5498 GB, free: 61.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002415/1.381, allocations: 222.3 kB / 0.55 GB, free: 61.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003716/1.382, allocations: 227 kB / 0.5502 GB, free: 61.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02576/1.408, allocations: 5.601 MB / 0.5557 GB, free: 61.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07175/1.479, allocations: 21.44 MB / 0.5766 GB, free: 57.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0123/1.492, allocations: 8.763 MB / 0.5852 GB, free: 50.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01495/1.507, allocations: 5.204 MB / 0.5902 GB, free: 47.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.044e-05/1.507, allocations: 58.22 kB / 0.5903 GB, free: 47.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=230): time 4.969e-06/1.507, allocations: 4 kB / 0.5903 GB, free: 47.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=249): time 0.04017/1.547, allocations: 11.58 MB / 0.6016 GB, free: 42.35 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/1.547, allocations: 80.44 kB / 0.6017 GB, free: 42.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006594/1.554, allocations: 2.608 MB / 0.6042 GB, free: 41.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005997/1.554, allocations: 65.39 kB / 0.6043 GB, free: 41.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001802/1.556, allocations: 2.134 MB / 0.6064 GB, free: 39.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/1.557, allocations: 0.8495 MB / 0.6072 GB, free: 38.87 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/1.558, allocations: 59.47 kB / 0.6073 GB, free: 38.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002199/1.558, allocations: 421.3 kB / 0.6077 GB, free: 38.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003708/1.562, allocations: 1.392 MB / 0.609 GB, free: 37.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004313/1.566, allocations: 2.13 MB / 0.6111 GB, free: 36.51 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004525/1.571, allocations: 1.73 MB / 0.6128 GB, free: 35.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.919e-05/1.571, allocations: 9.5 kB / 0.6128 GB, free: 35.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01227/1.583, allocations: 4.513 MB / 0.6172 GB, free: 33.94 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/1.583, allocations: 15.72 kB / 0.6172 GB, free: 33.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.099e-05/1.583, allocations: 23.28 kB / 0.6172 GB, free: 33.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002966/1.586, allocations: 0.7586 MB / 0.618 GB, free: 33.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004868/1.591, allocations: 0.6539 MB / 0.6186 GB, free: 33.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01582/1.607, allocations: 13.58 MB / 0.6319 GB, free: 22.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004343/1.611, allocations: 168.9 kB / 0.632 GB, free: 22.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007655/1.612, allocations: 120.5 kB / 0.6322 GB, free: 22.27 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.004853/1.617, allocations: 1.603 MB / 0.6337 GB, free: 21.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001126/1.618, allocations: 321.6 kB / 0.634 GB, free: 21.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/1.632, allocations: 4.319 MB / 0.6382 GB, free: 19.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/1.632, allocations: 23.69 kB / 0.6383 GB, free: 19.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.243e-05/1.632, allocations: 7.812 kB / 0.6383 GB, free: 19.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.182e-05/1.632, allocations: 12.42 kB / 0.6383 GB, free: 19.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02558/1.657, allocations: 9.324 MB / 0.6474 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.355e-05/1.658, allocations: 4 kB / 0.6474 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003524/1.661, allocations: 405.8 kB / 0.6478 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004083/1.665, allocations: 0.9258 MB / 0.6487 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005825/1.666, allocations: 77.52 kB / 0.6488 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02266/1.688, allocations: 16.81 MB / 0.6652 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.369e-05/1.689, allocations: 7.938 kB / 0.6652 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01784/1.706, allocations: 6.581 MB / 0.6716 GB, free: 4.754 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003035/1.709, allocations: 0.7221 MB / 0.6723 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/1.711, allocations: 58.91 kB / 0.6724 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003563/1.714, allocations: 152 kB / 0.6725 GB, free: 3.922 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009044/1.715, allocations: 197.1 kB / 0.6727 GB, free: 3.801 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003016/1.716, allocations: 73.81 kB / 0.6728 GB, free: 3.734 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005554/1.721, allocations: 1.988 MB / 0.6747 GB, free: 2.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.721, allocations: 7.938 kB / 0.6747 GB, free: 2.062 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006315/1.727, allocations: 1.027 MB / 0.6757 GB, free: 1.039 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.3655/2.093, allocations: 8.402 MB / 0.6839 GB, free: 70.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01087/2.104, allocations: 4.678 MB / 0.6885 GB, free: 68.87 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.447e-06/2.104, allocations: 5.719 kB / 0.6885 GB, free: 68.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007724/2.112, allocations: 3.109 MB / 0.6915 GB, free: 67.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006584/2.118, allocations: 0.8375 MB / 0.6924 GB, free: 67.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07582/2.194, allocations: 45.37 MB / 0.7367 GB, free: 41.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005093/2.199, allocations: 3.447 MB / 0.74 GB, free: 40.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004426/2.204, allocations: 1.973 MB / 0.742 GB, free: 40.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/2.204, allocations: 2.062 kB / 0.742 GB, free: 40.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.676/7.88, allocations: 320.9 MB / 1.055 GB, free: 98.91 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat