Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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: 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 184.5 kB / 8.138 MB, free: 2.219 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.181/1.181, allocations: 221.4 MB / 229.9 MB, free: 3.047 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.0009813/0.0009812, allocations: 94.39 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.534e-06/7.554e-06, allocations: 4 kB / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2152, allocations: 50.39 MB / 386.9 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6496/0.8648, allocations: 320.9 MB / 0.6913 GB, free: 148.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.8651, allocations: 87.83 kB / 0.6913 GB, free: 148.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.8555/1.721, allocations: 274.1 MB / 0.959 GB, free: 42.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001972/1.721, allocations: 42.44 kB / 0.959 GB, free: 42.9 MB / 442.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.007064/1.728, allocations: 1.847 MB / 0.9608 GB, free: 41.02 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/1.728, allocations: 12.03 kB / 0.9608 GB, free: 41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/1.729, allocations: 178 kB / 0.961 GB, free: 40.83 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003278/1.733, allocations: 1.127 MB / 0.9621 GB, free: 39.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/1.733, allocations: 139.1 kB / 0.9622 GB, free: 39.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004791/1.733, allocations: 56 kB / 0.9623 GB, free: 39.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003066/1.736, allocations: 1.636 MB / 0.9639 GB, free: 37.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00353/1.74, allocations: 1.632 MB / 0.9655 GB, free: 36.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.146e-05/1.74, allocations: 3.906 kB / 0.9655 GB, free: 36.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002621/1.74, allocations: 3.938 kB / 0.9655 GB, free: 36.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/1.74, allocations: 121.9 kB / 0.9656 GB, free: 36.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/1.752, allocations: 6.173 MB / 0.9716 GB, free: 29.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/1.753, allocations: 0.8819 MB / 0.9725 GB, free: 28.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008837/1.754, allocations: 0.6949 MB / 0.9732 GB, free: 28.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005584/1.76, allocations: 4.167 MB / 0.9772 GB, free: 23.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/1.76, allocations: 51.34 kB / 0.9773 GB, free: 23.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 3.316e-06/1.76, allocations: 0 / 0.9773 GB, free: 23.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.01275/1.773, allocations: 4.274 MB / 0.9815 GB, free: 19.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/1.773, allocations: 141.5 kB / 0.9816 GB, free: 18.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/1.774, allocations: 0.8199 MB / 0.9824 GB, free: 18.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/1.774, allocations: 25.7 kB / 0.9824 GB, free: 18.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/1.775, allocations: 474.6 kB / 0.9829 GB, free: 17.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003101/1.775, allocations: 382.3 kB / 0.9832 GB, free: 17.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.108e-05/1.775, allocations: 0 / 0.9832 GB, free: 17.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.586e-05/1.775, allocations: 357.9 kB / 0.9836 GB, free: 16.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008733/1.776, allocations: 0.6287 MB / 0.9842 GB, free: 16.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/1.777, allocations: 0.9437 MB / 0.9851 GB, free: 15.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00417/1.781, allocations: 1.458 MB / 0.9865 GB, free: 13.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/1.781, allocations: 4 kB / 0.9865 GB, free: 13.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.006297/1.788, allocations: 2.711 MB / 0.9892 GB, free: 11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00079/1.788, allocations: 3.48 MB / 0.9926 GB, free: 7.246 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/1.788, allocations: 16 kB / 0.9926 GB, free: 7.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006391/1.795, allocations: 1.113 MB / 0.9937 GB, free: 6.113 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/1.796, allocations: 295.5 kB / 0.994 GB, free: 5.824 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004216/1.801, allocations: 1.969 MB / 0.9959 GB, free: 3.828 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/1.802, allocations: 59.8 kB / 0.9959 GB, free: 3.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000317/1.803, allocations: 71.97 kB / 0.996 GB, free: 3.699 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/1.803, allocations: 0 / 0.996 GB, free: 3.699 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006077/1.809, allocations: 2.412 MB / 0.9984 GB, free: 1.289 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/1.809, allocations: 8 kB / 0.9984 GB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006252/1.815, allocations: 1.049 MB / 0.9994 GB, free: 236 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2472/2.062, allocations: 292.8 kB / 0.9997 GB, free: 95.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003506/2.066, allocations: 1.706 MB / 1.001 GB, free: 94.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00188/2.068, allocations: 61.77 kB / 1.001 GB, free: 94.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/2.068, allocations: 66.23 kB / 1.001 GB, free: 94.61 MB / 442.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.0004924/2.069, allocations: 140.2 kB / 1.002 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/2.069, allocations: 131.2 kB / 1.002 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005876/2.075, allocations: 2.255 MB / 1.004 GB, free: 94.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/2.075, allocations: 22.38 kB / 1.004 GB, free: 94.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/2.075, allocations: 3.844 kB / 1.004 GB, free: 94.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/2.075, allocations: 3.797 kB / 1.004 GB, free: 94.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007208/2.082, allocations: 3.539 MB / 1.007 GB, free: 94.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/2.082, allocations: 0 / 1.007 GB, free: 94.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009664/2.083, allocations: 197 kB / 1.008 GB, free: 94.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002899/2.086, allocations: 0.8123 MB / 1.008 GB, free: 94.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/2.086, allocations: 19.95 kB / 1.008 GB, free: 94.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003698/2.09, allocations: 1.966 MB / 1.01 GB, free: 93.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/2.09, allocations: 3.094 kB / 1.01 GB, free: 93.59 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006038/2.096, allocations: 2.989 MB / 1.013 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/2.097, allocations: 374.9 kB / 1.014 GB, free: 93.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003199/2.098, allocations: 6.469 kB / 1.014 GB, free: 93.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/2.099, allocations: 71.75 kB / 1.014 GB, free: 93.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/2.099, allocations: 90.84 kB / 1.014 GB, free: 93.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/2.099, allocations: 51.59 kB / 1.014 GB, free: 93.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009395/2.1, allocations: 0.5997 MB / 1.014 GB, free: 93.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003982/2.104, allocations: 1.167 MB / 1.016 GB, free: 93.16 MB / 442.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.002974/2.107, allocations: 1.053 MB / 1.017 GB, free: 93.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005324/2.112, allocations: 2.543 MB / 1.019 GB, free: 93.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/2.112, allocations: 0 / 1.019 GB, free: 93.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001648/2.114, allocations: 0.8033 MB / 1.02 GB, free: 93.01 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003118/2.117, allocations: 0.5125 MB / 1.02 GB, free: 93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006406/2.124, allocations: 2.463 MB / 1.023 GB, free: 92.55 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/2.125, allocations: 1.474 MB / 1.024 GB, free: 91.82 MB / 442.7 MB Notification: Performance of SimCode: time 1.383e-06/2.125, allocations: 0 / 1.024 GB, free: 91.82 MB / 442.7 MB Notification: Performance of Templates: time 0.06883/2.194, allocations: 44.48 MB / 1.068 GB, free: 89.93 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches