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.001352/0.001352, allocations: 179.6 kB / 16.38 MB, free: 5.766 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.391/1.391, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0008415/0.0008414, allocations: 99.52 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002197/0.0002197, allocations: 4 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2395, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8169/1.056, allocations: 321.7 MB / 0.7063 GB, free: 162 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/1.057, allocations: 85.89 kB / 0.7064 GB, free: 161.9 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8761/1.933, allocations: 275.4 MB / 0.9753 GB, free: 67.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.864e-06/1.933, allocations: 0 / 0.9753 GB, free: 67.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002026/1.933, allocations: 43.84 kB / 0.9753 GB, free: 67.52 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.006706/1.94, allocations: 1.991 MB / 0.9773 GB, free: 65.49 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/1.94, allocations: 15.97 kB / 0.9773 GB, free: 65.47 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006668/1.941, allocations: 178.1 kB / 0.9774 GB, free: 65.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/1.943, allocations: 1.131 MB / 0.9786 GB, free: 64.15 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/1.943, allocations: 174 kB / 0.9787 GB, free: 63.97 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/1.943, allocations: 99.81 kB / 0.9788 GB, free: 63.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/1.946, allocations: 1.766 MB / 0.9805 GB, free: 62.08 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/1.946, allocations: 0 / 0.9805 GB, free: 62.08 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/1.946, allocations: 47.73 kB / 0.9806 GB, free: 62.04 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001215/1.946, allocations: 109.9 kB / 0.9807 GB, free: 61.93 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002307/1.948, allocations: 1.772 MB / 0.9824 GB, free: 60.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009285/1.958, allocations: 6.384 MB / 0.9887 GB, free: 53.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/1.959, allocations: 1.166 MB / 0.9898 GB, free: 52.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004664/1.964, allocations: 4.164 MB / 0.9939 GB, free: 47.85 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/1.964, allocations: 47.56 kB / 0.9939 GB, free: 47.79 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009138/1.965, allocations: 206.7 kB / 0.9941 GB, free: 47.59 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 3.196e-06/1.965, allocations: 0 / 0.9941 GB, free: 47.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01635/1.981, allocations: 5.362 MB / 0.9993 GB, free: 42.17 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/1.981, allocations: 145.5 kB / 0.9995 GB, free: 42 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/1.983, allocations: 1.099 MB / 1.001 GB, free: 40.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/1.983, allocations: 49.7 kB / 1.001 GB, free: 40.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003699/1.983, allocations: 0.5974 MB / 1.001 GB, free: 40.24 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/1.984, allocations: 390.3 kB / 1.002 GB, free: 39.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/1.984, allocations: 28 kB / 1.002 GB, free: 39.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/1.984, allocations: 365.9 kB / 1.002 GB, free: 39.47 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009582/1.985, allocations: 0.6363 MB / 1.003 GB, free: 38.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/1.986, allocations: 0.9704 MB / 1.003 GB, free: 37.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/1.987, allocations: 0.7515 MB / 1.004 GB, free: 36.98 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/1.987, allocations: 8 kB / 1.004 GB, free: 36.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00334/1.99, allocations: 2.101 MB / 1.006 GB, free: 34.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007337/1.991, allocations: 3.52 MB / 1.01 GB, free: 31.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/1.991, allocations: 8 kB / 1.01 GB, free: 31.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007007/1.998, allocations: 1.218 MB / 1.011 GB, free: 29.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/2, allocations: 299.5 kB / 1.011 GB, free: 29.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/2.002, allocations: 1.537 MB / 1.013 GB, free: 28.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/2.004, allocations: 83.8 kB / 1.013 GB, free: 27.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003125/2.004, allocations: 71.95 kB / 1.013 GB, free: 27.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/2.004, allocations: 5.875 kB / 1.013 GB, free: 27.86 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003241/2.007, allocations: 1.884 MB / 1.015 GB, free: 25.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/2.008, allocations: 8 kB / 1.015 GB, free: 25.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007307/2.015, allocations: 1.068 MB / 1.016 GB, free: 24.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00191/2.017, allocations: 299.5 kB / 1.016 GB, free: 24.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002522/2.019, allocations: 1.374 MB / 1.017 GB, free: 23.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/2.022, allocations: 87.8 kB / 1.017 GB, free: 23.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003633/2.022, allocations: 71.95 kB / 1.018 GB, free: 23.06 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.001302/2.023, allocations: 456.6 kB / 1.018 GB, free: 22.61 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005856/2.024, allocations: 146.2 kB / 1.018 GB, free: 22.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005901/2.03, allocations: 2.03 MB / 1.02 GB, free: 20.42 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/2.03, allocations: 12 kB / 1.02 GB, free: 20.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/2.03, allocations: 0 / 1.02 GB, free: 20.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.872e-05/2.03, allocations: 7.969 kB / 1.02 GB, free: 20.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007784/2.038, allocations: 3.445 MB / 1.023 GB, free: 16.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/2.038, allocations: 0 / 1.023 GB, free: 16.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/2.039, allocations: 191.8 kB / 1.024 GB, free: 16.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004778/2.044, allocations: 0.9601 MB / 1.025 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001622/2.044, allocations: 27.98 kB / 1.025 GB, free: 15.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/2.047, allocations: 1.561 MB / 1.026 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/2.047, allocations: 7.953 kB / 1.026 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005763/2.052, allocations: 2.739 MB / 1.029 GB, free: 11.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/2.054, allocations: 410.9 kB / 1.029 GB, free: 10.97 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000547/2.054, allocations: 24 kB / 1.029 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001908/2.056, allocations: 91.83 kB / 1.029 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/2.057, allocations: 97.16 kB / 1.029 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/2.057, allocations: 51.97 kB / 1.029 GB, free: 10.71 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002034/2.059, allocations: 0.8362 MB / 1.03 GB, free: 9.875 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.059, allocations: 4 kB / 1.03 GB, free: 9.871 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006053/2.065, allocations: 1.249 MB / 1.032 GB, free: 8.621 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.004465/2.069, allocations: 1.071 MB / 1.033 GB, free: 7.641 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008684/2.078, allocations: 2.609 MB / 1.035 GB, free: 5.039 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/2.078, allocations: 4.188 kB / 1.035 GB, free: 5.035 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002671/2.081, allocations: 0.8356 MB / 1.036 GB, free: 4.203 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004734/2.086, allocations: 0.5915 MB / 1.037 GB, free: 3.625 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009139/2.095, allocations: 3.519 MB / 1.04 GB, free: 96 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2759/2.371, allocations: 1.319 MB / 1.041 GB, free: 76.26 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002548/2.373, allocations: 0.5607 MB / 1.042 GB, free: 76.24 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003553/2.374, allocations: 127.1 kB / 1.042 GB, free: 76.24 MB / 458.7 MB Notification: Performance of SimCode: time 7.52e-07/2.374, allocations: 0 / 1.042 GB, free: 76.24 MB / 458.7 MB Notification: Performance of Templates: time 0.06334/2.437, allocations: 40.47 MB / 1.081 GB, free: 74.84 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/jenkins/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