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.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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.851/1.851, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.0003352, allocations: 8 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09464, allocations: 44.5 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4595/0.5542, allocations: 110.2 MB / 418.7 MB, free: 9.102 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004436/0.5547, allocations: 92.95 kB / 418.8 MB, free: 9.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.153/1.707, allocations: 220.7 MB / 0.6246 GB, free: 53.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.368e-06/1.707, allocations: 2.781 kB / 0.6246 GB, free: 53.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001081/1.708, allocations: 247.5 kB / 0.6248 GB, free: 53.73 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: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04579/1.754, allocations: 10.53 MB / 0.6351 GB, free: 43.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/1.754, allocations: 12.02 kB / 0.6351 GB, free: 43.65 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006176/1.761, allocations: 1.389 MB / 0.6365 GB, free: 42.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0166/1.777, allocations: 2.139 MB / 0.6385 GB, free: 40.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03139/1.809, allocations: 8.963 MB / 0.6473 GB, free: 31.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001045/1.81, allocations: 0.7416 MB / 0.648 GB, free: 30.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004489/1.814, allocations: 0.9788 MB / 0.649 GB, free: 29.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04651/1.861, allocations: 14.07 MB / 0.6627 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005369/1.861, allocations: 15.84 kB / 0.6627 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003801/1.865, allocations: 431 kB / 0.6631 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005056/1.866, allocations: 452.4 kB / 0.6636 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03824/1.904, allocations: 11.85 MB / 0.6752 GB, free: 2.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.481/2.385, allocations: 44.15 MB / 0.7183 GB, free: 37.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03786/2.423, allocations: 24.75 MB / 0.7424 GB, free: 35.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03064/2.454, allocations: 10.11 MB / 0.7523 GB, free: 31.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.054e-05/2.454, allocations: 86.08 kB / 0.7524 GB, free: 31.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=455): time 7.744e-06/2.454, allocations: 1.562 kB / 0.7524 GB, free: 31.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=463): time 0.09225/2.546, allocations: 23.2 MB / 0.7751 GB, free: 22.08 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/2.546, allocations: 102.7 kB / 0.7751 GB, free: 22.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/2.557, allocations: 4.683 MB / 0.7797 GB, free: 20.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001024/2.558, allocations: 105.8 kB / 0.7798 GB, free: 20.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003327/2.562, allocations: 4.025 MB / 0.7838 GB, free: 17.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002231/2.564, allocations: 1.534 MB / 0.7853 GB, free: 15.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005136/2.564, allocations: 93.47 kB / 0.7853 GB, free: 15.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003795/2.565, allocations: 0.5053 MB / 0.7858 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006989/2.572, allocations: 2.519 MB / 0.7883 GB, free: 14.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008745/2.581, allocations: 3.613 MB / 0.7918 GB, free: 12.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009311/2.59, allocations: 3.066 MB / 0.7948 GB, free: 10.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.392e-05/2.59, allocations: 10.66 kB / 0.7948 GB, free: 10.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=638) (initialization): time 0.02674/2.617, allocations: 7.982 MB / 0.8026 GB, free: 7.703 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.393e-05/2.617, allocations: 19.19 kB / 0.8026 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.795e-05/2.617, allocations: 29.41 kB / 0.8027 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006426/2.623, allocations: 1.506 MB / 0.8041 GB, free: 7.172 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008373/2.632, allocations: 1.035 MB / 0.8051 GB, free: 7.133 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04067/2.673, allocations: 27.58 MB / 0.8321 GB, free: 14.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007383/2.68, allocations: 238.2 kB / 0.8323 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/2.682, allocations: 194.9 kB / 0.8325 GB, free: 14.61 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.01111/2.693, allocations: 3.299 MB / 0.8357 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002295/2.695, allocations: 0.5751 MB / 0.8363 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02879/2.724, allocations: 8.372 MB / 0.8445 GB, free: 4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.088e-05/2.724, allocations: 44 kB / 0.8445 GB, free: 3.957 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001124/2.724, allocations: 28 kB / 0.8445 GB, free: 3.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001409/2.724, allocations: 20.2 kB / 0.8445 GB, free: 3.93 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3917/3.116, allocations: 17.87 MB / 0.862 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.982e-05/3.116, allocations: 7.75 kB / 0.862 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00492/3.121, allocations: 0.5164 MB / 0.8625 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009746/3.131, allocations: 2.262 MB / 0.8647 GB, free: 88.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001153/3.132, allocations: 104.2 kB / 0.8648 GB, free: 88.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05601/3.188, allocations: 35.54 MB / 0.8995 GB, free: 71.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/3.188, allocations: 9.406 kB / 0.8995 GB, free: 71.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03313/3.221, allocations: 12.56 MB / 0.9118 GB, free: 69.76 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005282/3.226, allocations: 1.243 MB / 0.913 GB, free: 69.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00257/3.229, allocations: 98.73 kB / 0.9131 GB, free: 69.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006696/3.236, allocations: 266.8 kB / 0.9134 GB, free: 69.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002178/3.238, allocations: 460.8 kB / 0.9138 GB, free: 69.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008625/3.239, allocations: 122.9 kB / 0.9139 GB, free: 69.66 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009889/3.249, allocations: 3.602 MB / 0.9174 GB, free: 69.06 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.32e-07/3.249, allocations: 3 kB / 0.9174 GB, free: 69.06 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01162/3.261, allocations: 1.936 MB / 0.9193 GB, free: 68.88 MB / 458.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.03504/3.296, allocations: 14.42 MB / 0.9334 GB, free: 61.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02029/3.316, allocations: 8.277 MB / 0.9415 GB, free: 57.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/3.316, allocations: 3.062 kB / 0.9415 GB, free: 57.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01482/3.331, allocations: 6.014 MB / 0.9474 GB, free: 54.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01236/3.343, allocations: 1.614 MB / 0.949 GB, free: 53.93 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5282/3.872, allocations: 83.19 MB / 1.03 GB, free: 102.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0153/3.887, allocations: 6.401 MB / 1.036 GB, free: 101.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01001/3.897, allocations: 3.911 MB / 1.04 GB, free: 101.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.173e-06/3.897, allocations: 0 / 1.04 GB, free: 101.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.213/13.11, allocations: 0.8794 GB / 1.92 GB, free: 114.8 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat