Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002158/0.002164, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001182/0.001182, allocations: 107.2 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005512/0.0005513, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3354, allocations: 47.57 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.4722, allocations: 84.23 MB / 458.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.4726, allocations: 79.97 kB / 458.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07553/0.5482, allocations: 15.83 MB / 474.8 MB, free: 12.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.019e-06/0.5482, allocations: 0 / 474.8 MB, free: 12.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001278/0.5484, allocations: 19.98 kB / 474.8 MB, free: 12.38 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.005435/0.5539, allocations: 1.085 MB / 475.9 MB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.905e-05/0.554, allocations: 12.03 kB / 475.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005347/0.5545, allocations: 111.7 kB / 476 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005035/0.555, allocations: 94.97 kB / 476.1 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002006/0.5571, allocations: 482.5 kB / 476.6 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004105/0.5576, allocations: 104.7 kB / 476.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002901/0.5579, allocations: 55.98 kB / 476.7 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003864/0.5618, allocations: 0.8182 MB / 477.5 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.996e-05/0.5619, allocations: 0 / 477.5 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/0.5621, allocations: 24 kB / 477.6 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.5621, allocations: 16 kB / 477.6 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004101/0.5663, allocations: 0.5594 MB / 478.1 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01036/0.5767, allocations: 2.068 MB / 480.2 MB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00463/0.5814, allocations: 0.6201 MB / 480.8 MB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001623/0.5816, allocations: 16.61 kB / 480.8 MB, free: 6.004 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002314/0.584, allocations: 351 kB / 481.2 MB, free: 5.645 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 6.753e-06/0.584, allocations: 4 kB / 481.2 MB, free: 5.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.01625/0.6003, allocations: 1.67 MB / 482.8 MB, free: 3.922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005737/0.6009, allocations: 0.8232 MB / 483.7 MB, free: 2.902 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.6027, allocations: 0.519 MB / 484.2 MB, free: 2.375 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000273/0.603, allocations: 41.7 kB / 484.2 MB, free: 2.328 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005333/0.6036, allocations: 359.2 kB / 484.6 MB, free: 1.977 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004806/0.6041, allocations: 201.1 kB / 484.8 MB, free: 1.777 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.6042, allocations: 12 kB / 484.8 MB, free: 1.766 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.6044, allocations: 338.8 kB / 485.1 MB, free: 1.426 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/0.6062, allocations: 237.2 kB / 485.4 MB, free: 1.191 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002487/0.6088, allocations: 0.5373 MB / 485.9 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.6109, allocations: 334.2 kB / 486.2 MB, free: 200 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.611, allocations: 0 / 486.2 MB, free: 200 kB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.006917/0.6179, allocations: 0.9253 MB / 487.1 MB, free: 15.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.6181, allocations: 63.41 kB / 487.2 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.6181, allocations: 0 / 487.2 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001982/0.6201, allocations: 225.5 kB / 487.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/0.6223, allocations: 131.8 kB / 487.6 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01696/0.6393, allocations: 4.335 MB / 491.9 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.6412, allocations: 99.39 kB / 492 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002374/0.6415, allocations: 23.98 kB / 492 MB, free: 10.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0008561/0.6424, allocations: 213.8 kB / 492.2 MB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003526/0.6428, allocations: 79.11 kB / 492.3 MB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.6432, allocations: 82.86 kB / 492.4 MB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/0.6432, allocations: 11.98 kB / 492.4 MB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.6432, allocations: 7.984 kB / 492.4 MB, free: 9.691 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006414/0.6497, allocations: 1.125 MB / 493.5 MB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008413/0.6581, allocations: 1.615 MB / 495.1 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.6582, allocations: 0 / 495.1 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002113/0.6603, allocations: 127.8 kB / 495.3 MB, free: 6.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001601/0.662, allocations: 177.5 kB / 495.4 MB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/0.6622, allocations: 15.98 kB / 495.4 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01299/0.6752, allocations: 3.721 MB / 499.2 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6752, allocations: 0 / 499.2 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007405/0.6827, allocations: 1.117 MB / 0.4886 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009237/0.6836, allocations: 220 kB / 0.4888 GB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003625/0.6841, allocations: 24 kB / 0.4888 GB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/0.6857, allocations: 51.95 kB / 0.4888 GB, free: 1.004 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003891/0.6861, allocations: 56.47 kB / 0.4889 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.6863, allocations: 19.98 kB / 0.4889 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001342/0.6876, allocations: 411.1 kB / 0.4893 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.563e-06/0.6877, allocations: 4 kB / 0.4893 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002251/0.6899, allocations: 271.6 kB / 0.4896 GB, free: 272 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.3022/0.9922, allocations: 1.698 MB / 0.4912 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003526/0.9958, allocations: 1.06 MB / 0.4923 GB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/0.9958, allocations: 2.312 kB / 0.4923 GB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.9976, allocations: 0.5728 MB / 0.4928 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.999, allocations: 195 kB / 0.493 GB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005644/1.005, allocations: 3.411 MB / 0.4963 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005045/1.005, allocations: 0.9409 MB / 0.4973 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006172/1.006, allocations: 262.3 kB / 0.4975 GB, free: 101.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/1.006, allocations: 0 / 0.4975 GB, free: 101.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.961/3.967, allocations: 18.29 MB / 0.5154 GB, free: 95.57 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat