Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001217/0.001217, allocations: 181.4 kB / 17.01 MB, free: 5.125 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.57/1.57, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0009657/0.0009659, allocations: 90.7 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002938/0.0002937, allocations: 8 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3384, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9723/1.311, allocations: 409.9 MB / 0.7673 GB, free: 56.04 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/1.311, allocations: 87.97 kB / 0.7674 GB, free: 55.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7675/2.079, allocations: 213.4 MB / 0.9758 GB, free: 13.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.735e-06/2.079, allocations: 0 / 0.9758 GB, free: 13.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.931e-05/2.079, allocations: 39.92 kB / 0.9759 GB, free: 13.25 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.005785/2.085, allocations: 1.944 MB / 0.9778 GB, free: 11.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/2.085, allocations: 8.031 kB / 0.9778 GB, free: 11.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/2.085, allocations: 162.2 kB / 0.9779 GB, free: 11.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/2.087, allocations: 0.9958 MB / 0.9789 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/2.088, allocations: 246.4 kB / 0.9791 GB, free: 9.773 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/2.088, allocations: 95.98 kB / 0.9792 GB, free: 9.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/2.09, allocations: 1.795 MB / 0.981 GB, free: 7.812 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.117e-05/2.09, allocations: 15.88 kB / 0.981 GB, free: 7.797 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/2.091, allocations: 39.97 kB / 0.981 GB, free: 7.758 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/2.091, allocations: 102 kB / 0.9811 GB, free: 7.656 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002464/2.093, allocations: 1.761 MB / 0.9828 GB, free: 5.887 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3522/2.445, allocations: 6.773 MB / 0.9894 GB, free: 69.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002516/2.448, allocations: 1.451 MB / 0.9909 GB, free: 69.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005685/2.454, allocations: 3.913 MB / 0.9947 GB, free: 67.51 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/2.454, allocations: 39.69 kB / 0.9947 GB, free: 67.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 2.665e-06/2.454, allocations: 3.844 kB / 0.9947 GB, free: 67.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01326/2.467, allocations: 5.89 MB / 1 GB, free: 66.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/2.467, allocations: 176.5 kB / 1.001 GB, free: 66.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/2.469, allocations: 0.9899 MB / 1.002 GB, free: 66.31 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/2.469, allocations: 50.42 kB / 1.002 GB, free: 66.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/2.469, allocations: 0.5147 MB / 1.002 GB, free: 66.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003335/2.469, allocations: 414.7 kB / 1.003 GB, free: 65.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/2.469, allocations: 29.62 kB / 1.003 GB, free: 65.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.939e-05/2.47, allocations: 356.7 kB / 1.003 GB, free: 65.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/2.471, allocations: 0.7572 MB / 1.004 GB, free: 65.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/2.472, allocations: 1.011 MB / 1.005 GB, free: 65.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/2.473, allocations: 0.8168 MB / 1.005 GB, free: 65.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/2.474, allocations: 1.344 kB / 1.005 GB, free: 65.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004353/2.478, allocations: 2.428 MB / 1.008 GB, free: 65.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005227/2.478, allocations: 2.19 MB / 1.01 GB, free: 62.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/2.478, allocations: 7.094 kB / 1.01 GB, free: 62.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003742/2.482, allocations: 1.207 MB / 1.011 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/2.483, allocations: 216.4 kB / 1.011 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006129/2.489, allocations: 6.244 MB / 1.017 GB, free: 58.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/2.491, allocations: 96.53 kB / 1.018 GB, free: 58.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001676/2.491, allocations: 67 kB / 1.018 GB, free: 58.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/2.491, allocations: 3.062 kB / 1.018 GB, free: 58.62 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004399/2.496, allocations: 2.229 MB / 1.02 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/2.496, allocations: 6.156 kB / 1.02 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002761/2.498, allocations: 1.012 MB / 1.021 GB, free: 58.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/2.5, allocations: 234.9 kB / 1.021 GB, free: 58.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/2.505, allocations: 6.093 MB / 1.027 GB, free: 54.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/2.506, allocations: 92.44 kB / 1.027 GB, free: 54.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/2.506, allocations: 65.61 kB / 1.027 GB, free: 54.25 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.0009277/2.507, allocations: 456 kB / 1.028 GB, free: 54.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/2.507, allocations: 136.9 kB / 1.028 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00462/2.512, allocations: 2.602 MB / 1.03 GB, free: 53.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/2.512, allocations: 18 kB / 1.03 GB, free: 53.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/2.512, allocations: 3.938 kB / 1.03 GB, free: 53.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/2.512, allocations: 6.844 kB / 1.03 GB, free: 53.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006179/2.518, allocations: 4.19 MB / 1.034 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/2.518, allocations: 0 / 1.034 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000729/2.519, allocations: 148.1 kB / 1.034 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003231/2.522, allocations: 1.218 MB / 1.036 GB, free: 53.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/2.522, allocations: 38.64 kB / 1.036 GB, free: 53.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005268/2.528, allocations: 6.261 MB / 1.042 GB, free: 49.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/2.528, allocations: 6.953 kB / 1.042 GB, free: 49.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005572/2.533, allocations: 3.596 MB / 1.045 GB, free: 48.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009987/2.534, allocations: 441.5 kB / 1.046 GB, free: 48.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/2.535, allocations: 25 kB / 1.046 GB, free: 48.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/2.536, allocations: 94.41 kB / 1.046 GB, free: 48.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000337/2.536, allocations: 151.4 kB / 1.046 GB, free: 48.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/2.536, allocations: 51.72 kB / 1.046 GB, free: 48.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001188/2.537, allocations: 0.7552 MB / 1.047 GB, free: 48.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.537, allocations: 0 / 1.047 GB, free: 48.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004068/2.542, allocations: 1.124 MB / 1.048 GB, free: 48.6 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.003028/2.545, allocations: 0.8109 MB / 1.049 GB, free: 48.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006702/2.551, allocations: 3.568 MB / 1.052 GB, free: 48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/2.551, allocations: 0 / 1.052 GB, free: 48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002699/2.554, allocations: 1.363 MB / 1.054 GB, free: 47.74 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/2.557, allocations: 0.5578 MB / 1.054 GB, free: 47.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006729/2.563, allocations: 3.593 MB / 1.058 GB, free: 46.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007842/2.564, allocations: 1.285 MB / 1.059 GB, free: 45.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001825/2.566, allocations: 0.5849 MB / 1.059 GB, free: 45.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003329/2.566, allocations: 125.8 kB / 1.06 GB, free: 45.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/2.566, allocations: 0 / 1.06 GB, free: 45.8 MB / 426.7 MB Notification: Performance of Templates: time 0.06398/2.63, allocations: 40.8 MB / 1.099 GB, free: 39.2 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/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_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches