Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001553/0.001552, allocations: 186.3 kB / 16.41 MB, free: 5.727 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.899/1.899, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001164/0.001163, allocations: 85.31 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003992, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3234, allocations: 47.56 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.024/1.347, allocations: 321.2 MB / 0.6794 GB, free: 107.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/1.348, allocations: 80.95 kB / 0.6795 GB, free: 107.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.239/2.587, allocations: 270.5 MB / 0.9436 GB, free: 28.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.455e-06/2.587, allocations: 4 kB / 0.9436 GB, free: 28.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000155/2.587, allocations: 39.88 kB / 0.9436 GB, free: 28.74 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.00903/2.596, allocations: 1.994 MB / 0.9456 GB, free: 26.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/2.596, allocations: 11.97 kB / 0.9456 GB, free: 26.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001633/2.598, allocations: 174.1 kB / 0.9458 GB, free: 26.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004324/2.602, allocations: 1.12 MB / 0.9469 GB, free: 25.35 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/2.602, allocations: 175.1 kB / 0.947 GB, free: 25.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004246/2.603, allocations: 103.9 kB / 0.9471 GB, free: 25.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00461/2.607, allocations: 1.756 MB / 0.9488 GB, free: 23.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.256e-05/2.608, allocations: 8 kB / 0.9489 GB, free: 23.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002395/2.608, allocations: 47.91 kB / 0.9489 GB, free: 23.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002324/2.608, allocations: 109.9 kB / 0.949 GB, free: 23.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004746/2.613, allocations: 1.776 MB / 0.9507 GB, free: 21.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01819/2.631, allocations: 6.377 MB / 0.957 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/2.634, allocations: 1.176 MB / 0.9581 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008457/2.642, allocations: 4.15 MB / 0.9622 GB, free: 8.879 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/2.642, allocations: 43.56 kB / 0.9622 GB, free: 8.828 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001675/2.644, allocations: 214.5 kB / 0.9624 GB, free: 8.617 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 4.268e-06/2.644, allocations: 4 kB / 0.9624 GB, free: 8.613 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.03109/2.675, allocations: 5.362 MB / 0.9677 GB, free: 3.195 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/2.675, allocations: 141.5 kB / 0.9678 GB, free: 3.023 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/2.678, allocations: 1.11 MB / 0.9689 GB, free: 1.906 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004169/2.678, allocations: 49.7 kB / 0.9689 GB, free: 1.852 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000467/2.679, allocations: 0.572 MB / 0.9695 GB, free: 1.273 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004863/2.679, allocations: 394.4 kB / 0.9699 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/2.679, allocations: 24 kB / 0.9699 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/2.68, allocations: 370.8 kB / 0.9702 GB, free: 500 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3201/3, allocations: 0.6352 MB / 0.9709 GB, free: 59.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/3.002, allocations: 0.9656 MB / 0.9718 GB, free: 59.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001971/3.004, allocations: 0.7557 MB / 0.9725 GB, free: 59.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/3.004, allocations: 3.594 kB / 0.9725 GB, free: 59.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005469/3.01, allocations: 2.015 MB / 0.9745 GB, free: 59.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007252/3.01, allocations: 3.488 MB / 0.9779 GB, free: 55.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/3.01, allocations: 9.656 kB / 0.9779 GB, free: 55.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01278/3.023, allocations: 1.227 MB / 0.9791 GB, free: 55.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/3.026, allocations: 293.7 kB / 0.9794 GB, free: 55.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003588/3.029, allocations: 1.532 MB / 0.9809 GB, free: 55.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002438/3.032, allocations: 78.92 kB / 0.981 GB, free: 55.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002121/3.032, allocations: 75.64 kB / 0.981 GB, free: 55.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/3.032, allocations: 3.938 kB / 0.981 GB, free: 55.23 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005173/3.037, allocations: 1.888 MB / 0.9829 GB, free: 55.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/3.037, allocations: 10.03 kB / 0.9829 GB, free: 55.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01171/3.049, allocations: 1.038 MB / 0.9839 GB, free: 55.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/3.051, allocations: 307.5 kB / 0.9842 GB, free: 55.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/3.055, allocations: 1.343 MB / 0.9855 GB, free: 54.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/3.057, allocations: 85.62 kB / 0.9856 GB, free: 54.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/3.057, allocations: 68.95 kB / 0.9857 GB, free: 54.66 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.001169/3.058, allocations: 472.1 kB / 0.9861 GB, free: 54.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004942/3.059, allocations: 147.7 kB / 0.9863 GB, free: 54.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007013/3.066, allocations: 2.018 MB / 0.9882 GB, free: 54.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.667e-05/3.066, allocations: 14.53 kB / 0.9882 GB, free: 54.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/3.066, allocations: 1.25 kB / 0.9882 GB, free: 54.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.183e-05/3.066, allocations: 7.125 kB / 0.9882 GB, free: 54.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/3.076, allocations: 3.427 MB / 0.9916 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/3.076, allocations: 0.8125 kB / 0.9916 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/3.078, allocations: 193.8 kB / 0.9918 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006883/3.085, allocations: 0.9549 MB / 0.9927 GB, free: 54.01 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003336/3.085, allocations: 36.47 kB / 0.9927 GB, free: 54.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003558/3.089, allocations: 1.566 MB / 0.9943 GB, free: 53.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/3.089, allocations: 3.188 kB / 0.9943 GB, free: 53.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007416/3.096, allocations: 2.754 MB / 0.997 GB, free: 53.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/3.097, allocations: 404.2 kB / 0.9974 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003537/3.098, allocations: 23.97 kB / 0.9974 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/3.1, allocations: 88.86 kB / 0.9975 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/3.1, allocations: 101.6 kB / 0.9976 GB, free: 53.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/3.1, allocations: 46.61 kB / 0.9976 GB, free: 53.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001729/3.102, allocations: 0.8419 MB / 0.9984 GB, free: 52.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.332e-06/3.102, allocations: 0 / 0.9984 GB, free: 52.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005052/3.107, allocations: 1.246 MB / 0.9996 GB, free: 52.96 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.003535/3.111, allocations: 1.072 MB / 1.001 GB, free: 52.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009645/3.12, allocations: 2.598 MB / 1.003 GB, free: 52.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/3.12, allocations: 0 / 1.003 GB, free: 52.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003115/3.124, allocations: 0.8264 MB / 1.004 GB, free: 52.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005105/3.129, allocations: 0.6064 MB / 1.005 GB, free: 52.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009175/3.138, allocations: 3.586 MB / 1.008 GB, free: 51.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009442/3.139, allocations: 1.317 MB / 1.009 GB, free: 50.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009387/3.14, allocations: 147.3 kB / 1.01 GB, free: 50.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.273e-06/3.14, allocations: 0 / 1.01 GB, free: 50.8 MB / 426.7 MB Notification: Performance of Templates: time 0.07117/3.211, allocations: 35.59 MB / 1.044 GB, free: 48.65 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches