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.00123/0.00123, allocations: 183.1 kB / 18.04 MB, free: 3.777 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.534/1.534, allocations: 205.4 MB / 224.2 MB, free: 9.016 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.0007801/0.0007803, allocations: 92.95 kB / 272.5 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 8 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2753, allocations: 47.58 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.764/1.039, allocations: 321.3 MB / 0.682 GB, free: 144.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/1.04, allocations: 84.73 kB / 0.6821 GB, free: 144.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8208/1.861, allocations: 268.8 MB / 0.9446 GB, free: 40.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.861, allocations: 0 / 0.9446 GB, free: 40.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001147/1.861, allocations: 43.14 kB / 0.9446 GB, free: 40.63 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.005783/1.867, allocations: 1.974 MB / 0.9465 GB, free: 38.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/1.867, allocations: 8.031 kB / 0.9465 GB, free: 38.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000697/1.867, allocations: 179 kB / 0.9467 GB, free: 38.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/1.87, allocations: 1.156 MB / 0.9478 GB, free: 37.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/1.87, allocations: 180.1 kB / 0.948 GB, free: 37.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001805/1.87, allocations: 103.5 kB / 0.9481 GB, free: 36.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00264/1.872, allocations: 1.769 MB / 0.9498 GB, free: 35.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/1.873, allocations: 0 / 0.9498 GB, free: 35.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/1.873, allocations: 43.97 kB / 0.9499 GB, free: 35.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/1.873, allocations: 125.9 kB / 0.95 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002607/1.875, allocations: 1.768 MB / 0.9517 GB, free: 33.22 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01108/1.887, allocations: 6.317 MB / 0.9579 GB, free: 26.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/1.888, allocations: 1.169 MB / 0.959 GB, free: 25.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008857/1.889, allocations: 0.7143 MB / 0.9597 GB, free: 24.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005007/1.894, allocations: 4.134 MB / 0.9638 GB, free: 20.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/1.894, allocations: 47.5 kB / 0.9638 GB, free: 20.13 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009558/1.895, allocations: 210.6 kB / 0.964 GB, free: 19.92 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 3.727e-06/1.895, allocations: 0 / 0.964 GB, free: 19.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01557/1.911, allocations: 5.469 MB / 0.9693 GB, free: 14.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.561e-05/1.911, allocations: 145.5 kB / 0.9695 GB, free: 14.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/1.913, allocations: 1.242 MB / 0.9707 GB, free: 12.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/1.913, allocations: 49.7 kB / 0.9707 GB, free: 12.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003896/1.913, allocations: 0.6015 MB / 0.9713 GB, free: 12.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004478/1.914, allocations: 390.4 kB / 0.9717 GB, free: 11.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.183e-05/1.914, allocations: 24 kB / 0.9717 GB, free: 11.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/1.914, allocations: 361.9 kB / 0.9721 GB, free: 11.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009436/1.915, allocations: 0.6363 MB / 0.9727 GB, free: 10.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/1.916, allocations: 0.9743 MB / 0.9736 GB, free: 9.785 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/1.918, allocations: 1.6 MB / 0.9752 GB, free: 8.059 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/1.918, allocations: 0 / 0.9752 GB, free: 8.059 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003134/1.921, allocations: 2.109 MB / 0.9773 GB, free: 5.938 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/1.921, allocations: 357 kB / 0.9776 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/1.921, allocations: 11.98 kB / 0.9776 GB, free: 5.457 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006377/1.927, allocations: 1.223 MB / 0.9788 GB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/1.929, allocations: 299.5 kB / 0.9791 GB, free: 3.938 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/1.931, allocations: 1.524 MB / 0.9806 GB, free: 2.383 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/1.932, allocations: 87.78 kB / 0.9807 GB, free: 2.297 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/1.932, allocations: 67.97 kB / 0.9807 GB, free: 2.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/1.932, allocations: 7.938 kB / 0.9807 GB, free: 2.223 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002819/1.935, allocations: 1.882 MB / 0.9826 GB, free: 344 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/1.935, allocations: 8 kB / 0.9826 GB, free: 336 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2639/2.199, allocations: 1.065 MB / 0.9836 GB, free: 59.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/2.201, allocations: 300 kB / 0.9839 GB, free: 59.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/2.203, allocations: 1.365 MB / 0.9852 GB, free: 58.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/2.204, allocations: 92.64 kB / 0.9853 GB, free: 58.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/2.205, allocations: 70.22 kB / 0.9854 GB, free: 58.79 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.001115/2.206, allocations: 459 kB / 0.9858 GB, free: 58.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003086/2.206, allocations: 151 kB / 0.986 GB, free: 58.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004064/2.21, allocations: 2.019 MB / 0.988 GB, free: 58.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/2.21, allocations: 15.78 kB / 0.988 GB, free: 58.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/2.21, allocations: 2.812 kB / 0.988 GB, free: 58.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/2.21, allocations: 11.36 kB / 0.988 GB, free: 58.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005137/2.215, allocations: 3.413 MB / 0.9913 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/2.215, allocations: 3.609 kB / 0.9913 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008511/2.216, allocations: 193 kB / 0.9915 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003327/2.22, allocations: 0.9506 MB / 0.9924 GB, free: 58.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/2.22, allocations: 36.11 kB / 0.9925 GB, free: 58.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/2.221, allocations: 1.565 MB / 0.994 GB, free: 57.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/2.221, allocations: 0 / 0.994 GB, free: 57.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003929/2.225, allocations: 2.751 MB / 0.9967 GB, free: 57.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008627/2.226, allocations: 404 kB / 0.9971 GB, free: 57.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000392/2.227, allocations: 24.44 kB / 0.9971 GB, free: 57.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/2.228, allocations: 85.64 kB / 0.9972 GB, free: 57.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/2.228, allocations: 102.8 kB / 0.9973 GB, free: 57.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/2.228, allocations: 49.47 kB / 0.9973 GB, free: 57.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001419/2.23, allocations: 0.8399 MB / 0.9981 GB, free: 57.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/2.23, allocations: 0 / 0.9981 GB, free: 57.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003965/2.234, allocations: 1.25 MB / 0.9994 GB, free: 57.21 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.002645/2.236, allocations: 1.062 MB / 1 GB, free: 57.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006312/2.243, allocations: 2.628 MB / 1.003 GB, free: 57.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/2.243, allocations: 2.078 kB / 1.003 GB, free: 57.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/2.245, allocations: 0.8304 MB / 1.004 GB, free: 57.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004256/2.249, allocations: 0.6066 MB / 1.004 GB, free: 57.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008322/2.257, allocations: 3.526 MB / 1.008 GB, free: 55.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/2.259, allocations: 1.291 MB / 1.009 GB, free: 55.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003055/2.262, allocations: 0.5656 MB / 1.01 GB, free: 55.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/2.262, allocations: 125.9 kB / 1.01 GB, free: 55.06 MB / 426.7 MB Notification: Performance of SimCode: time 1.713e-06/2.262, allocations: 1.812 kB / 1.01 GB, free: 55.06 MB / 426.7 MB Notification: Performance of Templates: time 0.05938/2.322, allocations: 41.47 MB / 1.05 GB, free: 52.82 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/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_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches