Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.617/1.617, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003376, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08047, allocations: 38.78 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3774/0.4579, allocations: 101.8 MB / 373.9 MB, free: 4.672 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.4582, allocations: 90.14 kB / 374 MB, free: 4.625 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.212/1.67, allocations: 210.1 MB / 0.5704 GB, free: 35.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.115e-06/1.67, allocations: 0 / 0.5704 GB, free: 35.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001065/1.671, allocations: 235 kB / 0.5706 GB, free: 34.99 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: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.04789/1.719, allocations: 10.17 MB / 0.5806 GB, free: 31.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/1.719, allocations: 15.31 kB / 0.5806 GB, free: 31.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006396/1.725, allocations: 1.299 MB / 0.5818 GB, free: 31.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/1.737, allocations: 1.539 MB / 0.5833 GB, free: 30.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0242/1.761, allocations: 7.567 MB / 0.5907 GB, free: 29.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009187/1.762, allocations: 0.701 MB / 0.5914 GB, free: 29.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004026/1.766, allocations: 0.9284 MB / 0.5923 GB, free: 29.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04107/1.807, allocations: 13 MB / 0.605 GB, free: 28.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003981/1.807, allocations: 11.5 kB / 0.605 GB, free: 28.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002957/1.81, allocations: 404.7 kB / 0.6054 GB, free: 28.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004155/1.811, allocations: 394 kB / 0.6058 GB, free: 28.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0326/1.843, allocations: 10.5 MB / 0.6161 GB, free: 28.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09967/1.943, allocations: 40.58 MB / 0.6557 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01672/1.96, allocations: 8.721 MB / 0.6642 GB, free: 8.555 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005222/1.961, allocations: 56.52 kB / 0.6643 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.43e-05/1.961, allocations: 82.14 kB / 0.6643 GB, free: 8.473 MB / 378.7 MB Notification: Performance of pre-optimization done (n=431): time 7.464e-06/1.961, allocations: 0 / 0.6643 GB, free: 8.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=439): time 0.0916/2.052, allocations: 22.39 MB / 0.6862 GB, free: 15.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/2.052, allocations: 99.39 kB / 0.6863 GB, free: 14.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01273/2.065, allocations: 4.656 MB / 0.6908 GB, free: 11.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001073/2.066, allocations: 105.7 kB / 0.6909 GB, free: 11.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004268/2.071, allocations: 3.766 MB / 0.6946 GB, free: 8.125 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002598/2.073, allocations: 1.451 MB / 0.696 GB, free: 6.816 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005282/2.074, allocations: 92 kB / 0.6961 GB, free: 6.727 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004165/2.074, allocations: 0.4894 MB / 0.6966 GB, free: 6.285 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007468/2.082, allocations: 2.402 MB / 0.6989 GB, free: 4.254 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008799/2.091, allocations: 3.388 MB / 0.7023 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2995/2.39, allocations: 3.413 MB / 0.7056 GB, free: 45.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.374e-05/2.39, allocations: 8.125 kB / 0.7056 GB, free: 45.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.0221/2.412, allocations: 7.616 MB / 0.713 GB, free: 44.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.708e-05/2.412, allocations: 16.44 kB / 0.7131 GB, free: 44.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.473e-05/2.412, allocations: 29.81 kB / 0.7131 GB, free: 44.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006285/2.419, allocations: 1.525 MB / 0.7146 GB, free: 44.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007983/2.427, allocations: 0.969 MB / 0.7155 GB, free: 44.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03312/2.46, allocations: 27.66 MB / 0.7425 GB, free: 26.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006261/2.466, allocations: 220.5 kB / 0.7427 GB, free: 26.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007857/2.467, allocations: 174.6 kB / 0.7429 GB, free: 26.81 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (509): * Single equations (assignments): 493 * 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%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,56.2%) 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.008764/2.476, allocations: 3.16 MB / 0.746 GB, free: 26.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001786/2.478, allocations: 0.5658 MB / 0.7465 GB, free: 26.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02326/2.501, allocations: 7.993 MB / 0.7543 GB, free: 25.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-05/2.501, allocations: 47.38 kB / 0.7544 GB, free: 25.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.883e-05/2.501, allocations: 27.41 kB / 0.7544 GB, free: 25.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-05/2.501, allocations: 20.3 kB / 0.7544 GB, free: 25.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04797/2.549, allocations: 17.73 MB / 0.7717 GB, free: 24.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.971e-05/2.549, allocations: 3.75 kB / 0.7718 GB, free: 24.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004063/2.553, allocations: 470.5 kB / 0.7722 GB, free: 24.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008881/2.562, allocations: 2.258 MB / 0.7744 GB, free: 24.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008594/2.563, allocations: 92.67 kB / 0.7745 GB, free: 24.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0526/2.616, allocations: 35.54 MB / 0.8092 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/2.616, allocations: 11.25 kB / 0.8092 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03252/2.648, allocations: 12.19 MB / 0.8211 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004954/2.653, allocations: 1.204 MB / 0.8223 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002155/2.655, allocations: 85.41 kB / 0.8224 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005779/2.661, allocations: 253.6 kB / 0.8226 GB, free: 11.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001882/2.663, allocations: 424.6 kB / 0.823 GB, free: 11.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005444/2.664, allocations: 115.9 kB / 0.8231 GB, free: 11.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009269/2.673, allocations: 3.585 MB / 0.8266 GB, free: 10.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.222e-06/2.673, allocations: 0 / 0.8266 GB, free: 10.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009713/2.683, allocations: 1.84 MB / 0.8284 GB, free: 10.01 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,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 (253): * Single equations (assignments): 240 * 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 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,54.5%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03396/2.717, allocations: 14.09 MB / 0.8422 GB, free: 1.648 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02106/2.738, allocations: 7.978 MB / 0.85 GB, free: 10.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.738, allocations: 0 / 0.85 GB, free: 10.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0157/2.754, allocations: 5.884 MB / 0.8557 GB, free: 5.309 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01209/2.766, allocations: 1.599 MB / 0.8573 GB, free: 4.129 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4532/3.219, allocations: 77.32 MB / 0.9328 GB, free: 26.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01255/3.232, allocations: 6.155 MB / 0.9388 GB, free: 25.92 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008723/3.24, allocations: 3.676 MB / 0.9424 GB, free: 25.92 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/3.24, allocations: 0 / 0.9424 GB, free: 25.92 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.064/12.3, allocations: 0.8377 GB / 1.78 GB, free: 64.08 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat