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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [: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.0009516/0.0009516, allocations: 187.4 kB / 8.48 MB, free: 1.867 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.309/1.309, allocations: 205.2 MB / 214.1 MB, free: 5.516 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009291/0.0009291, allocations: 91.25 kB / 262.1 MB, free: 5.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/5.66e-06, allocations: 0 / 315 MB, free: 41.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08682, allocations: 47.58 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3219/0.4087, allocations: 79.19 MB / 441.7 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.4091, allocations: 70.8 kB / 441.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01651/0.4256, allocations: 5.81 MB / 447.6 MB, free: 9.797 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.666e-05/0.4257, allocations: 11.78 kB / 447.6 MB, free: 9.793 MB / 314.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.00081/0.4265, allocations: 0.5788 MB / 448.2 MB, free: 9.293 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.4266, allocations: 11.53 kB / 448.2 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.718e-05/0.4267, allocations: 38.75 kB / 448.2 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.4271, allocations: 290.1 kB / 448.5 MB, free: 9.023 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.4273, allocations: 45.56 kB / 448.6 MB, free: 8.988 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.909e-05/0.4273, allocations: 19.41 kB / 448.6 MB, free: 8.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003181/0.4277, allocations: 170.1 kB / 448.8 MB, free: 8.969 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.428, allocations: 270.5 kB / 449 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.428, allocations: 0 / 449 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.4281, allocations: 3.812 kB / 449 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.4281, allocations: 11.7 kB / 449 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.4294, allocations: 0.7564 MB / 449.8 MB, free: 8.391 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.4299, allocations: 243.4 kB / 450 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.4301, allocations: 103.6 kB / 450.1 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.786e-05/0.4302, allocations: 7.219 kB / 450.1 MB, free: 8.328 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.4302, allocations: 40.72 kB / 450.2 MB, free: 8.289 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.843e-06/0.4302, allocations: 4 kB / 450.2 MB, free: 8.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006168/0.4308, allocations: 270.1 kB / 450.4 MB, free: 8.203 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.589e-05/0.4309, allocations: 320.2 kB / 450.8 MB, free: 7.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.4312, allocations: 237.6 kB / 451 MB, free: 7.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.4312, allocations: 25.7 kB / 451 MB, free: 7.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.81e-05/0.4313, allocations: 130.5 kB / 451.1 MB, free: 7.559 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.007e-05/0.4314, allocations: 107 kB / 451.2 MB, free: 7.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.4314, allocations: 7.938 kB / 451.3 MB, free: 7.473 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.804e-05/0.4315, allocations: 340.3 kB / 451.6 MB, free: 7.152 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.4316, allocations: 74.2 kB / 451.7 MB, free: 7.148 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.4318, allocations: 180.1 kB / 451.8 MB, free: 7.023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.432, allocations: 94.44 kB / 451.9 MB, free: 7.012 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.432, allocations: 0 / 451.9 MB, free: 7.012 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004603/0.4324, allocations: 312.4 kB / 452.2 MB, free: 6.918 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.4325, allocations: 3.812 kB / 452.2 MB, free: 6.918 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4325, allocations: 4 kB / 452.2 MB, free: 6.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002197/0.4327, allocations: 42.86 kB / 452.3 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.4338, allocations: 221.8 kB / 452.5 MB, free: 6.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/0.4366, allocations: 2.853 MB / 455.4 MB, free: 4.238 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.4368, allocations: 35.39 kB / 455.4 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.4369, allocations: 11.59 kB / 455.4 MB, free: 4.215 MB / 314.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.0001819/0.4371, allocations: 121.2 kB / 455.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/0.4371, allocations: 31.06 kB / 455.5 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.242e-05/0.4372, allocations: 36.48 kB / 455.6 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.4372, allocations: 3.906 kB / 455.6 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4372, allocations: 3.906 kB / 455.6 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005493/0.4378, allocations: 0.6224 MB / 456.2 MB, free: 19.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.4381, allocations: 344.2 kB / 456.6 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4382, allocations: 0 / 456.6 MB, free: 19.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/0.4396, allocations: 270.2 kB / 456.8 MB, free: 19.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.931e-05/0.4397, allocations: 23.53 kB / 456.8 MB, free: 19.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.4397, allocations: 3.906 kB / 456.8 MB, free: 19.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/0.4423, allocations: 2.704 MB / 459.5 MB, free: 16.6 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4423, allocations: 4.125 kB / 459.5 MB, free: 16.59 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005561/0.4429, allocations: 478.4 kB / 460 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.4431, allocations: 138.3 kB / 460.2 MB, free: 16.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.4431, allocations: 0 / 460.2 MB, free: 16.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.4433, allocations: 23.45 kB / 460.2 MB, free: 16.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.611e-05/0.4434, allocations: 18.38 kB / 460.2 MB, free: 16.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.4434, allocations: 6.156 kB / 460.2 MB, free: 16.26 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001861/0.4436, allocations: 187.3 kB / 460.4 MB, free: 16.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003983/0.444, allocations: 104 kB / 460.5 MB, free: 16.16 MB / 330.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.0001999/0.4443, allocations: 106.3 kB / 460.6 MB, free: 16.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.4459, allocations: 0.5515 MB / 461.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4459, allocations: 3.844 kB / 461.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.4475, allocations: 481.2 kB / 461.6 MB, free: 15.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.4479, allocations: 68.94 kB / 461.7 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.4493, allocations: 0.6328 MB / 462.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.4498, allocations: 0.8179 MB / 463.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4498, allocations: 0 / 463.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of Templates: time 0.01117/0.4609, allocations: 5.221 MB / 468.4 MB, free: 11.89 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (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 & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches