Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.1 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004428/0.0004428, allocations: 8 kB / 233.4 MB, free: 168 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1351, allocations: 38.77 MB / 272.1 MB, free: 9.309 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3453/0.4805, allocations: 69.64 MB / 341.8 MB, free: 12.78 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.4808, allocations: 75.95 kB / 341.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02454/0.5054, allocations: 5.127 MB / 347 MB, free: 7.586 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5054, allocations: 0 / 347 MB, free: 7.586 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.405e-05/0.5055, allocations: 4 kB / 347 MB, free: 7.582 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.001026/0.5065, allocations: 0.548 MB / 347.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.5066, allocations: 8.031 kB / 347.5 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.083e-05/0.5067, allocations: 54.55 kB / 347.6 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.5069, allocations: 23.72 kB / 347.6 MB, free: 6.883 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004359/0.5073, allocations: 242.4 kB / 347.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.5073, allocations: 16.33 kB / 347.9 MB, free: 6.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.249e-05/0.5074, allocations: 16 kB / 347.9 MB, free: 6.574 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000427/0.5079, allocations: 152.2 kB / 348 MB, free: 6.422 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.5079, allocations: 3.906 kB / 348 MB, free: 6.418 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.855e-05/0.5079, allocations: 7.984 kB / 348 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.5079, allocations: 4 kB / 348 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003627/0.5083, allocations: 120.5 kB / 348.2 MB, free: 6.289 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.5097, allocations: 0.5782 MB / 348.7 MB, free: 5.656 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004291/0.5101, allocations: 162.5 kB / 348.9 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.5102, allocations: 0 / 348.9 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/0.5105, allocations: 104.5 kB / 349 MB, free: 5.375 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 2.274e-06/0.5105, allocations: 0 / 349 MB, free: 5.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006614/0.5112, allocations: 215.7 kB / 349.2 MB, free: 5.16 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.004e-05/0.5113, allocations: 55.41 kB / 349.3 MB, free: 5.094 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.5117, allocations: 231.2 kB / 349.5 MB, free: 4.859 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.5117, allocations: 37.7 kB / 349.5 MB, free: 4.816 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.5119, allocations: 136.3 kB / 349.7 MB, free: 4.676 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.691e-05/0.512, allocations: 70.61 kB / 349.7 MB, free: 4.609 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.734e-05/0.512, allocations: 4 kB / 349.7 MB, free: 4.605 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.5122, allocations: 334.8 kB / 350.1 MB, free: 4.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.5123, allocations: 55.97 kB / 350.1 MB, free: 4.215 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.5126, allocations: 86.66 kB / 350.2 MB, free: 4.121 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.5128, allocations: 93.89 kB / 350.3 MB, free: 4.023 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5128, allocations: 0 / 350.3 MB, free: 4.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006286/0.5135, allocations: 245.3 kB / 350.5 MB, free: 3.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.735e-05/0.5135, allocations: 33.7 kB / 350.6 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.5136, allocations: 4 kB / 350.6 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.5136, allocations: 0 / 350.6 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003568/0.514, allocations: 43.91 kB / 350.6 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.514, allocations: 4 kB / 350.6 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.5143, allocations: 31.75 kB / 350.6 MB, free: 3.652 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.5144, allocations: 8 kB / 350.7 MB, free: 3.645 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.0003495/0.5147, allocations: 149.7 kB / 350.8 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.724e-05/0.5149, allocations: 15.81 kB / 350.8 MB, free: 3.473 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009841/0.5159, allocations: 198.2 kB / 351 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.5159, allocations: 4 kB / 351 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.516, allocations: 0 / 351 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.516, allocations: 4 kB / 351 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007407/0.5167, allocations: 297.3 kB / 351.3 MB, free: 2.926 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.5168, allocations: 0 / 351.3 MB, free: 2.926 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005441/0.5173, allocations: 39.88 kB / 351.3 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/0.5174, allocations: 4 kB / 351.4 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.5174, allocations: 7.984 kB / 351.4 MB, free: 2.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.028e-05/0.5175, allocations: 4 kB / 351.4 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5175, allocations: 0 / 351.4 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.5188, allocations: 281 kB / 351.6 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.5191, allocations: 104.8 kB / 351.7 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.5192, allocations: 11.95 kB / 351.8 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002846/0.5195, allocations: 8 kB / 351.8 MB, free: 2.438 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/0.5197, allocations: 11.97 kB / 351.8 MB, free: 2.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/0.5197, allocations: 8 kB / 351.8 MB, free: 2.418 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000493/0.5202, allocations: 189.6 kB / 352 MB, free: 2.234 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.91e-07/0.5202, allocations: 0 / 352 MB, free: 2.234 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008886/0.5212, allocations: 79.88 kB / 352 MB, free: 2.156 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.003124/0.5243, allocations: 1.04 MB / 353.1 MB, free: 1.156 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009271/0.5253, allocations: 203.7 kB / 353.3 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.5254, allocations: 0 / 353.3 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003865/0.5258, allocations: 67.91 kB / 353.3 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.5265, allocations: 36.77 kB / 353.4 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.5298, allocations: 1.234 MB / 354.6 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.5304, allocations: 0.7596 MB / 355.4 MB, free: 14.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000309/0.5307, allocations: 21.55 kB / 355.4 MB, free: 14.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002668/0.531, allocations: 75.34 kB / 355.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of SimCode: time 1.773e-06/0.5311, allocations: 4 kB / 355.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03504/0.5661, allocations: 4.581 MB / 360.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003453/0.5665, allocations: 213 kB / 360.3 MB, free: 9.848 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.73/3.296, allocations: 0 / 360.3 MB, free: 9.848 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat