Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001071/0.001071, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.168/1.168, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009646/0.0009646, allocations: 91.66 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09961/0.1006, allocations: 56.9 MB / 343.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0848/0.1854, allocations: 51.47 MB / 394.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2305/0.416, allocations: 83.35 MB / 478.1 MB, free: 9.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.4162, allocations: 75.55 kB / 478.1 MB, free: 9.586 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.03937/0.4556, allocations: 16.37 MB / 494.5 MB, free: 12.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.4556, allocations: 8 kB / 494.5 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002825/0.4559, allocations: 98.88 kB / 494.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.457, allocations: 483.2 kB / 495.1 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.4572, allocations: 88.47 kB / 495.2 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.4573, allocations: 28 kB / 495.2 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008317/0.4582, allocations: 409.9 kB / 495.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009794/0.4591, allocations: 0.6661 MB / 496.3 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.4592, allocations: 0 / 496.3 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.351e-05/0.4593, allocations: 224 / 496.3 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.4593, allocations: 19.91 kB / 496.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003803/0.4631, allocations: 1.949 MB / 498.2 MB, free: 9.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009931/0.4641, allocations: 464.5 kB / 498.7 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/0.4645, allocations: 211.2 kB / 498.9 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.57e-05/0.4646, allocations: 14.17 kB / 498.9 MB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004204/0.465, allocations: 271.1 kB / 499.2 MB, free: 8.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 4.88e-06/0.465, allocations: 0 / 499.2 MB, free: 8.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.002044/0.4671, allocations: 0.708 MB / 499.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003719/0.4675, allocations: 0.8224 MB / 0.489 GB, free: 7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007428/0.4682, allocations: 457.5 kB / 0.4894 GB, free: 6.656 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.328e-05/0.4683, allocations: 33.7 kB / 0.4894 GB, free: 6.617 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.4685, allocations: 236.7 kB / 0.4897 GB, free: 6.414 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002041/0.4687, allocations: 192.6 kB / 0.4898 GB, free: 6.246 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.4688, allocations: 4 kB / 0.4898 GB, free: 6.242 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.469, allocations: 374.6 kB / 0.4902 GB, free: 5.895 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.4693, allocations: 168.9 kB / 0.4904 GB, free: 5.801 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/0.4697, allocations: 463 kB / 0.4908 GB, free: 5.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/0.4701, allocations: 212 kB / 0.491 GB, free: 5.191 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4701, allocations: 0 / 0.491 GB, free: 5.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001806/0.4719, allocations: 0.77 MB / 0.4918 GB, free: 4.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.4719, allocations: 8 kB / 0.4918 GB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.472, allocations: 4.031 kB / 0.4918 GB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007048/0.4727, allocations: 206.1 kB / 0.492 GB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007246/0.4734, allocations: 131 kB / 0.4921 GB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005177/0.4786, allocations: 3.881 MB / 0.4959 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.4793, allocations: 85.36 kB / 0.496 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.343e-05/0.4794, allocations: 26.48 kB / 0.496 GB, free: 0.6133 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.000222/0.4796, allocations: 146.8 kB / 0.4961 GB, free: 480 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.4797, allocations: 75.16 kB / 0.4962 GB, free: 404 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.4799, allocations: 74.03 kB / 0.4963 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.4799, allocations: 8 kB / 0.4963 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.4799, allocations: 0 / 0.4963 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001564/0.4815, allocations: 0.9684 MB / 0.4972 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.4836, allocations: 1.387 MB / 0.4986 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.4837, allocations: 0 / 0.4986 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006974/0.4844, allocations: 127.8 kB / 0.4987 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000448/0.4848, allocations: 142.7 kB / 0.4988 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/0.4849, allocations: 6.625 kB / 0.4988 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003797/0.4887, allocations: 3.341 MB / 0.5021 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4887, allocations: 0 / 0.5021 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001472/0.4902, allocations: 0.8879 MB / 0.503 GB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002654/0.4929, allocations: 2.008 MB / 0.5049 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/0.4932, allocations: 216 kB / 0.5051 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.4934, allocations: 0 / 0.5051 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005453/0.4939, allocations: 52.08 kB / 0.5052 GB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.4941, allocations: 32.44 kB / 0.5052 GB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.4941, allocations: 23.98 kB / 0.5052 GB, free: 6.703 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004253/0.4945, allocations: 350.9 kB / 0.5056 GB, free: 6.363 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001411/0.496, allocations: 239.5 kB / 0.5058 GB, free: 6.129 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.0002409/0.4962, allocations: 127.2 kB / 0.5059 GB, free: 5.996 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.4976, allocations: 0.7764 MB / 0.5067 GB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4976, allocations: 4.562 kB / 0.5067 GB, free: 5.191 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006702/0.4983, allocations: 461.2 kB / 0.5071 GB, free: 4.719 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007997/0.4991, allocations: 163.7 kB / 0.5073 GB, free: 4.566 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.5014, allocations: 0.8681 MB / 0.5081 GB, free: 3.664 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007347/0.5022, allocations: 0.9975 MB / 0.5091 GB, free: 2.641 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5022, allocations: 1.875 kB / 0.5091 GB, free: 2.641 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat