Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00223/0.00223, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.944/1.944, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001154/0.001154, allocations: 99.56 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.0003697, allocations: 12 kB / 327 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3342, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.115/1.449, allocations: 409.9 MB / 0.7661 GB, free: 39.69 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/1.449, allocations: 91.33 kB / 0.7662 GB, free: 39.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062/2.512, allocations: 213.4 MB / 0.9746 GB, free: 3.961 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.745e-06/2.512, allocations: 0 / 0.9746 GB, free: 3.961 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001401/2.512, allocations: 28 kB / 0.9746 GB, free: 3.934 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008391/2.52, allocations: 1.951 MB / 0.9765 GB, free: 1.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/2.52, allocations: 8.031 kB / 0.9765 GB, free: 1.922 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001196/2.522, allocations: 166.2 kB / 0.9767 GB, free: 1.758 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003546/2.525, allocations: 0.9919 MB / 0.9777 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002303/2.525, allocations: 234.5 kB / 0.9779 GB, free: 472 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003944/2.526, allocations: 95.98 kB / 0.978 GB, free: 376 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3135/2.839, allocations: 1.799 MB / 0.9797 GB, free: 69.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.513e-05/2.839, allocations: 3.891 kB / 0.9797 GB, free: 69.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002644/2.84, allocations: 45.56 kB / 0.9798 GB, free: 69.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002129/2.84, allocations: 102.2 kB / 0.9799 GB, free: 69.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00563/2.846, allocations: 1.761 MB / 0.9816 GB, free: 69.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02139/2.867, allocations: 6.791 MB / 0.9882 GB, free: 67.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004713/2.872, allocations: 1.443 MB / 0.9896 GB, free: 67.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009267/2.881, allocations: 3.905 MB / 0.9934 GB, free: 65.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.696e-05/2.881, allocations: 50.97 kB / 0.9935 GB, free: 65.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 4.629e-06/2.881, allocations: 0 / 0.9935 GB, free: 65.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.02444/2.906, allocations: 5.9 MB / 0.9993 GB, free: 64.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/2.906, allocations: 170 kB / 0.9994 GB, free: 64.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/2.908, allocations: 0.9898 MB / 1 GB, free: 64.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003709/2.908, allocations: 46.36 kB / 1 GB, free: 64.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004178/2.909, allocations: 0.5023 MB / 1.001 GB, free: 64.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005358/2.909, allocations: 417.2 kB / 1.001 GB, free: 63.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/2.91, allocations: 25.44 kB / 1.001 GB, free: 63.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/2.91, allocations: 367.3 kB / 1.002 GB, free: 63.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/2.912, allocations: 0.7585 MB / 1.002 GB, free: 63.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002451/2.914, allocations: 1.006 MB / 1.003 GB, free: 63.28 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002405/2.917, allocations: 0.8265 MB / 1.004 GB, free: 63.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/2.917, allocations: 1.344 kB / 1.004 GB, free: 63.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.007608/2.925, allocations: 2.352 MB / 1.007 GB, free: 63.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004898/2.925, allocations: 2.179 MB / 1.009 GB, free: 60.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/2.925, allocations: 5.75 kB / 1.009 GB, free: 60.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006209/2.931, allocations: 1.212 MB / 1.01 GB, free: 60.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002002/2.933, allocations: 216.3 kB / 1.01 GB, free: 60.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008389/2.942, allocations: 6.248 MB / 1.016 GB, free: 56.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002613/2.944, allocations: 95.28 kB / 1.016 GB, free: 56.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002663/2.945, allocations: 63.22 kB / 1.016 GB, free: 56.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/2.945, allocations: 6.469 kB / 1.016 GB, free: 56.58 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00674/2.952, allocations: 2.235 MB / 1.018 GB, free: 56.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.518e-05/2.952, allocations: 7.375 kB / 1.018 GB, free: 56.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00404/2.956, allocations: 0.9789 MB / 1.019 GB, free: 56.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/2.958, allocations: 229.3 kB / 1.02 GB, free: 56.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007955/2.966, allocations: 6.077 MB / 1.026 GB, free: 52.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/2.968, allocations: 95.39 kB / 1.026 GB, free: 52.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/2.968, allocations: 58.94 kB / 1.026 GB, free: 52.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001134/2.969, allocations: 467.6 kB / 1.026 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004368/2.97, allocations: 133 kB / 1.026 GB, free: 51.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007476/2.977, allocations: 2.605 MB / 1.029 GB, free: 51.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/2.977, allocations: 15.81 kB / 1.029 GB, free: 51.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/2.977, allocations: 6.125 kB / 1.029 GB, free: 51.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/2.977, allocations: 7.078 kB / 1.029 GB, free: 51.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/2.988, allocations: 4.184 MB / 1.033 GB, free: 51.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/2.988, allocations: 2.812 kB / 1.033 GB, free: 51.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/2.989, allocations: 148.5 kB / 1.033 GB, free: 51.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005603/2.995, allocations: 1.221 MB / 1.034 GB, free: 51.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000373/2.995, allocations: 35.42 kB / 1.034 GB, free: 51.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008522/3.004, allocations: 6.26 MB / 1.04 GB, free: 47.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/3.004, allocations: 0 / 1.04 GB, free: 47.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009746/3.014, allocations: 3.591 MB / 1.044 GB, free: 46.85 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/3.015, allocations: 437.7 kB / 1.044 GB, free: 46.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003728/3.015, allocations: 26.75 kB / 1.044 GB, free: 46.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/3.017, allocations: 90.3 kB / 1.044 GB, free: 46.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005053/3.018, allocations: 154.4 kB / 1.045 GB, free: 46.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/3.018, allocations: 48.59 kB / 1.045 GB, free: 46.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001481/3.02, allocations: 0.7572 MB / 1.045 GB, free: 46.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.6e-07/3.02, allocations: 0 / 1.045 GB, free: 46.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004999/3.025, allocations: 1.121 MB / 1.047 GB, free: 46.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {5 11,2 4,5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003196/3.028, allocations: 0.8115 MB / 1.047 GB, free: 46.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01295/3.041, allocations: 3.591 MB / 1.051 GB, free: 45.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/3.041, allocations: 3.375 kB / 1.051 GB, free: 45.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005289/3.046, allocations: 1.36 MB / 1.052 GB, free: 45.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004956/3.051, allocations: 0.5523 MB / 1.053 GB, free: 44.92 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/3.063, allocations: 3.653 MB / 1.056 GB, free: 43.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009857/3.065, allocations: 1.28 MB / 1.058 GB, free: 42.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009828/3.066, allocations: 147.6 kB / 1.058 GB, free: 42.54 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/3.066, allocations: 0 / 1.058 GB, free: 42.54 MB / 426.7 MB Notification: Performance of Templates: time 0.08331/3.149, allocations: 50.98 MB / 1.107 GB, free: 23.06 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches