Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002276/0.002275, allocations: 183.4 kB / 8.152 MB, free: 2.18 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.665/1.665, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.001272/0.001272, allocations: 96.89 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.989e-06/1.026e-05, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2313, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1182/0.3496, allocations: 79.2 MB / 441 MB, free: 6.859 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.3499, allocations: 74.02 kB / 441.1 MB, free: 6.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02642/0.3764, allocations: 5.809 MB / 446.9 MB, free: 1.016 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.822e-05/0.3765, allocations: 8 kB / 446.9 MB, free: 1.008 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.001189/0.3777, allocations: 0.5884 MB / 447.5 MB, free: 380 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.3777, allocations: 8.031 kB / 447.5 MB, free: 372 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.3779, allocations: 48.53 kB / 447.6 MB, free: 324 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005657/0.3784, allocations: 287 kB / 447.8 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.3786, allocations: 42.14 kB / 447.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.3787, allocations: 19.91 kB / 447.9 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005591/0.3793, allocations: 168.8 kB / 448.1 MB, free: 15.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006445/0.3799, allocations: 264.7 kB / 448.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3799, allocations: 4 kB / 448.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.38, allocations: 0 / 448.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.38, allocations: 4 kB / 448.3 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.3824, allocations: 0.7748 MB / 449.1 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008586/0.3833, allocations: 239.1 kB / 449.3 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.3836, allocations: 99.23 kB / 449.4 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.273e-05/0.3836, allocations: 4 kB / 449.4 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.3837, allocations: 42.56 kB / 449.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.835e-06/0.3837, allocations: 0 / 449.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009711/0.3847, allocations: 271.1 kB / 449.7 MB, free: 13.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/0.3848, allocations: 324.4 kB / 450.1 MB, free: 13.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004064/0.3853, allocations: 234 kB / 450.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.167e-05/0.3853, allocations: 29.7 kB / 450.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.464e-05/0.3854, allocations: 183 kB / 450.5 MB, free: 13.13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.3856, allocations: 110.4 kB / 450.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.3856, allocations: 0 / 450.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3857, allocations: 318.8 kB / 450.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.386, allocations: 79.5 kB / 451 MB, free: 12.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.3864, allocations: 178.2 kB / 451.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.3867, allocations: 93.31 kB / 451.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3867, allocations: 0 / 451.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000933/0.3876, allocations: 292.4 kB / 451.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3877, allocations: 4 kB / 451.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.3877, allocations: 8 kB / 451.6 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003214/0.388, allocations: 40.83 kB / 451.6 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.3902, allocations: 219.9 kB / 451.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005073/0.3953, allocations: 2.857 MB / 454.7 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/0.3957, allocations: 31.86 kB / 454.7 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-05/0.3958, allocations: 16.06 kB / 454.7 MB, free: 8.617 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.0001939/0.396, allocations: 45.62 kB / 454.8 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.3961, allocations: 35.62 kB / 454.8 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.3963, allocations: 31.08 kB / 454.8 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.3963, allocations: 4 kB / 454.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.3963, allocations: 0 / 454.8 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008567/0.3972, allocations: 0.6198 MB / 455.4 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006353/0.3978, allocations: 337.8 kB / 455.8 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3978, allocations: 4 kB / 455.8 MB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002844/0.4007, allocations: 271.7 kB / 456 MB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001646/0.4009, allocations: 28.75 kB / 456.1 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.796e-05/0.4009, allocations: 0 / 456.1 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004327/0.4053, allocations: 2.712 MB / 458.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.4053, allocations: 3.906 kB / 458.8 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001148/0.4065, allocations: 472.5 kB / 459.3 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002581/0.4068, allocations: 136.6 kB / 459.4 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.4069, allocations: 3.906 kB / 459.4 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004136/0.4073, allocations: 24.73 kB / 459.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.405e-05/0.4074, allocations: 19.91 kB / 459.4 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.4074, allocations: 8 kB / 459.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003229/0.4078, allocations: 183.7 kB / 459.6 MB, free: 3.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005858/0.4084, allocations: 103.8 kB / 459.7 MB, free: 3.191 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.0002561/0.4086, allocations: 103.2 kB / 459.8 MB, free: 3.082 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003113/0.4118, allocations: 0.5566 MB / 460.4 MB, free: 2.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.4118, allocations: 0 / 460.4 MB, free: 2.512 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003184/0.415, allocations: 478.5 kB / 460.8 MB, free: 2.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007316/0.4158, allocations: 62.06 kB / 460.9 MB, free: 1.977 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.4184, allocations: 0.6767 MB / 461.6 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005283/0.419, allocations: 0.811 MB / 462.4 MB, free: 436 kB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.419, allocations: 1.594 kB / 462.4 MB, free: 436 kB / 346.7 MB Notification: Performance of Templates: time 0.01403/0.4331, allocations: 6.576 MB / 469 MB, free: 9.891 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches