Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004738/0.0004738, allocations: 4 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0831/0.08363, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3684/0.452, allocations: 69.65 MB / 341.8 MB, free: 3.887 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.4524, allocations: 70.34 kB / 341.8 MB, free: 3.852 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02233/0.4747, allocations: 5.129 MB / 347 MB, free: 15.47 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4748, allocations: 0 / 347 MB, free: 15.47 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.4748, allocations: 4 kB / 347 MB, free: 15.46 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001039/0.4759, allocations: 0.5455 MB / 347.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.4759, allocations: 12.03 kB / 347.5 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.51e-05/0.476, allocations: 47.67 kB / 347.6 MB, free: 14.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.4762, allocations: 27.72 kB / 347.6 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.4766, allocations: 242 kB / 347.8 MB, free: 14.53 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.4767, allocations: 19.58 kB / 347.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.606e-05/0.4767, allocations: 15.88 kB / 347.9 MB, free: 14.51 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004028/0.4772, allocations: 148.5 kB / 348 MB, free: 14.4 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.4772, allocations: 3.906 kB / 348 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.4772, allocations: 3.938 kB / 348 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.4772, allocations: 4 kB / 348 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003548/0.4776, allocations: 123.1 kB / 348.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.4789, allocations: 0.5901 MB / 348.7 MB, free: 13.76 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.4794, allocations: 143.5 kB / 348.9 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.4795, allocations: 3.984 kB / 348.9 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/0.4797, allocations: 112.3 kB / 349 MB, free: 13.55 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 2.765e-06/0.4798, allocations: 0 / 349 MB, free: 13.55 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.000651/0.4804, allocations: 214.4 kB / 349.2 MB, free: 13.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.4805, allocations: 59.41 kB / 349.2 MB, free: 13.31 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.4809, allocations: 230.6 kB / 349.5 MB, free: 13.11 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.4809, allocations: 33.27 kB / 349.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.4811, allocations: 201.3 kB / 349.7 MB, free: 12.89 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.339e-05/0.4812, allocations: 64.22 kB / 349.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.4812, allocations: 7.25 kB / 349.8 MB, free: 12.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.4814, allocations: 321.8 kB / 350.1 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.4816, allocations: 55.84 kB / 350.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.4818, allocations: 89.67 kB / 350.2 MB, free: 12.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.482, allocations: 93.88 kB / 350.3 MB, free: 12.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.482, allocations: 0 / 350.3 MB, free: 12.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005626/0.4826, allocations: 234.5 kB / 350.5 MB, free: 12.15 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.4827, allocations: 33.7 kB / 350.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4827, allocations: 0 / 350.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.4827, allocations: 4 kB / 350.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/0.4831, allocations: 43.98 kB / 350.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.4831, allocations: 0 / 350.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.4834, allocations: 27.08 kB / 350.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.4834, allocations: 11.5 kB / 350.7 MB, free: 12.03 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002147/0.4836, allocations: 148.2 kB / 350.8 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/0.4837, allocations: 19.72 kB / 350.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005645/0.4843, allocations: 210.9 kB / 351 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4843, allocations: 0 / 351 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.4843, allocations: 0 / 351 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4843, allocations: 4 kB / 351 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000428/0.4847, allocations: 287.7 kB / 351.3 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4848, allocations: 0 / 351.3 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003609/0.4851, allocations: 43.31 kB / 351.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.4852, allocations: 0 / 351.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.4852, allocations: 11.75 kB / 351.4 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.4852, allocations: 0 / 351.4 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4852, allocations: 0 / 351.4 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006722/0.4859, allocations: 267.7 kB / 351.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.486, allocations: 104.8 kB / 351.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.398e-05/0.4861, allocations: 9.078 kB / 351.7 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.4863, allocations: 10.62 kB / 351.8 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.4863, allocations: 11.98 kB / 351.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.4864, allocations: 11.48 kB / 351.8 MB, free: 11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002811/0.4867, allocations: 191.4 kB / 352 MB, free: 10.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4867, allocations: 4 kB / 352 MB, free: 10.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000452/0.4871, allocations: 84.2 kB / 352.1 MB, free: 10.77 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 2 ($whenCondition1,lossTable.nextTimeEvent) * Number of discrete states: 1 (lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00186/0.489, allocations: 1.036 MB / 353.1 MB, free: 9.844 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000539/0.4896, allocations: 203.8 kB / 353.3 MB, free: 9.672 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4896, allocations: 4 kB / 353.3 MB, free: 9.668 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.4898, allocations: 77.16 kB / 353.4 MB, free: 9.609 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.4903, allocations: 31.66 kB / 353.4 MB, free: 9.586 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.4924, allocations: 1.264 MB / 354.7 MB, free: 8.316 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.4928, allocations: 0.7518 MB / 355.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.493, allocations: 74.03 kB / 355.5 MB, free: 7.512 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.493, allocations: 0 / 355.5 MB, free: 7.512 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.721/3.214, allocations: 3.985 MB / 359.5 MB, free: 3.555 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat