Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 176.4 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008472/0.0008472, allocations: 98.84 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002911, allocations: 11.94 kB / 352.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2419, allocations: 50.41 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7438/0.9858, allocations: 321.9 MB / 0.7076 GB, free: 161.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.9862, allocations: 82.75 kB / 0.7077 GB, free: 161.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8549/1.841, allocations: 273.7 MB / 0.975 GB, free: 68.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.603e-06/1.841, allocations: 0 / 0.975 GB, free: 68.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001948/1.841, allocations: 39.94 kB / 0.975 GB, free: 68.67 MB / 458.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.006906/1.848, allocations: 1.977 MB / 0.977 GB, free: 66.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.848, allocations: 8.031 kB / 0.977 GB, free: 66.66 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/1.849, allocations: 175 kB / 0.9772 GB, free: 66.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00292/1.852, allocations: 1.164 MB / 0.9783 GB, free: 65.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/1.853, allocations: 174.9 kB / 0.9785 GB, free: 65.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004759/1.853, allocations: 107.3 kB / 0.9786 GB, free: 65.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0035/1.857, allocations: 1.766 MB / 0.9803 GB, free: 63.22 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/1.857, allocations: 7.906 kB / 0.9803 GB, free: 63.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/1.857, allocations: 39.5 kB / 0.9803 GB, free: 63.18 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001508/1.857, allocations: 113.9 kB / 0.9804 GB, free: 63.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002899/1.86, allocations: 1.772 MB / 0.9822 GB, free: 61.29 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/1.871, allocations: 6.318 MB / 0.9883 GB, free: 54.76 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/1.872, allocations: 1.186 MB / 0.9895 GB, free: 53.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009506/1.873, allocations: 0.7159 MB / 0.9902 GB, free: 52.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005195/1.879, allocations: 4.125 MB / 0.9942 GB, free: 48.35 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.182e-05/1.879, allocations: 51.56 kB / 0.9943 GB, free: 48.29 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001111/1.88, allocations: 214.5 kB / 0.9945 GB, free: 48.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 6.993e-06/1.88, allocations: 0 / 0.9945 GB, free: 48.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01631/1.896, allocations: 5.47 MB / 0.9998 GB, free: 42.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/1.896, allocations: 141.5 kB / 1 GB, free: 42.39 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/1.898, allocations: 1.242 MB / 1.001 GB, free: 41.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001555/1.898, allocations: 49.7 kB / 1.001 GB, free: 41.08 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004625/1.899, allocations: 0.5973 MB / 1.002 GB, free: 40.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003275/1.899, allocations: 390 kB / 1.002 GB, free: 40.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/1.899, allocations: 32 kB / 1.002 GB, free: 40.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/1.9, allocations: 361.9 kB / 1.003 GB, free: 39.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/1.901, allocations: 0.6324 MB / 1.003 GB, free: 39.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/1.902, allocations: 0.9743 MB / 1.004 GB, free: 37.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002317/1.904, allocations: 1.596 MB / 1.006 GB, free: 36.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/1.904, allocations: 0 / 1.006 GB, free: 36.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004117/1.908, allocations: 2.116 MB / 1.008 GB, free: 34.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002959/1.909, allocations: 360.1 kB / 1.008 GB, free: 33.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/1.909, allocations: 12 kB / 1.008 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006288/1.915, allocations: 1.214 MB / 1.009 GB, free: 32.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/1.916, allocations: 291.5 kB / 1.01 GB, free: 32.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/1.918, allocations: 1.533 MB / 1.011 GB, free: 30.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/1.92, allocations: 91.78 kB / 1.011 GB, free: 30.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002723/1.921, allocations: 71.97 kB / 1.011 GB, free: 30.42 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/1.921, allocations: 4 kB / 1.011 GB, free: 30.42 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003192/1.924, allocations: 1.883 MB / 1.013 GB, free: 28.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/1.924, allocations: 11.94 kB / 1.013 GB, free: 28.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005525/1.929, allocations: 1.067 MB / 1.014 GB, free: 27.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/1.931, allocations: 295.6 kB / 1.014 GB, free: 27.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/1.932, allocations: 1.373 MB / 1.016 GB, free: 25.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/1.934, allocations: 83.8 kB / 1.016 GB, free: 25.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002565/1.934, allocations: 67.97 kB / 1.016 GB, free: 25.62 MB / 458.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.001026/1.935, allocations: 464.6 kB / 1.016 GB, free: 25.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/1.936, allocations: 146.2 kB / 1.016 GB, free: 25.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003813/1.94, allocations: 2.018 MB / 1.018 GB, free: 22.99 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/1.94, allocations: 12 kB / 1.018 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/1.94, allocations: 0 / 1.018 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/1.94, allocations: 3.984 kB / 1.018 GB, free: 22.97 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005377/1.945, allocations: 3.432 MB / 1.022 GB, free: 19.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/1.945, allocations: 4 kB / 1.022 GB, free: 19.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000921/1.946, allocations: 195.7 kB / 1.022 GB, free: 19.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003421/1.95, allocations: 0.9573 MB / 1.023 GB, free: 18.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/1.95, allocations: 43.84 kB / 1.023 GB, free: 18.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/1.952, allocations: 1.557 MB / 1.024 GB, free: 16.74 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.952, allocations: 0 / 1.024 GB, free: 16.74 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003888/1.955, allocations: 2.751 MB / 1.027 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000902/1.956, allocations: 395 kB / 1.028 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003933/1.957, allocations: 28 kB / 1.028 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/1.958, allocations: 83.88 kB / 1.028 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/1.958, allocations: 101.2 kB / 1.028 GB, free: 13.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.958, allocations: 47.97 kB / 1.028 GB, free: 13.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001335/1.96, allocations: 0.8402 MB / 1.029 GB, free: 12.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.96, allocations: 0 / 1.029 GB, free: 12.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00399/1.964, allocations: 1.253 MB / 1.03 GB, free: 11.21 MB / 458.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.003092/1.967, allocations: 1.068 MB / 1.031 GB, free: 10.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005615/1.972, allocations: 2.617 MB / 1.033 GB, free: 7.629 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.973, allocations: 0 / 1.033 GB, free: 7.629 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/1.974, allocations: 0.8365 MB / 1.034 GB, free: 6.793 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003553/1.978, allocations: 0.6001 MB / 1.035 GB, free: 6.207 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005826/1.984, allocations: 3.533 MB / 1.038 GB, free: 2.672 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008524/1.984, allocations: 1.296 MB / 1.04 GB, free: 1.352 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002236/1.987, allocations: 0.5557 MB / 1.04 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004138/1.987, allocations: 131.4 kB / 1.04 GB, free: 0.668 MB / 458.7 MB Notification: Performance of SimCode: time 8.41e-07/1.987, allocations: 0 / 1.04 GB, free: 0.668 MB / 458.7 MB Notification: Performance of Templates: time 0.311/2.298, allocations: 41.45 MB / 1.081 GB, free: 74.62 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches