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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001347/0.001348, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.3 MB / 214.4 MB, free: 1.664 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.0008468/0.0008468, allocations: 91.95 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.703e-05/1.748e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09098/0.09102, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.739/0.8301, allocations: 320.7 MB / 0.6677 GB, free: 9.324 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.8304, allocations: 77.14 kB / 0.6678 GB, free: 9.285 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.052/1.883, allocations: 267.8 MB / 0.9293 GB, free: 72.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.813e-06/1.883, allocations: 0 / 0.9293 GB, free: 72.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000109/1.883, allocations: 39.2 kB / 0.9294 GB, free: 72.2 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.005247/1.888, allocations: 1.813 MB / 0.9311 GB, free: 71.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/1.888, allocations: 7 kB / 0.9311 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006757/1.889, allocations: 177.8 kB / 0.9313 GB, free: 71.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002106/1.891, allocations: 1.127 MB / 0.9324 GB, free: 70.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/1.891, allocations: 135.8 kB / 0.9325 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/1.891, allocations: 59.81 kB / 0.9326 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002231/1.893, allocations: 1.593 MB / 0.9342 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/1.896, allocations: 1.601 MB / 0.9357 GB, free: 70.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/1.896, allocations: 0 / 0.9357 GB, free: 70.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/1.896, allocations: 0 / 0.9357 GB, free: 70.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001347/1.896, allocations: 115.4 kB / 0.9358 GB, free: 70.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009672/1.906, allocations: 6.124 MB / 0.9418 GB, free: 68.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/1.907, allocations: 1.118 MB / 0.9429 GB, free: 68.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007764/1.908, allocations: 0.6862 MB / 0.9436 GB, free: 68.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004875/1.913, allocations: 4.183 MB / 0.9477 GB, free: 66.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/1.913, allocations: 45.38 kB / 0.9477 GB, free: 66.21 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008802/1.914, allocations: 172.1 kB / 0.9479 GB, free: 66.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 5.37e-06/1.914, allocations: 3.891 kB / 0.9479 GB, free: 66.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01069/1.924, allocations: 4.101 MB / 0.9519 GB, free: 65.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/1.924, allocations: 140.3 kB / 0.952 GB, free: 65.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/1.926, allocations: 0.8215 MB / 0.9528 GB, free: 65.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.781e-05/1.926, allocations: 29.61 kB / 0.9528 GB, free: 65.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003386/1.926, allocations: 0.6121 MB / 0.9534 GB, free: 64.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003093/1.926, allocations: 365.9 kB / 0.9538 GB, free: 64.49 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.136e-05/1.926, allocations: 0 / 0.9538 GB, free: 64.49 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/1.927, allocations: 363.4 kB / 0.9541 GB, free: 64.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008246/1.927, allocations: 0.609 MB / 0.9547 GB, free: 63.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/1.928, allocations: 0.9219 MB / 0.9556 GB, free: 63.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009631/1.938, allocations: 2.329 MB / 0.9579 GB, free: 62.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.591e-05/1.938, allocations: 3.625 kB / 0.9579 GB, free: 62.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0158/1.954, allocations: 3.55 MB / 0.9614 GB, free: 62.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008115/1.955, allocations: 3.492 MB / 0.9648 GB, free: 58.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.362e-05/1.955, allocations: 14.19 kB / 0.9648 GB, free: 58.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008459/1.963, allocations: 1.058 MB / 0.9658 GB, free: 58.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/1.966, allocations: 301.8 kB / 0.9661 GB, free: 58.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005766/1.971, allocations: 1.884 MB / 0.968 GB, free: 57.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00258/1.974, allocations: 63.45 kB / 0.968 GB, free: 57.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/1.974, allocations: 66.28 kB / 0.9681 GB, free: 57.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/1.974, allocations: 6.25 kB / 0.9681 GB, free: 57.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01659/1.991, allocations: 3.249 MB / 0.9713 GB, free: 56.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.463e-05/1.991, allocations: 9.281 kB / 0.9713 GB, free: 56.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00781/1.999, allocations: 1.011 MB / 0.9723 GB, free: 56.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/2.001, allocations: 303 kB / 0.9725 GB, free: 56.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003906/2.005, allocations: 1.626 MB / 0.9741 GB, free: 54.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/2.007, allocations: 61.3 kB / 0.9742 GB, free: 54.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002107/2.007, allocations: 69.56 kB / 0.9743 GB, free: 54.54 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.0005305/2.008, allocations: 140.5 kB / 0.9744 GB, free: 54.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003261/2.008, allocations: 132.3 kB / 0.9745 GB, free: 54.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007373/2.015, allocations: 2.139 MB / 0.9766 GB, free: 52.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/2.015, allocations: 12 kB / 0.9766 GB, free: 52.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/2.015, allocations: 4 kB / 0.9766 GB, free: 52.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/2.015, allocations: 13.03 kB / 0.9766 GB, free: 52.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008989/2.024, allocations: 3.446 MB / 0.98 GB, free: 49.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/2.024, allocations: 0 / 0.98 GB, free: 49.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/2.026, allocations: 195 kB / 0.9802 GB, free: 49.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003534/2.029, allocations: 0.8009 MB / 0.981 GB, free: 48.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/2.029, allocations: 25.64 kB / 0.981 GB, free: 48.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004241/2.034, allocations: 1.873 MB / 0.9828 GB, free: 46.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/2.034, allocations: 0 / 0.9828 GB, free: 46.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007482/2.041, allocations: 2.871 MB / 0.9856 GB, free: 43.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/2.042, allocations: 379.2 kB / 0.986 GB, free: 43.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/2.043, allocations: 4 kB / 0.986 GB, free: 43.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/2.044, allocations: 59.84 kB / 0.986 GB, free: 43.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/2.044, allocations: 100.8 kB / 0.9861 GB, free: 42.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/2.045, allocations: 51.97 kB / 0.9862 GB, free: 42.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001125/2.046, allocations: 0.6006 MB / 0.9868 GB, free: 42.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/2.046, allocations: 4 kB / 0.9868 GB, free: 42.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004334/2.05, allocations: 1.163 MB / 0.9879 GB, free: 41.16 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.002445/2.052, allocations: 1.054 MB / 0.9889 GB, free: 40.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004286/2.057, allocations: 2.489 MB / 0.9914 GB, free: 37.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/2.057, allocations: 0 / 0.9914 GB, free: 37.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/2.058, allocations: 0.7895 MB / 0.9921 GB, free: 36.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002666/2.061, allocations: 0.5261 MB / 0.9927 GB, free: 36.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/2.065, allocations: 2.333 MB / 0.9949 GB, free: 34.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/2.065, allocations: 1.316 MB / 0.9962 GB, free: 32.74 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001975/2.067, allocations: 0.5789 MB / 0.9968 GB, free: 32.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/2.068, allocations: 111.4 kB / 0.9969 GB, free: 32.08 MB / 426.7 MB Notification: Performance of SimCode: time 7.52e-07/2.068, allocations: 0 / 0.9969 GB, free: 32.08 MB / 426.7 MB Notification: Performance of Templates: time 0.3232/2.391, allocations: 37.99 MB / 1.034 GB, free: 67.59 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