Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_1_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.812/1.812, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004908/0.0004909, allocations: 15.98 kB / 233.4 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08633/0.08687, allocations: 38.76 MB / 272.1 MB, free: 11.44 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.378/0.4649, allocations: 72.89 MB / 345 MB, free: 380 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/0.4652, allocations: 76.59 kB / 345.1 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06487/0.5301, allocations: 13.79 MB / 358.9 MB, free: 4.758 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.5302, allocations: 0 / 358.9 MB, free: 4.758 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.923e-05/0.5303, allocations: 12 kB / 358.9 MB, free: 4.746 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002981/0.5332, allocations: 0.9901 MB / 359.9 MB, free: 3.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.5333, allocations: 8.031 kB / 359.9 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003556/0.5337, allocations: 98.56 kB / 360 MB, free: 3.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002432/0.5339, allocations: 83.06 kB / 360.1 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.5351, allocations: 445 kB / 360.5 MB, free: 3.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002801/0.5355, allocations: 113.1 kB / 360.6 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.5356, allocations: 50.53 kB / 360.7 MB, free: 3.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.5375, allocations: 0.6563 MB / 361.3 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/0.5376, allocations: 7.938 kB / 361.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.764e-05/0.5377, allocations: 20.62 kB / 361.3 MB, free: 2.441 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.5378, allocations: 12 kB / 361.4 MB, free: 2.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00212/0.5399, allocations: 490.9 kB / 361.8 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00524/0.5452, allocations: 1.882 MB / 363.7 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003795/0.549, allocations: 0.7564 MB / 364.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.5492, allocations: 8.562 kB / 364.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.107e-05/0.5493, allocations: 50.52 kB / 364.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 3.626e-06/0.5493, allocations: 0 / 364.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.009548/0.5588, allocations: 1.622 MB / 366.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003188/0.5592, allocations: 0.5679 MB / 366.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009537/0.5602, allocations: 462.8 kB / 367.2 MB, free: 13.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001833/0.5604, allocations: 35.95 kB / 367.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.5607, allocations: 281.2 kB / 367.5 MB, free: 13.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002828/0.5609, allocations: 193 kB / 367.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.565e-05/0.561, allocations: 7.688 kB / 367.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.5612, allocations: 377.8 kB / 368 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009588/0.5622, allocations: 214.9 kB / 368.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/0.5635, allocations: 426.8 kB / 368.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.5646, allocations: 274.9 kB / 368.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.5646, allocations: 0 / 368.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004233/0.5689, allocations: 0.8661 MB / 369.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.063e-05/0.569, allocations: 30.8 kB / 369.8 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.569, allocations: 11.98 kB / 369.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/0.5706, allocations: 229.4 kB / 370.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/0.5722, allocations: 142.6 kB / 370.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/0.5842, allocations: 5.259 MB / 375.5 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.5854, allocations: 91.33 kB / 375.6 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.183e-05/0.5855, allocations: 19.81 kB / 375.6 MB, free: 5.645 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004939/0.586, allocations: 203.9 kB / 375.8 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.5862, allocations: 71.23 kB / 375.8 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004121/0.5904, allocations: 0.8303 MB / 376.7 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.5904, allocations: 8 kB / 376.7 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5904, allocations: 0 / 376.7 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004017/0.5945, allocations: 1.099 MB / 377.8 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005762/0.6003, allocations: 1.574 MB / 379.4 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.6003, allocations: 0 / 379.4 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/0.6019, allocations: 131.5 kB / 379.5 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0014/0.6034, allocations: 194.8 kB / 379.7 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.6035, allocations: 14 kB / 379.7 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009057/0.6126, allocations: 3.602 MB / 383.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.6127, allocations: 0 / 383.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005735/0.6184, allocations: 1.153 MB / 384.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005588/0.619, allocations: 204.1 kB / 384.6 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.6192, allocations: 16 kB / 384.7 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007726/0.62, allocations: 39.97 kB / 384.7 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.6202, allocations: 48.48 kB / 384.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.365e-05/0.6202, allocations: 12 kB / 384.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007837/0.621, allocations: 374.8 kB / 385.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.621, allocations: 4 kB / 385.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001195/0.6223, allocations: 215.8 kB / 385.3 MB, free: 12.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.005936/0.6282, allocations: 1.74 MB / 387.1 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003688/0.632, allocations: 1.024 MB / 388.1 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.632, allocations: 192 / 388.1 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/0.634, allocations: 0.5628 MB / 388.7 MB, free: 9.148 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.6354, allocations: 163.5 kB / 388.8 MB, free: 8.992 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005613/0.6411, allocations: 2.587 MB / 391.4 MB, free: 6.332 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006778/0.6418, allocations: 0.8995 MB / 392.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006246/0.6425, allocations: 73.05 kB / 392.4 MB, free: 5.336 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005035/0.643, allocations: 219.4 kB / 392.6 MB, free: 5.121 MB / 314.7 MB Notification: Performance of SimCode: time 3.266e-06/0.643, allocations: 4 kB / 392.6 MB, free: 5.117 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0756/0.7186, allocations: 17.5 MB / 410.1 MB, free: 3.66 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003095/0.719, allocations: 207.3 kB / 410.3 MB, free: 3.422 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.493/4.212, allocations: 0 / 410.3 MB, free: 3.422 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat