Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009762/0.0009765, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007887/0.0007886, allocations: 100.5 kB / 286.7 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.741e-05/1.736e-05, allocations: 4 kB / 343.7 MB, free: 8.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 51.49 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.248/1.36, allocations: 412.2 MB / 0.7884 GB, free: 125.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/1.361, allocations: 81.52 kB / 0.7885 GB, free: 125.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7841/2.145, allocations: 214.8 MB / 0.9982 GB, free: 66.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.513e-06/2.145, allocations: 0 / 0.9982 GB, free: 66.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.418e-05/2.145, allocations: 33.28 kB / 0.9983 GB, free: 66.42 MB / 442.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.006269/2.151, allocations: 1.8 MB / 1 GB, free: 65.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/2.151, allocations: 7.875 kB / 1 GB, free: 65.15 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008863/2.152, allocations: 167.9 kB / 1 GB, free: 65.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002594/2.155, allocations: 0.9822 MB / 1.001 GB, free: 64.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002127/2.155, allocations: 200.9 kB / 1.001 GB, free: 64.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/2.155, allocations: 64.48 kB / 1.001 GB, free: 64.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002679/2.158, allocations: 1.601 MB / 1.003 GB, free: 63.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/2.16, allocations: 1.637 MB / 1.005 GB, free: 62.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/2.16, allocations: 0 / 1.005 GB, free: 62.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/2.16, allocations: 3.938 kB / 1.005 GB, free: 62.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/2.161, allocations: 110.2 kB / 1.005 GB, free: 62.44 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/2.172, allocations: 6.523 MB / 1.011 GB, free: 57.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/2.174, allocations: 1.386 MB / 1.012 GB, free: 57.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/2.175, allocations: 0.7998 MB / 1.013 GB, free: 56.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005531/2.181, allocations: 3.851 MB / 1.017 GB, free: 53.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/2.181, allocations: 43.88 kB / 1.017 GB, free: 53.53 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 4.007e-06/2.181, allocations: 4 kB / 1.017 GB, free: 53.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01889/2.2, allocations: 6.441 MB / 1.023 GB, free: 50.21 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/2.2, allocations: 173.8 kB / 1.023 GB, free: 50.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/2.201, allocations: 0.6573 MB / 1.024 GB, free: 49.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001393/2.201, allocations: 29.64 kB / 1.024 GB, free: 49.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004789/2.202, allocations: 0.541 MB / 1.025 GB, free: 49.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003575/2.202, allocations: 399.5 kB / 1.025 GB, free: 48.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.825e-05/2.202, allocations: 0 / 1.025 GB, free: 48.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/2.202, allocations: 356 kB / 1.025 GB, free: 48.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009596/2.203, allocations: 0.7179 MB / 1.026 GB, free: 48.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/2.204, allocations: 0.97 MB / 1.027 GB, free: 47.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005835/2.21, allocations: 1.806 MB / 1.029 GB, free: 46.58 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/2.21, allocations: 0 / 1.029 GB, free: 46.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.008663/2.219, allocations: 3.295 MB / 1.032 GB, free: 43.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006314/2.219, allocations: 2.183 MB / 1.034 GB, free: 41.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/2.219, allocations: 4 kB / 1.034 GB, free: 41.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002154/2.222, allocations: 0.9827 MB / 1.035 GB, free: 40.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009212/2.223, allocations: 215.7 kB / 1.035 GB, free: 39.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00847/2.231, allocations: 6.593 MB / 1.042 GB, free: 33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/2.233, allocations: 67.84 kB / 1.042 GB, free: 32.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004511/2.234, allocations: 59.97 kB / 1.042 GB, free: 32.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/2.234, allocations: 4 kB / 1.042 GB, free: 32.87 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008657/2.242, allocations: 3.056 MB / 1.045 GB, free: 29.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/2.242, allocations: 4 kB / 1.045 GB, free: 29.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/2.244, allocations: 0.9214 MB / 1.046 GB, free: 28.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/2.245, allocations: 223.6 kB / 1.046 GB, free: 28.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006635/2.252, allocations: 6.366 MB / 1.052 GB, free: 21.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/2.254, allocations: 67.89 kB / 1.052 GB, free: 21.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002922/2.254, allocations: 59.97 kB / 1.052 GB, free: 21.85 MB / 442.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 () * 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.0006065/2.255, allocations: 140.6 kB / 1.052 GB, free: 21.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000436/2.255, allocations: 114.7 kB / 1.053 GB, free: 21.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007638/2.263, allocations: 3.062 MB / 1.056 GB, free: 18.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/2.263, allocations: 16 kB / 1.056 GB, free: 18.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/2.263, allocations: 0 / 1.056 GB, free: 18.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/2.263, allocations: 11.97 kB / 1.056 GB, free: 18.49 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009699/2.272, allocations: 4.539 MB / 1.06 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/2.273, allocations: 8.062 kB / 1.06 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/2.273, allocations: 147.8 kB / 1.06 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002215/2.276, allocations: 1.019 MB / 1.061 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/2.276, allocations: 23.97 kB / 1.061 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007027/2.283, allocations: 6.585 MB / 1.068 GB, free: 5.832 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.283, allocations: 4 kB / 1.068 GB, free: 5.828 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008207/2.291, allocations: 4.052 MB / 1.072 GB, free: 1.746 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009812/2.292, allocations: 403.3 kB / 1.072 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003888/2.292, allocations: 4.234 kB / 1.072 GB, free: 1.328 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/2.294, allocations: 67.92 kB / 1.072 GB, free: 1.262 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003194/2.294, allocations: 149.1 kB / 1.072 GB, free: 1.117 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/2.294, allocations: 47.97 kB / 1.072 GB, free: 1.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008365/2.295, allocations: 495.1 kB / 1.073 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.41e-07/2.295, allocations: 4 kB / 1.073 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.3593/2.654, allocations: 1.052 MB / 1.074 GB, free: 64.95 MB / 442.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) * 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 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003071/2.658, allocations: 0.7946 MB / 1.074 GB, free: 64.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007832/2.665, allocations: 3.418 MB / 1.078 GB, free: 64.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/2.665, allocations: 0 / 1.078 GB, free: 64.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002744/2.668, allocations: 1.26 MB / 1.079 GB, free: 64.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002922/2.671, allocations: 496.9 kB / 1.079 GB, free: 64.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006247/2.677, allocations: 2.443 MB / 1.082 GB, free: 63.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008339/2.678, allocations: 1.293 MB / 1.083 GB, free: 63.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002105/2.68, allocations: 0.5822 MB / 1.084 GB, free: 63.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003026/2.681, allocations: 104.2 kB / 1.084 GB, free: 63.04 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/2.681, allocations: 0 / 1.084 GB, free: 63.04 MB / 442.7 MB Notification: Performance of Templates: time 0.08065/2.761, allocations: 38.41 MB / 1.121 GB, free: 61.34 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches