Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",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.00113/0.00113, allocations: 199.4 kB / 8.54 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.175/1.175, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009211/0.0009211, allocations: 90.56 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09959/0.1005, allocations: 56.9 MB / 343.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.1954, allocations: 51.47 MB / 394.7 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2427/0.4382, allocations: 79.32 MB / 474 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.4384, allocations: 67.94 kB / 474.1 MB, free: 12.59 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.01497/0.4534, allocations: 6.397 MB / 480.5 MB, free: 8.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.4534, allocations: 8 kB / 480.5 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.626e-05/0.4535, allocations: 43.53 kB / 480.5 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.4538, allocations: 291.3 kB / 480.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.42e-05/0.4539, allocations: 46.12 kB / 480.9 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.454, allocations: 19.53 kB / 480.9 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002973/0.4543, allocations: 166 kB / 481.1 MB, free: 8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003253/0.4546, allocations: 265.1 kB / 481.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.4546, allocations: 4.938 kB / 481.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.4547, allocations: 0 / 481.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.4547, allocations: 8 kB / 481.3 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.4558, allocations: 0.7714 MB / 482.1 MB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.4563, allocations: 242.4 kB / 482.3 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.4564, allocations: 93.42 kB / 482.4 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.4565, allocations: 7.984 kB / 482.4 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.4565, allocations: 40.94 kB / 482.5 MB, free: 6.836 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.913e-06/0.4565, allocations: 4 kB / 482.5 MB, free: 6.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004948/0.457, allocations: 258.4 kB / 482.7 MB, free: 6.633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.4571, allocations: 319.9 kB / 483 MB, free: 6.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.4572, allocations: 231.7 kB / 483.3 MB, free: 6.062 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.4573, allocations: 33.64 kB / 483.3 MB, free: 6.023 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.38e-05/0.4573, allocations: 133.9 kB / 483.4 MB, free: 5.902 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.927e-05/0.4574, allocations: 100.3 kB / 483.5 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.331e-05/0.4574, allocations: 4 kB / 483.5 MB, free: 5.809 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.216e-05/0.4575, allocations: 339.4 kB / 483.9 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.4576, allocations: 72.56 kB / 483.9 MB, free: 5.441 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.4577, allocations: 195.9 kB / 484.1 MB, free: 5.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.4579, allocations: 87.69 kB / 484.2 MB, free: 5.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4579, allocations: 0 / 484.2 MB, free: 5.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004478/0.4584, allocations: 316.6 kB / 484.5 MB, free: 4.953 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.4584, allocations: 4 kB / 484.5 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.4584, allocations: 0.75 kB / 484.5 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000176/0.4586, allocations: 40.47 kB / 484.6 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.4596, allocations: 223.8 kB / 484.8 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002603/0.4622, allocations: 2.858 MB / 487.6 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.4625, allocations: 31.73 kB / 487.7 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.4626, allocations: 13.97 kB / 487.7 MB, free: 1.727 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTank1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank2.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001531/0.4627, allocations: 116.9 kB / 487.8 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.4628, allocations: 31.62 kB / 487.8 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.042e-05/0.4629, allocations: 34.45 kB / 487.9 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.4629, allocations: 4.547 kB / 487.9 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.4629, allocations: 5.219 kB / 487.9 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004738/0.4634, allocations: 0.6274 MB / 488.5 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003387/0.4637, allocations: 346.3 kB / 488.8 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4637, allocations: 3.938 kB / 488.8 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/0.4651, allocations: 271.7 kB / 489.1 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.923e-05/0.4652, allocations: 28.72 kB / 489.1 MB, free: 284 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.4653, allocations: 3.906 kB / 489.1 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002698/0.468, allocations: 2.705 MB / 491.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.468, allocations: 8.047 kB / 491.9 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006692/0.4687, allocations: 466.1 kB / 492.3 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001154/0.4698, allocations: 1.175 MB / 493.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.47, allocations: 141.2 kB / 493.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.4701, allocations: 4 kB / 493.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.4703, allocations: 8 kB / 493.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.178e-05/0.4704, allocations: 19.34 kB / 493.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.4704, allocations: 5.438 kB / 493.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001744/0.4706, allocations: 190 kB / 493.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009906/0.4716, allocations: 103.3 kB / 493.9 MB, free: 11.72 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001676/0.4718, allocations: 117.6 kB / 494.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.4735, allocations: 0.5518 MB / 494.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4736, allocations: 4 kB / 494.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.4753, allocations: 482.7 kB / 495.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.4757, allocations: 67.3 kB / 495.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.4774, allocations: 0.6749 MB / 495.8 MB, free: 9.945 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004316/0.4778, allocations: 0.8258 MB / 496.7 MB, free: 9.102 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4778, allocations: 0 / 496.7 MB, free: 9.102 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat