Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") [: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.0009816/0.0009817, allocations: 176.1 kB / 8.478 MB, free: 1.891 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.248/1.248, allocations: 205.2 MB / 214.1 MB, free: 5.141 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.0008721/0.0008721, allocations: 75.36 kB / 262.1 MB, free: 5.188 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.721e-06/5.751e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07637/0.07639, allocations: 47.57 MB / 362.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5941/0.6705, allocations: 320.4 MB / 0.6669 GB, free: 71.55 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.6709, allocations: 75.83 kB / 0.6669 GB, free: 71.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.9246/1.595, allocations: 269.1 MB / 0.9298 GB, free: 64.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001151/1.596, allocations: 37.31 kB / 0.9298 GB, free: 64.53 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005547/1.601, allocations: 1.839 MB / 0.9316 GB, free: 63.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/1.601, allocations: 13.34 kB / 0.9316 GB, free: 63.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006612/1.602, allocations: 173 kB / 0.9318 GB, free: 63.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/1.604, allocations: 1.136 MB / 0.9329 GB, free: 63.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/1.604, allocations: 137 kB / 0.933 GB, free: 63.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/1.605, allocations: 58 kB / 0.9331 GB, free: 63.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002475/1.607, allocations: 1.632 MB / 0.9347 GB, free: 63.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002413/1.609, allocations: 1.633 MB / 0.9363 GB, free: 63.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/1.609, allocations: 0 / 0.9363 GB, free: 63.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/1.61, allocations: 3.469 kB / 0.9363 GB, free: 63.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/1.61, allocations: 124.1 kB / 0.9364 GB, free: 63.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/1.62, allocations: 6.167 MB / 0.9424 GB, free: 61.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/1.622, allocations: 0.8796 MB / 0.9433 GB, free: 61.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007934/1.622, allocations: 0.6944 MB / 0.944 GB, free: 61.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005228/1.628, allocations: 4.167 MB / 0.948 GB, free: 58.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/1.628, allocations: 48.61 kB / 0.9481 GB, free: 58.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 2.935e-06/1.628, allocations: 0 / 0.9481 GB, free: 58.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01168/1.639, allocations: 4.27 MB / 0.9522 GB, free: 58.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/1.639, allocations: 140.2 kB / 0.9524 GB, free: 58.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/1.64, allocations: 0.8244 MB / 0.9532 GB, free: 57.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/1.641, allocations: 25.7 kB / 0.9532 GB, free: 57.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/1.641, allocations: 474.9 kB / 0.9537 GB, free: 57.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/1.641, allocations: 370.9 kB / 0.954 GB, free: 57.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.994e-05/1.641, allocations: 0 / 0.954 GB, free: 57.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.466e-05/1.641, allocations: 367.4 kB / 0.9544 GB, free: 57.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000825/1.642, allocations: 0.6218 MB / 0.955 GB, free: 57.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009771/1.643, allocations: 0.946 MB / 0.9559 GB, free: 56.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/1.653, allocations: 2.465 MB / 0.9583 GB, free: 56.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.569e-05/1.654, allocations: 6.031 kB / 0.9583 GB, free: 56.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01352/1.667, allocations: 3.73 MB / 0.9619 GB, free: 56.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006087/1.668, allocations: 3.487 MB / 0.9653 GB, free: 52.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/1.668, allocations: 13.53 kB / 0.9654 GB, free: 52.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006052/1.674, allocations: 1.102 MB / 0.9664 GB, free: 52.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/1.675, allocations: 303 kB / 0.9667 GB, free: 52.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003909/1.679, allocations: 1.963 MB / 0.9686 GB, free: 52.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001701/1.681, allocations: 61.2 kB / 0.9687 GB, free: 52.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/1.681, allocations: 72.69 kB / 0.9688 GB, free: 52.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.935e-06/1.681, allocations: 3.938 kB / 0.9688 GB, free: 52.34 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01213/1.693, allocations: 3.419 MB / 0.9721 GB, free: 52.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/1.693, allocations: 7.344 kB / 0.9721 GB, free: 52.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00621/1.699, allocations: 1.052 MB / 0.9731 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/1.7, allocations: 299.5 kB / 0.9734 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/1.703, allocations: 1.705 MB / 0.9751 GB, free: 51.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/1.705, allocations: 61.58 kB / 0.9752 GB, free: 51.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/1.705, allocations: 73.86 kB / 0.9752 GB, free: 51.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003916/1.705, allocations: 134.7 kB / 0.9754 GB, free: 51.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/1.706, allocations: 137 kB / 0.9755 GB, free: 51.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005811/1.711, allocations: 2.263 MB / 0.9777 GB, free: 51.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/1.711, allocations: 11.53 kB / 0.9777 GB, free: 51.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/1.711, allocations: 3.938 kB / 0.9777 GB, free: 51.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/1.711, allocations: 3.75 kB / 0.9777 GB, free: 51.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007625/1.719, allocations: 3.55 MB / 0.9812 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/1.719, allocations: 3 kB / 0.9812 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009657/1.72, allocations: 195 kB / 0.9814 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002998/1.723, allocations: 0.8194 MB / 0.9822 GB, free: 51.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/1.723, allocations: 19.86 kB / 0.9822 GB, free: 51.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003601/1.727, allocations: 1.958 MB / 0.9841 GB, free: 50.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.727, allocations: 2.5 kB / 0.9841 GB, free: 50.55 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005651/1.732, allocations: 2.981 MB / 0.987 GB, free: 50.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007442/1.733, allocations: 375.5 kB / 0.9874 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/1.733, allocations: 7.641 kB / 0.9874 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/1.735, allocations: 69.91 kB / 0.9874 GB, free: 50.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/1.735, allocations: 93.84 kB / 0.9875 GB, free: 50.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/1.735, allocations: 53.62 kB / 0.9876 GB, free: 50.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007966/1.736, allocations: 0.6 MB / 0.9882 GB, free: 50.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00362/1.739, allocations: 1.167 MB / 0.9893 GB, free: 49.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.001893/1.741, allocations: 1.054 MB / 0.9903 GB, free: 49.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004822/1.746, allocations: 2.543 MB / 0.9928 GB, free: 49.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.746, allocations: 2.156 kB / 0.9928 GB, free: 49.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/1.748, allocations: 0.8117 MB / 0.9936 GB, free: 49.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/1.75, allocations: 0.5095 MB / 0.9941 GB, free: 49.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005645/1.756, allocations: 2.453 MB / 0.9965 GB, free: 48.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/1.757, allocations: 1.475 MB / 0.998 GB, free: 48.21 MB / 426.7 MB Notification: Performance of SimCode: time 8.12e-07/1.757, allocations: 3.875 kB / 0.998 GB, free: 48.21 MB / 426.7 MB Notification: Performance of Templates: time 0.06809/1.825, allocations: 44.47 MB / 1.041 GB, free: 24.45 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches