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.001513/0.001513, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.527/1.527, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0007431/0.0007433, allocations: 85.42 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003344, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2729, allocations: 47.57 MB / 375.7 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7416/1.014, allocations: 321.3 MB / 0.6807 GB, free: 143.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/1.015, allocations: 77.27 kB / 0.6808 GB, free: 143.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8633/1.878, allocations: 268.8 MB / 0.9433 GB, free: 39.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.298e-06/1.878, allocations: 0 / 0.9433 GB, free: 39.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002841/1.878, allocations: 39.92 kB / 0.9433 GB, free: 39.16 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.01066/1.889, allocations: 1.986 MB / 0.9452 GB, free: 37.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/1.889, allocations: 8.031 kB / 0.9453 GB, free: 37.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/1.891, allocations: 175 kB / 0.9454 GB, free: 36.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/1.894, allocations: 1.161 MB / 0.9466 GB, free: 35.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/1.895, allocations: 171.1 kB / 0.9467 GB, free: 35.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005796/1.895, allocations: 107.8 kB / 0.9468 GB, free: 35.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003939/1.899, allocations: 1.771 MB / 0.9486 GB, free: 33.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.237e-05/1.899, allocations: 8 kB / 0.9486 GB, free: 33.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002442/1.899, allocations: 39.97 kB / 0.9486 GB, free: 33.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001638/1.9, allocations: 109.9 kB / 0.9487 GB, free: 33.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003112/1.903, allocations: 1.772 MB / 0.9504 GB, free: 31.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/1.914, allocations: 6.327 MB / 0.9566 GB, free: 25.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/1.916, allocations: 1.173 MB / 0.9578 GB, free: 23.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/1.917, allocations: 0.7143 MB / 0.9585 GB, free: 23.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005473/1.922, allocations: 4.13 MB / 0.9625 GB, free: 18.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/1.922, allocations: 47.56 kB / 0.9625 GB, free: 18.58 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001135/1.924, allocations: 202.7 kB / 0.9627 GB, free: 18.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 6.352e-06/1.924, allocations: 7.938 kB / 0.9627 GB, free: 18.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.01735/1.941, allocations: 5.481 MB / 0.9681 GB, free: 12.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/1.941, allocations: 141.5 kB / 0.9682 GB, free: 12.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/1.943, allocations: 1.242 MB / 0.9694 GB, free: 11.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001459/1.943, allocations: 49.7 kB / 0.9695 GB, free: 11.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/1.943, allocations: 0.5975 MB / 0.9701 GB, free: 10.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003049/1.944, allocations: 390.4 kB / 0.9704 GB, free: 10.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/1.944, allocations: 28 kB / 0.9705 GB, free: 10.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/1.944, allocations: 361.9 kB / 0.9708 GB, free: 9.977 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009863/1.945, allocations: 0.6363 MB / 0.9714 GB, free: 9.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/1.946, allocations: 0.9743 MB / 0.9724 GB, free: 8.234 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00209/1.948, allocations: 1.596 MB / 0.9739 GB, free: 6.512 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/1.948, allocations: 0 / 0.9739 GB, free: 6.512 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003767/1.952, allocations: 2.113 MB / 0.976 GB, free: 4.387 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002814/1.952, allocations: 352.5 kB / 0.9763 GB, free: 3.918 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/1.952, allocations: 12 kB / 0.9764 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006644/1.959, allocations: 1.22 MB / 0.9775 GB, free: 2.684 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/1.96, allocations: 295.6 kB / 0.9778 GB, free: 2.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002486/1.963, allocations: 1.532 MB / 0.9793 GB, free: 0.832 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/1.965, allocations: 87.8 kB / 0.9794 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002646/1.965, allocations: 75.89 kB / 0.9795 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/1.965, allocations: 5.406 kB / 0.9795 GB, free: 0.668 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2979/2.263, allocations: 1.877 MB / 0.9813 GB, free: 58.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/2.263, allocations: 10.06 kB / 0.9813 GB, free: 58.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005821/2.269, allocations: 1.067 MB / 0.9824 GB, free: 58.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/2.27, allocations: 301 kB / 0.9827 GB, free: 58.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/2.272, allocations: 1.366 MB / 0.984 GB, free: 58.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/2.274, allocations: 85.34 kB / 0.9841 GB, free: 58.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/2.274, allocations: 73.3 kB / 0.9841 GB, free: 58.29 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.001112/2.275, allocations: 465.7 kB / 0.9846 GB, free: 58.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002827/2.275, allocations: 144.1 kB / 0.9847 GB, free: 58.11 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003911/2.279, allocations: 2.019 MB / 0.9867 GB, free: 58.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/2.279, allocations: 11.56 kB / 0.9867 GB, free: 58.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/2.279, allocations: 0 / 0.9867 GB, free: 58.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/2.279, allocations: 6.891 kB / 0.9867 GB, free: 58.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005047/2.284, allocations: 3.418 MB / 0.99 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/2.284, allocations: 0 / 0.99 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008161/2.285, allocations: 192.7 kB / 0.9902 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003313/2.288, allocations: 0.9496 MB / 0.9912 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.87e-05/2.288, allocations: 39.84 kB / 0.9912 GB, free: 57.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001825/2.29, allocations: 1.564 MB / 0.9927 GB, free: 57.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/2.29, allocations: 0 / 0.9927 GB, free: 57.13 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003766/2.294, allocations: 2.76 MB / 0.9954 GB, free: 56.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006968/2.295, allocations: 394.3 kB / 0.9958 GB, free: 56.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/2.295, allocations: 20.78 kB / 0.9958 GB, free: 56.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009613/2.296, allocations: 94.53 kB / 0.9959 GB, free: 56.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/2.296, allocations: 99.28 kB / 0.996 GB, free: 56.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/2.296, allocations: 47.66 kB / 0.996 GB, free: 56.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001079/2.297, allocations: 0.8363 MB / 0.9969 GB, free: 56.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/2.297, allocations: 0 / 0.9969 GB, free: 56.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004093/2.301, allocations: 1.253 MB / 0.9981 GB, free: 56.7 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.002217/2.304, allocations: 1.072 MB / 0.9991 GB, free: 56.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00539/2.309, allocations: 2.617 MB / 1.002 GB, free: 56.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/2.309, allocations: 6.453 kB / 1.002 GB, free: 56.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/2.311, allocations: 0.8257 MB / 1.003 GB, free: 56.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002936/2.314, allocations: 0.6155 MB / 1.003 GB, free: 56.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006445/2.32, allocations: 3.587 MB / 1.007 GB, free: 55.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/2.321, allocations: 1.286 MB / 1.008 GB, free: 54.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000546/2.322, allocations: 144.2 kB / 1.008 GB, free: 54.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/2.322, allocations: 0 / 1.008 GB, free: 54.54 MB / 426.7 MB Notification: Performance of Templates: time 0.05016/2.372, allocations: 35.62 MB / 1.043 GB, free: 52.23 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