Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008961/0.0008961, allocations: 182.3 kB / 8.131 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.062/1.062, allocations: 221.4 MB / 229.9 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008814/0.0008814, allocations: 93.98 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08788/0.08879, allocations: 55.81 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.259, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08099/0.34, allocations: 82.55 MB / 469.6 MB, free: 4.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.3403, allocations: 75.91 kB / 469.6 MB, free: 4.113 MB / 346.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.04233/0.3827, allocations: 16.34 MB / 486 MB, free: 3.652 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.3827, allocations: 12 kB / 486 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.3829, allocations: 98.88 kB / 486.1 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007059/0.3836, allocations: 482.7 kB / 486.6 MB, free: 3.031 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.3838, allocations: 88.64 kB / 486.6 MB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.754e-05/0.3839, allocations: 32 kB / 486.7 MB, free: 2.902 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000729/0.3846, allocations: 410.5 kB / 487.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008999/0.3855, allocations: 0.6574 MB / 487.7 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.3855, allocations: 0 / 487.7 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.006e-05/0.3856, allocations: 8 kB / 487.7 MB, free: 1.727 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3856, allocations: 12 kB / 487.7 MB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003306/0.3889, allocations: 1.96 MB / 489.7 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009023/0.3899, allocations: 461.9 kB / 490.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003275/0.3902, allocations: 214.3 kB / 490.4 MB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.3902, allocations: 16.47 kB / 490.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.3906, allocations: 265.3 kB / 490.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 1.773e-06/0.3906, allocations: 0 / 490.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.001706/0.3924, allocations: 0.704 MB / 491.3 MB, free: 13.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002927/0.3927, allocations: 0.8271 MB / 492.2 MB, free: 12.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005176/0.3932, allocations: 454.6 kB / 492.6 MB, free: 12.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.3932, allocations: 29.7 kB / 492.6 MB, free: 12.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.3934, allocations: 248.5 kB / 492.9 MB, free: 12.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.3935, allocations: 185.2 kB / 493.1 MB, free: 12.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.3936, allocations: 0 / 493.1 MB, free: 12.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3937, allocations: 382.7 kB / 493.4 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.394, allocations: 169.2 kB / 493.6 MB, free: 11.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.3945, allocations: 461.2 kB / 494.1 MB, free: 10.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.3949, allocations: 215.9 kB / 494.3 MB, free: 10.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3949, allocations: 0 / 494.3 MB, free: 10.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001708/0.3966, allocations: 0.7662 MB / 495 MB, free: 9.934 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3967, allocations: 4 kB / 495 MB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.3967, allocations: 4 kB / 495 MB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006956/0.3974, allocations: 219 kB / 495.3 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000684/0.3981, allocations: 131.8 kB / 495.4 MB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004766/0.4028, allocations: 3.887 MB / 499.3 MB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005549/0.4034, allocations: 83.48 kB / 499.4 MB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.946e-05/0.4035, allocations: 20 kB / 499.4 MB, free: 5.359 MB / 378.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.0001832/0.4037, allocations: 125.8 kB / 499.5 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/0.4038, allocations: 75.16 kB / 499.6 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.4039, allocations: 74.56 kB / 499.6 MB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4039, allocations: 7.906 kB / 499.7 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.4039, allocations: 4 kB / 499.7 MB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001495/0.4054, allocations: 0.9699 MB / 0.4889 GB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.4074, allocations: 1.386 MB / 0.4902 GB, free: 2.543 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4074, allocations: 0 / 0.4902 GB, free: 2.543 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006723/0.4081, allocations: 123.8 kB / 0.4904 GB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004123/0.4085, allocations: 139.8 kB / 0.4905 GB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/0.4086, allocations: 11.98 kB / 0.4905 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09922/0.5078, allocations: 3.328 MB / 0.4938 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5078, allocations: 0 / 0.4938 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001317/0.5091, allocations: 0.8904 MB / 0.4946 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002116/0.5113, allocations: 2.008 MB / 0.4966 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.5116, allocations: 221.2 kB / 0.4968 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.5117, allocations: 3.875 kB / 0.4968 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004766/0.5122, allocations: 42.86 kB / 0.4968 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-05/0.5123, allocations: 46.91 kB / 0.4969 GB, free: 131.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.5123, allocations: 12.53 kB / 0.4969 GB, free: 131.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000336/0.5127, allocations: 354.4 kB / 0.4972 GB, free: 131.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00121/0.5139, allocations: 236.7 kB / 0.4975 GB, free: 131 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.0001813/0.5141, allocations: 125.7 kB / 0.4976 GB, free: 131 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.5152, allocations: 0.7957 MB / 0.4984 GB, free: 130.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5153, allocations: 0 / 0.4984 GB, free: 130.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005391/0.5158, allocations: 462.5 kB / 0.4988 GB, free: 130.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006591/0.5165, allocations: 167.7 kB / 0.499 GB, free: 130.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.5181, allocations: 0.8668 MB / 0.4998 GB, free: 130.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004421/0.5186, allocations: 1.003 MB / 0.5008 GB, free: 129.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5186, allocations: 0 / 0.5008 GB, free: 129.5 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat