Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.00166/0.00166, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008457/0.0008457, allocations: 88.8 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1003/0.1011, allocations: 56.89 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08311/0.1842, allocations: 51.48 MB / 394.7 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.22/0.4042, allocations: 83.4 MB / 478.1 MB, free: 9.629 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.4045, allocations: 79.09 kB / 478.2 MB, free: 9.602 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.02152/0.426, allocations: 9.347 MB / 487.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.4261, allocations: 8 kB / 487.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.674e-05/0.4262, allocations: 47.44 kB / 487.6 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.4266, allocations: 336.8 kB / 487.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.4266, allocations: 8 kB / 487.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/0.4266, allocations: 12 kB / 487.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002402/0.4269, allocations: 144.2 kB / 488.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.4272, allocations: 261.6 kB / 488.3 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.4272, allocations: 0 / 488.3 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.4272, allocations: 0 / 488.3 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.4273, allocations: 4 kB / 488.3 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.4283, allocations: 0.752 MB / 489.1 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003659/0.4287, allocations: 191.1 kB / 489.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.4288, allocations: 75.03 kB / 489.3 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.4288, allocations: 7.984 kB / 489.4 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000149/0.429, allocations: 125.4 kB / 489.5 MB, free: 488 kB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.429, allocations: 0 / 489.5 MB, free: 488 kB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004485/0.4295, allocations: 245 kB / 489.7 MB, free: 284 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/0.4296, allocations: 312.4 kB / 490 MB, free: 15.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003765/0.4299, allocations: 356.5 kB / 490.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.43, allocations: 29.7 kB / 490.4 MB, free: 15.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.711e-05/0.4301, allocations: 146.2 kB / 490.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.012e-05/0.4301, allocations: 83.06 kB / 490.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-06/0.4301, allocations: 4 kB / 490.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.4303, allocations: 347.4 kB / 491 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.4304, allocations: 59.19 kB / 491 MB, free: 15.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.4305, allocations: 162.6 kB / 491.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.4307, allocations: 83.89 kB / 491.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4307, allocations: 0 / 491.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004618/0.4312, allocations: 271 kB / 491.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.4312, allocations: 8 kB / 491.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.4312, allocations: 4.094 kB / 491.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001715/0.4314, allocations: 40.27 kB / 491.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.4316, allocations: 51.92 kB / 491.6 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.4329, allocations: 1.38 MB / 493 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.433, allocations: 15.84 kB / 493 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.4331, allocations: 11.94 kB / 493 MB, free: 13.05 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.4332, allocations: 128.1 kB / 493.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.705e-05/0.4333, allocations: 49.81 kB / 493.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004658/0.4337, allocations: 251.3 kB / 493.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.4338, allocations: 0 / 493.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.4338, allocations: 7.906 kB / 493.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004146/0.4342, allocations: 0.5668 MB / 494 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008216/0.435, allocations: 0.685 MB / 494.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.435, allocations: 4 kB / 494.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.4353, allocations: 47.97 kB / 494.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.4353, allocations: 0 / 494.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.4353, allocations: 3.875 kB / 494.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4353, allocations: 4 kB / 494.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4353, allocations: 0 / 494.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004572/0.4358, allocations: 390.5 kB / 495.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009207/0.4367, allocations: 1.016 MB / 496.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.4369, allocations: 147.6 kB / 496.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.032e-05/0.437, allocations: 11.89 kB / 496.3 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.4371, allocations: 4 kB / 496.3 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.4372, allocations: 7.984 kB / 496.3 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.4372, allocations: 15.92 kB / 496.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000275/0.4375, allocations: 285.9 kB / 496.6 MB, free: 9.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009468/0.4385, allocations: 107.6 kB / 496.7 MB, free: 9.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006723/0.4391, allocations: 318 kB / 497 MB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004626/0.4396, allocations: 290.1 kB / 497.3 MB, free: 9.281 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4396, allocations: 7.938 kB / 497.3 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.4398, allocations: 83.12 kB / 497.4 MB, free: 9.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.4402, allocations: 82.48 kB / 497.5 MB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.4414, allocations: 0.5644 MB / 498.1 MB, free: 8.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005393/0.4419, allocations: 0.8477 MB / 498.9 MB, free: 7.758 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4419, allocations: 0 / 498.9 MB, free: 7.758 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat