Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001434/0.001434, allocations: 186.5 kB / 8.482 MB, free: 1.762 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.2 MB / 214.1 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009196/0.0009199, allocations: 97.08 kB / 262.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1083/0.1092, allocations: 52.97 MB / 315.1 MB, free: 8.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.3886, allocations: 47.56 MB / 362.6 MB, free: 45.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09519/0.4839, allocations: 79.2 MB / 441.8 MB, free: 6.723 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/0.4841, allocations: 71.95 kB / 441.9 MB, free: 6.652 MB / 330.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.01671/0.5008, allocations: 6.407 MB / 448.3 MB, free: 232 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.5009, allocations: 15.39 kB / 448.3 MB, free: 220 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.501, allocations: 40.84 kB / 448.3 MB, free: 180 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.5014, allocations: 294.9 kB / 448.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.573e-05/0.5015, allocations: 46.12 kB / 448.7 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.5015, allocations: 15.91 kB / 448.7 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003281/0.5018, allocations: 168.8 kB / 448.9 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004164/0.5023, allocations: 264.7 kB / 449.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.5023, allocations: 0 / 449.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.5023, allocations: 0 / 449.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.5023, allocations: 4 kB / 449.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.5039, allocations: 0.767 MB / 449.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005249/0.5044, allocations: 255.7 kB / 450.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.5046, allocations: 97.48 kB / 450.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.5047, allocations: 7.984 kB / 450.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.5047, allocations: 38.56 kB / 450.3 MB, free: 14.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.5047, allocations: 0 / 450.3 MB, free: 14.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006016/0.5053, allocations: 275.1 kB / 450.5 MB, free: 13.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.5054, allocations: 316.3 kB / 450.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.5057, allocations: 243.4 kB / 451.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.505e-05/0.5057, allocations: 29.7 kB / 451.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.562e-05/0.5058, allocations: 124.5 kB / 451.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.074e-05/0.5059, allocations: 110.4 kB / 451.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/0.506, allocations: 0 / 451.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.5061, allocations: 338.8 kB / 451.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.5063, allocations: 79.94 kB / 451.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.5065, allocations: 176.3 kB / 451.9 MB, free: 12.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.5067, allocations: 97.31 kB / 452 MB, free: 12.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5067, allocations: 0 / 452 MB, free: 12.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005665/0.5073, allocations: 308.1 kB / 452.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.5073, allocations: 4 kB / 452.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.5073, allocations: 4.094 kB / 452.3 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002063/0.5075, allocations: 44.84 kB / 452.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.5087, allocations: 223.8 kB / 452.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003086/0.5118, allocations: 2.846 MB / 455.4 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.5121, allocations: 39.67 kB / 455.5 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.5121, allocations: 14.88 kB / 455.5 MB, free: 8.48 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.0001638/0.5123, allocations: 113.1 kB / 455.6 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.763e-05/0.5124, allocations: 31.62 kB / 455.6 MB, free: 8.332 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.365e-05/0.5124, allocations: 43.08 kB / 455.7 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.5124, allocations: 4 kB / 455.7 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.5125, allocations: 3.906 kB / 455.7 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005383/0.513, allocations: 0.615 MB / 456.3 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.5134, allocations: 345.8 kB / 456.6 MB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5134, allocations: 0 / 456.6 MB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.5148, allocations: 271.7 kB / 456.9 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.802e-05/0.5149, allocations: 24.84 kB / 456.9 MB, free: 6.891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.515, allocations: 7.906 kB / 456.9 MB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002682/0.5177, allocations: 2.705 MB / 459.6 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5177, allocations: 0 / 459.6 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006647/0.5184, allocations: 472.5 kB / 460.1 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001224/0.5196, allocations: 1.177 MB / 461.3 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.5198, allocations: 140.6 kB / 461.4 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.844e-05/0.5199, allocations: 4 kB / 461.4 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.5201, allocations: 16 kB / 461.4 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.5202, allocations: 19.97 kB / 461.5 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.5202, allocations: 4 kB / 461.5 MB, free: 2.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000175/0.5204, allocations: 187.1 kB / 461.6 MB, free: 1.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009942/0.5214, allocations: 99.84 kB / 461.7 MB, free: 1.793 MB / 346.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.0001828/0.5216, allocations: 115.2 kB / 461.9 MB, free: 1.668 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.5233, allocations: 0.5571 MB / 462.4 MB, free: 1.098 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5233, allocations: 0 / 462.4 MB, free: 1.098 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.5249, allocations: 478.7 kB / 462.9 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.5253, allocations: 71.06 kB / 463 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.5269, allocations: 0.6647 MB / 463.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000416/0.5273, allocations: 0.8266 MB / 464.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5274, allocations: 0 / 464.4 MB, free: 15.01 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat