Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.662/1.662, allocations: 171.2 MB / 186.1 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003581, allocations: 8 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08277/0.08317, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4922/0.5754, allocations: 117.1 MB / 389.2 MB, free: 5.168 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004063/0.5759, allocations: 88.52 kB / 389.3 MB, free: 5.121 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8183/1.394, allocations: 145.4 MB / 0.5221 GB, free: 28.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.394, allocations: 0 / 0.5221 GB, free: 28.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000836/1.395, allocations: 179.7 kB / 0.5223 GB, free: 28.45 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02931/1.425, allocations: 7.094 MB / 0.5292 GB, free: 21.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/1.425, allocations: 8.031 kB / 0.5292 GB, free: 21.25 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004067/1.429, allocations: 0.8962 MB / 0.5301 GB, free: 20.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00646/1.435, allocations: 0.9904 MB / 0.5311 GB, free: 19.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01755/1.453, allocations: 5.255 MB / 0.5362 GB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006529/1.453, allocations: 497.1 kB / 0.5367 GB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002905/1.456, allocations: 0.6365 MB / 0.5373 GB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0296/1.486, allocations: 8.9 MB / 0.546 GB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003359/1.486, allocations: 19.84 kB / 0.546 GB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002216/1.489, allocations: 280 kB / 0.5463 GB, free: 3.398 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002903/1.489, allocations: 268.8 kB / 0.5465 GB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5532/2.042, allocations: 7.111 MB / 0.5535 GB, free: 34.1 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08208/2.124, allocations: 27.93 MB / 0.5808 GB, free: 28.46 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/2.136, allocations: 5.997 MB / 0.5866 GB, free: 26.44 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007927/2.137, allocations: 158.7 kB / 0.5868 GB, free: 26.34 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.503e-05/2.137, allocations: 75.94 kB / 0.5868 GB, free: 26.3 MB / 346.8 MB Notification: Performance of pre-optimization done (n=322): time 7.273e-06/2.137, allocations: 0 / 0.5868 GB, free: 26.3 MB / 346.8 MB Notification: Performance of matching and sorting (n=341): time 0.05873/2.196, allocations: 16.44 MB / 0.6029 GB, free: 21.46 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/2.196, allocations: 85.92 kB / 0.603 GB, free: 21.39 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009324/2.205, allocations: 3.439 MB / 0.6063 GB, free: 20.14 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009193/2.206, allocations: 83.42 kB / 0.6064 GB, free: 20.07 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00311/2.209, allocations: 2.936 MB / 0.6093 GB, free: 17.89 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001911/2.211, allocations: 1.141 MB / 0.6104 GB, free: 17 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005007/2.212, allocations: 80.75 kB / 0.6105 GB, free: 16.95 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.000362/2.212, allocations: 464.6 kB / 0.6109 GB, free: 16.57 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005665/2.218, allocations: 1.915 MB / 0.6128 GB, free: 15.87 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006613/2.225, allocations: 2.755 MB / 0.6155 GB, free: 14.2 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006513/2.231, allocations: 2.327 MB / 0.6177 GB, free: 13.22 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.144e-05/2.231, allocations: 7.375 kB / 0.6177 GB, free: 13.22 MB / 346.8 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01868/2.25, allocations: 6.43 MB / 0.624 GB, free: 10.66 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/2.25, allocations: 15.84 kB / 0.624 GB, free: 10.66 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.832e-05/2.25, allocations: 27.23 kB / 0.6241 GB, free: 10.66 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004818/2.255, allocations: 1.261 MB / 0.6253 GB, free: 10.23 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006401/2.261, allocations: 0.8295 MB / 0.6261 GB, free: 10.2 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02824/2.29, allocations: 21.13 MB / 0.6467 GB, free: 8.809 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005447/2.295, allocations: 197 kB / 0.6469 GB, free: 8.742 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/2.296, allocations: 140.1 kB / 0.6471 GB, free: 8.715 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (420): * Single equations (assignments): 406 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(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.006784/2.303, allocations: 2.129 MB / 0.6491 GB, free: 7.684 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/2.305, allocations: 451.4 kB / 0.6496 GB, free: 7.453 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01931/2.324, allocations: 6.232 MB / 0.6557 GB, free: 4.668 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.581e-05/2.324, allocations: 29.69 kB / 0.6557 GB, free: 4.668 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.639e-05/2.324, allocations: 18.38 kB / 0.6557 GB, free: 4.668 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.59e-05/2.324, allocations: 14.25 kB / 0.6557 GB, free: 4.668 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04267/2.367, allocations: 12.98 MB / 0.6684 GB, free: 10.2 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/2.367, allocations: 0 / 0.6684 GB, free: 10.2 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00443/2.371, allocations: 491.9 kB / 0.6689 GB, free: 9.801 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007203/2.379, allocations: 1.617 MB / 0.6704 GB, free: 8.5 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000849/2.38, allocations: 79.64 kB / 0.6705 GB, free: 8.43 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3326/2.712, allocations: 30.74 MB / 0.7005 GB, free: 68.68 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/2.712, allocations: 4.719 kB / 0.7005 GB, free: 68.68 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02426/2.737, allocations: 9.345 MB / 0.7097 GB, free: 67.23 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003921/2.741, allocations: 0.9347 MB / 0.7106 GB, free: 67.14 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/2.742, allocations: 73.31 kB / 0.7106 GB, free: 67.14 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004899/2.747, allocations: 204.6 kB / 0.7108 GB, free: 67.14 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001445/2.749, allocations: 282.1 kB / 0.7111 GB, free: 67.13 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004829/2.749, allocations: 97.14 kB / 0.7112 GB, free: 67.13 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.008509/2.758, allocations: 2.637 MB / 0.7138 GB, free: 66.95 MB / 394.8 MB Notification: Performance of sort global known variables: time 9.22e-07/2.758, allocations: 0 / 0.7138 GB, free: 66.95 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.009025/2.767, allocations: 1.357 MB / 0.7151 GB, free: 66.95 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 16 (aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 231 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(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.03184/2.799, allocations: 11.08 MB / 0.7259 GB, free: 64.29 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.0152/2.814, allocations: 6.438 MB / 0.7322 GB, free: 62.66 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/2.814, allocations: 3.688 kB / 0.7322 GB, free: 62.66 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0111/2.825, allocations: 4.889 MB / 0.737 GB, free: 60.71 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009901/2.835, allocations: 1.251 MB / 0.7382 GB, free: 60.69 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1121/2.947, allocations: 58.43 MB / 0.7953 GB, free: 24.89 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009328/2.957, allocations: 4.508 MB / 0.7997 GB, free: 23.34 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.006282/2.963, allocations: 0.9897 MB / 0.8006 GB, free: 23.24 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00663/2.97, allocations: 2.588 MB / 0.8032 GB, free: 21.08 MB / 394.8 MB Notification: Performance of SimCode: time 1.653e-06/2.97, allocations: 0 / 0.8032 GB, free: 21.08 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5906/3.56, allocations: 122.1 MB / 0.9224 GB, free: 42.69 MB / 394.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/3.561, allocations: 220.3 kB / 0.9227 GB, free: 42.45 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.298/10.86, allocations: 0 / 0.9227 GB, free: 42.45 MB / 394.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat