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.001067/0.001067, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009181/0.0009181, allocations: 90.67 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002676/0.0002681, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3378, allocations: 47.56 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9296/1.267, allocations: 321.2 MB / 0.6806 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004326/1.268, allocations: 80.83 kB / 0.6807 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8887/2.157, allocations: 270.5 MB / 0.9448 GB, free: 28.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.823e-06/2.157, allocations: 0 / 0.9448 GB, free: 28.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001191/2.157, allocations: 39.92 kB / 0.9449 GB, free: 28.58 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.006459/2.163, allocations: 1.994 MB / 0.9468 GB, free: 26.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/2.163, allocations: 8.031 kB / 0.9468 GB, free: 26.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006023/2.164, allocations: 178.1 kB / 0.947 GB, free: 26.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00243/2.166, allocations: 1.132 MB / 0.9481 GB, free: 25.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/2.167, allocations: 179 kB / 0.9483 GB, free: 24.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001917/2.167, allocations: 104 kB / 0.9484 GB, free: 24.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/2.169, allocations: 1.756 MB / 0.9501 GB, free: 23.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/2.17, allocations: 3.906 kB / 0.9501 GB, free: 23.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001489/2.17, allocations: 47.92 kB / 0.9501 GB, free: 23.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001376/2.17, allocations: 113.9 kB / 0.9502 GB, free: 22.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002423/2.172, allocations: 1.772 MB / 0.952 GB, free: 21.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/2.182, allocations: 6.37 MB / 0.9582 GB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/2.184, allocations: 1.172 MB / 0.9593 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005177/2.189, allocations: 4.158 MB / 0.9634 GB, free: 8.711 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/2.189, allocations: 47.56 kB / 0.9634 GB, free: 8.656 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009754/2.19, allocations: 218.5 kB / 0.9637 GB, free: 8.441 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 3.417e-06/2.19, allocations: 0 / 0.9637 GB, free: 8.441 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01642/2.207, allocations: 5.37 MB / 0.9689 GB, free: 3.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/2.207, allocations: 141.5 kB / 0.969 GB, free: 2.848 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/2.208, allocations: 1.102 MB / 0.9701 GB, free: 1.738 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/2.208, allocations: 57.64 kB / 0.9702 GB, free: 1.676 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003578/2.209, allocations: 0.5937 MB / 0.9707 GB, free: 1.074 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002981/2.209, allocations: 394.4 kB / 0.9711 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.986e-05/2.209, allocations: 24 kB / 0.9711 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/2.209, allocations: 361.9 kB / 0.9715 GB, free: 308 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3618/2.571, allocations: 0.6327 MB / 0.9721 GB, free: 59.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/2.572, allocations: 0.9699 MB / 0.9731 GB, free: 59.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/2.574, allocations: 0.7522 MB / 0.9738 GB, free: 59.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/2.574, allocations: 2.438 kB / 0.9738 GB, free: 59.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003638/2.577, allocations: 2.106 MB / 0.9758 GB, free: 59.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007344/2.578, allocations: 3.516 MB / 0.9793 GB, free: 55.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/2.578, allocations: 7.219 kB / 0.9793 GB, free: 55.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006987/2.585, allocations: 1.223 MB / 0.9805 GB, free: 55.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/2.586, allocations: 299.6 kB / 0.9808 GB, free: 55.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/2.589, allocations: 1.52 MB / 0.9823 GB, free: 55.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/2.591, allocations: 90.67 kB / 0.9823 GB, free: 55.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/2.591, allocations: 70.22 kB / 0.9824 GB, free: 55.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/2.591, allocations: 7.859 kB / 0.9824 GB, free: 55.21 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003436/2.594, allocations: 1.891 MB / 0.9843 GB, free: 55.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/2.594, allocations: 11 kB / 0.9843 GB, free: 55.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00629/2.601, allocations: 1.056 MB / 0.9853 GB, free: 55.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001716/2.603, allocations: 305.3 kB / 0.9856 GB, free: 55.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/2.605, allocations: 1.37 MB / 0.9869 GB, free: 54.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/2.606, allocations: 83.52 kB / 0.987 GB, free: 54.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/2.607, allocations: 69.81 kB / 0.9871 GB, free: 54.64 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 () * Number of clocked 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.00121/2.608, allocations: 463.7 kB / 0.9875 GB, free: 54.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/2.608, allocations: 145.6 kB / 0.9877 GB, free: 54.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/2.613, allocations: 2.021 MB / 0.9896 GB, free: 54.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.547e-05/2.613, allocations: 12.22 kB / 0.9896 GB, free: 54.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/2.613, allocations: 1.031 kB / 0.9896 GB, free: 54.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/2.613, allocations: 7.641 kB / 0.9897 GB, free: 54.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008141/2.621, allocations: 3.432 MB / 0.993 GB, free: 54.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/2.621, allocations: 2.375 kB / 0.993 GB, free: 54.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/2.622, allocations: 197.1 kB / 0.9932 GB, free: 54.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004227/2.627, allocations: 0.956 MB / 0.9941 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/2.627, allocations: 31.47 kB / 0.9942 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/2.629, allocations: 1.568 MB / 0.9957 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.629, allocations: 0 / 0.9957 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/2.635, allocations: 2.758 MB / 0.9984 GB, free: 53.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/2.636, allocations: 407.1 kB / 0.9988 GB, free: 53.03 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000695/2.637, allocations: 28.09 kB / 0.9988 GB, free: 53.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/2.639, allocations: 85.03 kB / 0.9989 GB, free: 53.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003057/2.639, allocations: 101.4 kB / 0.999 GB, free: 53.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/2.639, allocations: 49.17 kB / 0.999 GB, free: 53.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0019/2.641, allocations: 0.8364 MB / 0.9998 GB, free: 52.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/2.641, allocations: 0 / 0.9998 GB, free: 52.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005653/2.647, allocations: 1.253 MB / 1.001 GB, free: 52.91 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 () * Number of clocked 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.00444/2.651, allocations: 1.069 MB / 1.002 GB, free: 52.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007726/2.659, allocations: 2.614 MB / 1.005 GB, free: 52.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/2.659, allocations: 3.906 kB / 1.005 GB, free: 52.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002103/2.661, allocations: 0.8376 MB / 1.005 GB, free: 52.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003957/2.665, allocations: 0.5957 MB / 1.006 GB, free: 52.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008479/2.674, allocations: 3.514 MB / 1.009 GB, free: 51.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009308/2.675, allocations: 1.324 MB / 1.011 GB, free: 50.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002545/2.677, allocations: 0.5538 MB / 1.011 GB, free: 50.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003694/2.678, allocations: 134.6 kB / 1.011 GB, free: 50.75 MB / 426.7 MB Notification: Performance of SimCode: time 3.065e-06/2.678, allocations: 0 / 1.011 GB, free: 50.75 MB / 426.7 MB Notification: Performance of Templates: time 0.06639/2.744, allocations: 40.45 MB / 1.051 GB, free: 48.47 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