Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 179.8 kB / 8.478 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.237/1.237, allocations: 205.2 MB / 214.1 MB, free: 13.86 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.00085/0.00085, allocations: 80.38 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1054/0.1063, allocations: 52.99 MB / 315.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.4098, allocations: 47.55 MB / 362.6 MB, free: 45.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.518, allocations: 83.39 MB / 446 MB, free: 2.508 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.5184, allocations: 79.94 kB / 446.1 MB, free: 2.43 MB / 330.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.04719/0.5656, allocations: 16.49 MB / 462.6 MB, free: 1.844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.5657, allocations: 8 kB / 462.6 MB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003542/0.5661, allocations: 102.9 kB / 462.7 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.5672, allocations: 494.5 kB / 463.2 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/0.5674, allocations: 84.7 kB / 463.3 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.5675, allocations: 29.03 kB / 463.3 MB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008519/0.5684, allocations: 410.5 kB / 463.7 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.5695, allocations: 0.6667 MB / 464.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.5695, allocations: 4 kB / 464.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.149e-05/0.5696, allocations: 4 kB / 464.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.5696, allocations: 15.91 kB / 464.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003985/0.5736, allocations: 1.96 MB / 466.3 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.5746, allocations: 460.8 kB / 466.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/0.575, allocations: 211.8 kB / 467 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.55e-05/0.5751, allocations: 17.56 kB / 467 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004362/0.5755, allocations: 265.3 kB / 467.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.427e-06/0.5756, allocations: 4 kB / 467.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.001926/0.5775, allocations: 0.7001 MB / 468 MB, free: 12.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003331/0.5778, allocations: 0.8232 MB / 468.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006111/0.5785, allocations: 454.5 kB / 469.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.579e-05/0.5785, allocations: 29.7 kB / 469.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.5787, allocations: 240.7 kB / 469.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001965/0.5789, allocations: 193.1 kB / 469.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.579, allocations: 4 kB / 469.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.5792, allocations: 378.7 kB / 470.1 MB, free: 9.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/0.5795, allocations: 161.3 kB / 470.2 MB, free: 9.695 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005536/0.58, allocations: 473.2 kB / 470.7 MB, free: 9.109 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.5804, allocations: 200.6 kB / 470.9 MB, free: 8.914 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.5804, allocations: 9.25 kB / 470.9 MB, free: 8.906 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001813/0.5822, allocations: 0.774 MB / 471.7 MB, free: 8.121 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.5822, allocations: 6.969 kB / 471.7 MB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5823, allocations: 4 kB / 471.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000756/0.583, allocations: 200.5 kB / 471.9 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007274/0.5838, allocations: 131.8 kB / 472 MB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005424/0.5892, allocations: 3.899 MB / 475.9 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009989/0.5903, allocations: 71.5 kB / 476 MB, free: 3.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.5904, allocations: 27.98 kB / 476 MB, free: 3.559 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real oneWayValve.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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 () * 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.000522/0.5909, allocations: 138 kB / 476.1 MB, free: 3.418 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/0.5913, allocations: 79.14 kB / 476.2 MB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002342/0.5915, allocations: 74.41 kB / 476.3 MB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.5915, allocations: 8 kB / 476.3 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5915, allocations: 0 / 476.3 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001777/0.5933, allocations: 0.9622 MB / 477.2 MB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.5959, allocations: 1.375 MB / 478.6 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.596, allocations: 0 / 478.6 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007218/0.5967, allocations: 123.8 kB / 478.7 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005088/0.5972, allocations: 145.7 kB / 478.9 MB, free: 488 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.975e-05/0.5973, allocations: 7.984 kB / 478.9 MB, free: 480 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004092/0.6014, allocations: 3.34 MB / 482.2 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6014, allocations: 4 kB / 482.2 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001634/0.603, allocations: 0.8918 MB / 483.1 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002975/0.606, allocations: 2.012 MB / 485.1 MB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004627/0.6065, allocations: 216 kB / 485.4 MB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.6067, allocations: 7.984 kB / 485.4 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00059/0.6073, allocations: 40.09 kB / 485.4 MB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.6075, allocations: 40.44 kB / 485.4 MB, free: 9.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.6075, allocations: 15.98 kB / 485.5 MB, free: 9.613 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005461/0.6081, allocations: 354.9 kB / 485.8 MB, free: 9.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001696/0.6098, allocations: 235.6 kB / 486 MB, free: 9.039 MB / 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) * 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.0003208/0.6101, allocations: 127.4 kB / 486.2 MB, free: 8.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.6118, allocations: 0.785 MB / 486.9 MB, free: 8.086 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.6118, allocations: 0 / 486.9 MB, free: 8.086 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.6126, allocations: 465.7 kB / 487.4 MB, free: 7.613 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009013/0.6135, allocations: 163 kB / 487.6 MB, free: 7.457 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.6159, allocations: 0.8681 MB / 488.4 MB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007439/0.6166, allocations: 0.9975 MB / 489.4 MB, free: 5.531 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.6167, allocations: 0 / 489.4 MB, free: 5.531 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat