Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.22/2.22, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005724/0.0005723, allocations: 8 kB / 264.1 MB, free: 3.461 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3729, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5474/0.9204, allocations: 147.3 MB / 455.9 MB, free: 43.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/0.9208, allocations: 104.3 kB / 456 MB, free: 43.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.523/3.443, allocations: 458.9 MB / 0.8935 GB, free: 28.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.015e-06/3.443, allocations: 7.562 kB / 0.8935 GB, free: 28.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001868/3.445, allocations: 334.9 kB / 0.8938 GB, free: 28.87 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.07462/3.52, allocations: 14.08 MB / 0.9075 GB, free: 24.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/3.52, allocations: 11.12 kB / 0.9075 GB, free: 24.48 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01389/3.534, allocations: 2.332 MB / 0.9098 GB, free: 24.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05924/3.593, allocations: 6.504 MB / 0.9162 GB, free: 23.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04324/3.637, allocations: 11.55 MB / 0.9275 GB, free: 22.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001942/3.639, allocations: 1.049 MB / 0.9285 GB, free: 22.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007939/3.647, allocations: 1.373 MB / 0.9298 GB, free: 22.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08465/3.731, allocations: 23.66 MB / 0.9529 GB, free: 20.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001133/3.732, allocations: 16.56 kB / 0.9529 GB, free: 20.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007137/3.74, allocations: 0.5976 MB / 0.9535 GB, free: 20.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001639/3.741, allocations: 0.9286 MB / 0.9544 GB, free: 20.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06812/3.81, allocations: 21.39 MB / 0.9753 GB, free: 20.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2164/4.026, allocations: 75.16 MB / 1.049 GB, free: 5.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4624/4.488, allocations: 28.44 MB / 1.076 GB, free: 42.43 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1233/4.612, allocations: 29.2 MB / 1.105 GB, free: 41.34 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/4.612, allocations: 116.2 kB / 1.105 GB, free: 41.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=944): time 1.588e-05/4.612, allocations: 5.375 kB / 1.105 GB, free: 41.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=952): time 0.3322/4.944, allocations: 67.58 MB / 1.171 GB, free: 26.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/4.945, allocations: 161.9 kB / 1.171 GB, free: 26.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01234/4.957, allocations: 4.136 MB / 1.175 GB, free: 25.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002439/4.959, allocations: 161.2 kB / 1.175 GB, free: 25.14 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005355/4.965, allocations: 5.314 MB / 1.181 GB, free: 21.17 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005746/4.971, allocations: 3.138 MB / 1.184 GB, free: 18.72 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002611/4.973, allocations: 172.1 kB / 1.184 GB, free: 18.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001294/4.975, allocations: 0.6882 MB / 1.185 GB, free: 18.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01683/4.991, allocations: 6.109 MB / 1.191 GB, free: 15.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0189/5.01, allocations: 7.984 MB / 1.198 GB, free: 10.95 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01987/5.03, allocations: 7.388 MB / 1.206 GB, free: 5.285 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.552e-05/5.03, allocations: 16 kB / 1.206 GB, free: 5.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.06292/5.093, allocations: 18.7 MB / 1.224 GB, free: 5.102 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.255e-05/5.094, allocations: 24 kB / 1.224 GB, free: 5.078 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001809/5.094, allocations: 54.94 kB / 1.224 GB, free: 5.027 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02303/5.117, allocations: 5.916 MB / 1.23 GB, free: 136 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02149/5.138, allocations: 2.047 MB / 1.232 GB, free: 0 / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.472/5.61, allocations: 20.11 MB / 1.251 GB, free: 63.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/5.621, allocations: 435.2 kB / 1.252 GB, free: 63.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00333/5.625, allocations: 375.7 kB / 1.252 GB, free: 63.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,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 (808): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.01839/5.643, allocations: 5.203 MB / 1.257 GB, free: 62.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004243/5.648, allocations: 0.6635 MB / 1.258 GB, free: 62.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05914/5.707, allocations: 18.32 MB / 1.276 GB, free: 62.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04281/5.75, allocations: 14.38 MB / 1.29 GB, free: 62.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-05/5.75, allocations: 10.8 kB / 1.29 GB, free: 62.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002455/5.75, allocations: 40.55 kB / 1.29 GB, free: 62.09 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1086/5.859, allocations: 35.82 MB / 1.325 GB, free: 51.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001784/5.859, allocations: 6.172 kB / 1.325 GB, free: 51.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009722/5.869, allocations: 1.06 MB / 1.326 GB, free: 51.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02194/5.891, allocations: 5.993 MB / 1.332 GB, free: 49.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002825/5.894, allocations: 210.1 kB / 1.332 GB, free: 49.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04442/5.938, allocations: 24.45 MB / 1.356 GB, free: 33.24 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/5.938, allocations: 6.094 kB / 1.356 GB, free: 33.24 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07658/6.015, allocations: 27.58 MB / 1.383 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00875/6.023, allocations: 2.116 MB / 1.385 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00412/6.028, allocations: 150.6 kB / 1.385 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009275/6.037, allocations: 371.5 kB / 1.385 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003705/6.041, allocations: 0.7183 MB / 1.386 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002525/6.043, allocations: 252.4 kB / 1.386 GB, free: 12.21 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008638/6.052, allocations: 3.144 MB / 1.389 GB, free: 9.602 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.012e-06/6.052, allocations: 0 / 1.389 GB, free: 9.602 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01588/6.068, allocations: 2.511 MB / 1.392 GB, free: 7.109 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.5645/6.633, allocations: 31.34 MB / 1.422 GB, free: 81.15 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04744/6.68, allocations: 15.73 MB / 1.438 GB, free: 80.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/6.68, allocations: 2.781 kB / 1.438 GB, free: 80.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0266/6.707, allocations: 8.885 MB / 1.446 GB, free: 79.26 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01419/6.721, allocations: 1.491 MB / 1.448 GB, free: 79.24 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.267/6.988, allocations: 125 MB / 1.57 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02384/7.012, allocations: 9.322 MB / 1.579 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01481/7.027, allocations: 2.076 MB / 1.581 GB, free: 8.871 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01448/7.041, allocations: 5.268 MB / 1.586 GB, free: 4.344 MB / 0.4948 GB Notification: Performance of SimCode: time 1.613e-06/7.041, allocations: 4 kB / 1.586 GB, free: 4.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.584/8.625, allocations: 257 MB / 1.837 GB, free: 86.87 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000285/8.626, allocations: 267.5 kB / 1.837 GB, free: 86.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/20.31, allocations: 0 / 1.837 GB, free: 86.5 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat