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.AIMS_Start_MultiPhase.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.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.179/2.179, allocations: 194.9 MB / 211.1 MB, free: 7.574 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006683/0.0006685, allocations: 8 kB / 264.1 MB, free: 2.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3247, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5115/0.8363, allocations: 110.2 MB / 418.8 MB, free: 47.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/0.8367, allocations: 91.06 kB / 418.8 MB, free: 47.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12/1.957, allocations: 220.7 MB / 0.6246 GB, free: 52.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.647e-06/1.957, allocations: 0 / 0.6246 GB, free: 52.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001189/1.958, allocations: 253.3 kB / 0.6248 GB, free: 52.23 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04611/2.004, allocations: 10.54 MB / 0.6351 GB, free: 48.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/2.004, allocations: 7.812 kB / 0.6351 GB, free: 48.48 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006449/2.011, allocations: 1.391 MB / 0.6365 GB, free: 48.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01716/2.028, allocations: 2.142 MB / 0.6386 GB, free: 47.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03254/2.061, allocations: 8.952 MB / 0.6473 GB, free: 46.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001056/2.062, allocations: 0.7456 MB / 0.6481 GB, free: 46.44 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004525/2.066, allocations: 0.9785 MB / 0.649 GB, free: 46.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04895/2.115, allocations: 14.06 MB / 0.6628 GB, free: 44.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005853/2.116, allocations: 16.94 kB / 0.6628 GB, free: 44.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003971/2.12, allocations: 428.3 kB / 0.6632 GB, free: 44.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005258/2.12, allocations: 451.3 kB / 0.6636 GB, free: 44.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03795/2.158, allocations: 11.85 MB / 0.6752 GB, free: 39.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1275/2.286, allocations: 44.16 MB / 0.7183 GB, free: 6.336 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3611/2.647, allocations: 24.85 MB / 0.7426 GB, free: 28.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03005/2.677, allocations: 10.1 MB / 0.7524 GB, free: 27.83 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001443/2.677, allocations: 90.03 kB / 0.7525 GB, free: 27.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=455): time 1.729e-05/2.677, allocations: 0 / 0.7525 GB, free: 27.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=463): time 0.1068/2.784, allocations: 23.2 MB / 0.7752 GB, free: 40.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/2.784, allocations: 103.3 kB / 0.7753 GB, free: 40.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01177/2.796, allocations: 4.69 MB / 0.7799 GB, free: 40.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001073/2.797, allocations: 102.8 kB / 0.78 GB, free: 40.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003738/2.801, allocations: 4.372 MB / 0.7842 GB, free: 38.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002205/2.803, allocations: 1.537 MB / 0.7857 GB, free: 37.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005045/2.804, allocations: 101.2 kB / 0.7858 GB, free: 37.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003762/2.804, allocations: 0.493 MB / 0.7863 GB, free: 37.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00657/2.811, allocations: 2.525 MB / 0.7888 GB, free: 37.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008032/2.819, allocations: 3.601 MB / 0.7923 GB, free: 36.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008427/2.827, allocations: 3.072 MB / 0.7953 GB, free: 36.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.92e-05/2.828, allocations: 7.406 kB / 0.7953 GB, free: 36.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=638) (initialization): time 0.0236/2.851, allocations: 8.358 MB / 0.8035 GB, free: 35.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.466e-05/2.851, allocations: 21.27 kB / 0.8035 GB, free: 35.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.641e-05/2.851, allocations: 32.25 kB / 0.8035 GB, free: 35.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00595/2.857, allocations: 1.52 MB / 0.805 GB, free: 34.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008177/2.866, allocations: 1.031 MB / 0.806 GB, free: 34.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03804/2.904, allocations: 27.57 MB / 0.8329 GB, free: 28.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006969/2.911, allocations: 238.3 kB / 0.8332 GB, free: 27.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0011/2.912, allocations: 189.9 kB / 0.8333 GB, free: 27.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 138 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,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 (547): * Single equations (assignments): 531 * 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: 14 * 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: 14 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 25,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009238/2.921, allocations: 3.301 MB / 0.8366 GB, free: 26.35 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001889/2.923, allocations: 0.5819 MB / 0.8371 GB, free: 26.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02311/2.946, allocations: 8.368 MB / 0.8453 GB, free: 22.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-05/2.946, allocations: 45.09 kB / 0.8453 GB, free: 22.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.175e-05/2.946, allocations: 27.75 kB / 0.8454 GB, free: 22.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.682e-05/2.946, allocations: 22.88 kB / 0.8454 GB, free: 22.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04852/2.995, allocations: 17.86 MB / 0.8628 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.728e-05/2.995, allocations: 3.406 kB / 0.8628 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004542/2.999, allocations: 0.5188 MB / 0.8633 GB, free: 14.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008765/3.008, allocations: 2.274 MB / 0.8656 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007668/3.009, allocations: 98.67 kB / 0.8657 GB, free: 14.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06063/3.07, allocations: 35.54 MB / 0.9004 GB, free: 1.508 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/3.07, allocations: 11.38 kB / 0.9004 GB, free: 1.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4798/3.55, allocations: 13.13 MB / 0.9132 GB, free: 84.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005007/3.555, allocations: 1.248 MB / 0.9144 GB, free: 84.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002113/3.557, allocations: 95.39 kB / 0.9145 GB, free: 84.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006387/3.563, allocations: 266.2 kB / 0.9148 GB, free: 84.06 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002065/3.565, allocations: 469.1 kB / 0.9152 GB, free: 84.06 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008665/3.566, allocations: 124.4 kB / 0.9153 GB, free: 84.06 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0096/3.576, allocations: 3.598 MB / 0.9188 GB, free: 83.88 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.152e-06/3.576, allocations: 3.406 kB / 0.9188 GB, free: 83.88 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01055/3.586, allocations: 1.939 MB / 0.9207 GB, free: 83.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,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 (277): * Single equations (assignments): 264 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(11,49.6%) 56,(1,100.0%) 1,(6,72.2%) 46,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04221/3.629, allocations: 14.41 MB / 0.9348 GB, free: 80.85 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02625/3.655, allocations: 8.291 MB / 0.9429 GB, free: 78.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/3.655, allocations: 6.031 kB / 0.9429 GB, free: 78.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01906/3.674, allocations: 6.019 MB / 0.9488 GB, free: 77.35 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01406/3.688, allocations: 1.607 MB / 0.9504 GB, free: 77.33 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2275/3.916, allocations: 82.03 MB / 1.03 GB, free: 27.51 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01509/3.931, allocations: 6.567 MB / 1.037 GB, free: 25.38 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009178/3.94, allocations: 1.3 MB / 1.038 GB, free: 25.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00981/3.95, allocations: 3.879 MB / 1.042 GB, free: 21.94 MB / 474.7 MB Notification: Performance of SimCode: time 1.183e-06/3.95, allocations: 0 / 1.042 GB, free: 21.94 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7901/4.74, allocations: 167.3 MB / 1.205 GB, free: 33.79 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002604/4.741, allocations: 241.1 kB / 1.206 GB, free: 33.54 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.931/14.67, allocations: 4 kB / 1.206 GB, free: 33.54 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat