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.001497/0.001497, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.183/2.183, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 88.19 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.088e-05/2.112e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3399, allocations: 47.57 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9621/1.302, allocations: 320.4 MB / 0.6667 GB, free: 117.9 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/1.302, allocations: 76.27 kB / 0.6668 GB, free: 117.9 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.217/2.52, allocations: 267.8 MB / 0.9284 GB, free: 65.13 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.803e-06/2.52, allocations: 0 / 0.9284 GB, free: 65.13 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001398/2.52, allocations: 42.98 kB / 0.9284 GB, free: 65.09 MB / 427.1 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.007122/2.527, allocations: 1.806 MB / 0.9302 GB, free: 63.26 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/2.527, allocations: 8.031 kB / 0.9302 GB, free: 63.25 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001304/2.529, allocations: 178.1 kB / 0.9304 GB, free: 63.07 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004024/2.533, allocations: 1.123 MB / 0.9315 GB, free: 61.93 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/2.533, allocations: 143 kB / 0.9316 GB, free: 61.78 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003181/2.533, allocations: 56 kB / 0.9317 GB, free: 61.72 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00375/2.537, allocations: 1.596 MB / 0.9332 GB, free: 60.12 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003654/2.541, allocations: 1.602 MB / 0.9348 GB, free: 58.47 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/2.541, allocations: 0 / 0.9348 GB, free: 58.47 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002125/2.541, allocations: 4 kB / 0.9348 GB, free: 58.46 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002356/2.541, allocations: 109.9 kB / 0.9349 GB, free: 58.36 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01707/2.558, allocations: 6.123 MB / 0.9409 GB, free: 52.06 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/2.561, allocations: 1.115 MB / 0.942 GB, free: 50.93 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/2.562, allocations: 0.6876 MB / 0.9426 GB, free: 50.24 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009502/2.571, allocations: 4.186 MB / 0.9467 GB, free: 45.68 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.912e-05/2.572, allocations: 51.34 kB / 0.9468 GB, free: 45.62 MB / 427.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001931/2.574, allocations: 169.8 kB / 0.9469 GB, free: 45.45 MB / 427.1 MB Notification: Performance of pre-optimization done (n=97): time 8.085e-06/2.574, allocations: 0 / 0.9469 GB, free: 45.45 MB / 427.1 MB Notification: Performance of matching and sorting (n=112): time 0.01991/2.594, allocations: 4.108 MB / 0.9509 GB, free: 41.3 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/2.594, allocations: 141.8 kB / 0.9511 GB, free: 41.13 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001527/2.595, allocations: 0.8158 MB / 0.9519 GB, free: 40.3 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003146/2.595, allocations: 25.7 kB / 0.9519 GB, free: 40.27 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/2.596, allocations: 0.6106 MB / 0.9525 GB, free: 39.65 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004149/2.596, allocations: 370.5 kB / 0.9528 GB, free: 39.29 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/2.596, allocations: 0 / 0.9528 GB, free: 39.29 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/2.597, allocations: 370.7 kB / 0.9532 GB, free: 38.91 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/2.598, allocations: 0.6091 MB / 0.9538 GB, free: 38.3 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/2.6, allocations: 0.9237 MB / 0.9547 GB, free: 37.25 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01823/2.618, allocations: 2.323 MB / 0.957 GB, free: 34.92 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.127e-05/2.618, allocations: 4 kB / 0.957 GB, free: 34.92 MB / 427.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.02203/2.64, allocations: 3.486 MB / 0.9604 GB, free: 31.42 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007384/2.641, allocations: 3.488 MB / 0.9638 GB, free: 27.66 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/2.641, allocations: 8 kB / 0.9638 GB, free: 27.66 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01139/2.652, allocations: 1.069 MB / 0.9648 GB, free: 26.59 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/2.655, allocations: 291.6 kB / 0.9651 GB, free: 26.31 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006334/2.661, allocations: 1.892 MB / 0.967 GB, free: 24.39 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002676/2.664, allocations: 59.98 kB / 0.967 GB, free: 24.33 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005191/2.664, allocations: 75.95 kB / 0.9671 GB, free: 24.26 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/2.664, allocations: 3.938 kB / 0.9671 GB, free: 24.25 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02224/2.687, allocations: 3.253 MB / 0.9703 GB, free: 21 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.774e-05/2.687, allocations: 12 kB / 0.9703 GB, free: 20.99 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01086/2.698, allocations: 0.9973 MB / 0.9712 GB, free: 20 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002437/2.7, allocations: 299.6 kB / 0.9715 GB, free: 19.71 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004992/2.705, allocations: 1.602 MB / 0.9731 GB, free: 18.08 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/2.707, allocations: 59.8 kB / 0.9732 GB, free: 18.02 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002765/2.708, allocations: 67.97 kB / 0.9732 GB, free: 17.95 MB / 427.1 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.000508/2.708, allocations: 144.5 kB / 0.9734 GB, free: 17.81 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005073/2.709, allocations: 134.3 kB / 0.9735 GB, free: 17.68 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009208/2.718, allocations: 2.138 MB / 0.9756 GB, free: 15.54 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.112e-05/2.718, allocations: 20 kB / 0.9756 GB, free: 15.52 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/2.718, allocations: 0 / 0.9756 GB, free: 15.52 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.335e-05/2.718, allocations: 7.969 kB / 0.9756 GB, free: 15.51 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/2.73, allocations: 3.44 MB / 0.979 GB, free: 12.05 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/2.73, allocations: 3.953 kB / 0.979 GB, free: 12.04 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/2.732, allocations: 187.8 kB / 0.9791 GB, free: 11.86 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005214/2.737, allocations: 0.8073 MB / 0.9799 GB, free: 11.06 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003481/2.737, allocations: 15.98 kB / 0.9799 GB, free: 11.04 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005644/2.743, allocations: 1.88 MB / 0.9818 GB, free: 9.133 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/2.743, allocations: 0 / 0.9818 GB, free: 9.133 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009165/2.752, allocations: 2.871 MB / 0.9846 GB, free: 6.242 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/2.753, allocations: 379.2 kB / 0.9849 GB, free: 5.852 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003375/2.754, allocations: 0 / 0.9849 GB, free: 5.852 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/2.756, allocations: 55.94 kB / 0.985 GB, free: 5.797 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003066/2.756, allocations: 101.2 kB / 0.9851 GB, free: 5.699 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/2.756, allocations: 51.95 kB / 0.9851 GB, free: 5.648 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.001089/2.757, allocations: 0.6006 MB / 0.9857 GB, free: 5.039 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.71e-07/2.757, allocations: 4 kB / 0.9857 GB, free: 5.035 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.004719/2.762, allocations: 1.163 MB / 0.9869 GB, free: 3.871 MB / 427.1 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.003457/2.766, allocations: 1.049 MB / 0.9879 GB, free: 2.895 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.008517/2.774, allocations: 2.432 MB / 0.9903 GB, free: 472 kB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/2.774, allocations: 6.062 kB / 0.9903 GB, free: 468 kB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2993/3.074, allocations: 0.7812 MB / 0.991 GB, free: 68.96 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004812/3.078, allocations: 0.526 MB / 0.9916 GB, free: 68.96 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006955/3.085, allocations: 2.391 MB / 0.9939 GB, free: 68.47 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008957/3.086, allocations: 1.318 MB / 0.9952 GB, free: 67.76 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008111/3.087, allocations: 131.2 kB / 0.9953 GB, free: 67.76 MB / 427.1 MB Notification: Performance of SimCode: time 1.062e-06/3.087, allocations: 2.312 kB / 0.9953 GB, free: 67.76 MB / 427.1 MB Notification: Performance of Templates: time 0.07379/3.161, allocations: 34.5 MB / 1.029 GB, free: 65.95 MB / 427.1 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