Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009162/0.0009162, allocations: 183.7 kB / 8.138 MB, free: 2.188 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.065/1.065, allocations: 221.4 MB / 229.9 MB, free: 3.051 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.0008516/0.0008516, allocations: 88.36 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08971/0.09059, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.2619, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0792/0.3411, allocations: 78.51 MB / 465.5 MB, free: 8.273 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001746/0.3414, allocations: 71.91 kB / 465.6 MB, free: 8.203 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.01551/0.3569, allocations: 6.345 MB / 471.9 MB, free: 1.812 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.3569, allocations: 8 kB / 471.9 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.116e-05/0.357, allocations: 43.53 kB / 472 MB, free: 1.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.3574, allocations: 291 kB / 472.3 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.3575, allocations: 46.12 kB / 472.3 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.3576, allocations: 19.91 kB / 472.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003087/0.3579, allocations: 164.8 kB / 472.5 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000361/0.3583, allocations: 271.6 kB / 472.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3583, allocations: 0 / 472.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.3583, allocations: 0 / 472.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3583, allocations: 8 kB / 472.8 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.3596, allocations: 0.767 MB / 473.5 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004869/0.3601, allocations: 247 kB / 473.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.3603, allocations: 100.8 kB / 473.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.3603, allocations: 11.98 kB / 473.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.3604, allocations: 34.56 kB / 473.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.683e-06/0.3604, allocations: 4 kB / 473.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005394/0.3609, allocations: 263.8 kB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.361, allocations: 320.5 kB / 474.5 MB, free: 15.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.3612, allocations: 235.4 kB / 474.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3613, allocations: 25.7 kB / 474.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.075e-05/0.3614, allocations: 132.5 kB / 474.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.299e-05/0.3615, allocations: 102.4 kB / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.3615, allocations: 0 / 475 MB, free: 14.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3616, allocations: 343.8 kB / 475.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.3617, allocations: 79.98 kB / 475.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.3619, allocations: 182.9 kB / 475.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.3621, allocations: 93.31 kB / 475.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3621, allocations: 0 / 475.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004969/0.3626, allocations: 308.2 kB / 475.9 MB, free: 13.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.3626, allocations: 4 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3626, allocations: 4 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001827/0.3628, allocations: 40.83 kB / 476 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.3639, allocations: 219.9 kB / 476.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002943/0.3668, allocations: 2.866 MB / 479.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.3671, allocations: 27.73 kB / 479.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.3671, allocations: 8 kB / 479.1 MB, free: 10.09 MB / 362.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.0001434/0.3672, allocations: 123.9 kB / 479.2 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.3673, allocations: 39.62 kB / 479.3 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.166e-05/0.3674, allocations: 31.08 kB / 479.3 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3674, allocations: 4 kB / 479.3 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.3674, allocations: 0 / 479.3 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005069/0.3679, allocations: 0.6266 MB / 479.9 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.3683, allocations: 333.8 kB / 480.3 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3683, allocations: 0 / 480.3 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.3696, allocations: 275.7 kB / 480.5 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.517e-05/0.3697, allocations: 24.84 kB / 480.6 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.3698, allocations: 3.938 kB / 480.6 MB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/0.3722, allocations: 2.725 MB / 483.3 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3722, allocations: 0 / 483.3 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005827/0.3728, allocations: 484.3 kB / 483.8 MB, free: 5.051 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001083/0.3739, allocations: 1.173 MB / 484.9 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.3741, allocations: 140.6 kB / 485.1 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.786e-05/0.3741, allocations: 4 kB / 485.1 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.3743, allocations: 11.98 kB / 485.1 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.3744, allocations: 11.98 kB / 485.1 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.3744, allocations: 15.98 kB / 485.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000155/0.3746, allocations: 183.1 kB / 485.3 MB, free: 3.477 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009648/0.3755, allocations: 95.84 kB / 485.4 MB, free: 3.383 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.0001515/0.3757, allocations: 115.2 kB / 485.5 MB, free: 3.262 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.3773, allocations: 0.55 MB / 486 MB, free: 2.695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.79e-06/0.3773, allocations: 4 kB / 486 MB, free: 2.691 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.3789, allocations: 485.7 kB / 486.5 MB, free: 2.207 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003727/0.3793, allocations: 77.06 kB / 486.6 MB, free: 2.137 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.3808, allocations: 0.6683 MB / 487.3 MB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004195/0.3812, allocations: 0.8261 MB / 488.1 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3812, allocations: 0 / 488.1 MB, free: 0.5898 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat