Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008593/0.0008593, allocations: 76.55 kB / 19.93 MB, free: 4.637 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008574/0.0008574, allocations: 177.9 kB / 23.22 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9029/0.9029, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.76/1.76, allocations: 377.9 MB / 0.6228 GB, free: 8.641 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 0.9822 GB, free: 2.059 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.839e-05/3.004e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.055 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002717/0.002747, allocations: 2.177 MB / 0.9843 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.001736/0.004483, allocations: 1.348 MB / 0.9856 GB, free: 14.5 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.004643, allocations: 7.938 kB / 0.9856 GB, free: 14.5 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004723/0.005115, allocations: 175.1 kB / 0.9858 GB, free: 14.32 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0003942/0.005509, allocations: 234.9 kB / 0.986 GB, free: 14.09 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.005814, allocations: 179.4 kB / 0.9862 GB, free: 13.92 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.006224, allocations: 442.7 kB / 0.9866 GB, free: 13.48 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.006404, allocations: 65.48 kB / 0.9867 GB, free: 13.42 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.006618, allocations: 231.4 kB / 0.9869 GB, free: 13.2 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/0.006801, allocations: 167.5 kB / 0.9871 GB, free: 13.03 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.598e-05/0.006837, allocations: 28 kB / 0.9871 GB, free: 13 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.006971, allocations: 71.98 kB / 0.9872 GB, free: 12.93 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.007073, allocations: 115.6 kB / 0.9873 GB, free: 12.82 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 8.413e-05/0.007157, allocations: 103.6 kB / 0.9874 GB, free: 12.72 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004442/0.007602, allocations: 0.4944 MB / 0.9879 GB, free: 12.22 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.007606, allocations: 3.938 kB / 0.9879 GB, free: 12.22 MB / 0.948 GB Notification: Performance of FrontEnd: time 5.32e-06/0.007612, allocations: 4 kB / 0.9879 GB, free: 12.21 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.007619, allocations: 4 kB / 0.9879 GB, free: 12.21 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008414/0.00846, allocations: 0.6633 MB / 0.9885 GB, free: 11.52 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.008499, allocations: 12.03 kB / 0.9885 GB, free: 11.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.519e-05/0.008574, allocations: 44.66 kB / 0.9886 GB, free: 11.46 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004158/0.00899, allocations: 359.9 kB / 0.9889 GB, free: 11.09 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.009008, allocations: 16.38 kB / 0.9889 GB, free: 11.07 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.009032, allocations: 20.38 kB / 0.9889 GB, free: 11.05 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/0.009299, allocations: 210.1 kB / 0.9891 GB, free: 10.82 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.009308, allocations: 0 / 0.9891 GB, free: 10.82 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.009325, allocations: 4 kB / 0.9892 GB, free: 10.82 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.009332, allocations: 4 kB / 0.9892 GB, free: 10.82 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.009472, allocations: 95.92 kB / 0.9892 GB, free: 10.72 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000859/0.01033, allocations: 0.6838 MB / 0.9899 GB, free: 10 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.01055, allocations: 133.4 kB / 0.99 GB, free: 9.852 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.051e-05/0.01062, allocations: 49.69 kB / 0.9901 GB, free: 9.797 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.01063, allocations: 0 / 0.9901 GB, free: 9.797 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.01083, allocations: 140.9 kB / 0.9902 GB, free: 9.641 MB / 0.948 GB Notification: Performance of pre-optimization done (n=12): time 1.723e-06/0.01084, allocations: 0 / 0.9902 GB, free: 9.641 MB / 0.948 GB Notification: Performance of matching and sorting (n=12): time 0.0003637/0.0112, allocations: 229.4 kB / 0.9904 GB, free: 9.41 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.01125, allocations: 114.7 kB / 0.9906 GB, free: 9.273 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004566/0.01171, allocations: 0.576 MB / 0.9911 GB, free: 8.684 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.01173, allocations: 33.7 kB / 0.9911 GB, free: 8.645 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.01185, allocations: 204.5 kB / 0.9913 GB, free: 8.441 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.01188, allocations: 39.73 kB / 0.9914 GB, free: 8.402 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.728e-05/0.01195, allocations: 73.64 kB / 0.9915 GB, free: 8.324 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.01206, allocations: 354.8 kB / 0.9918 GB, free: 7.969 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.01218, allocations: 111.9 kB / 0.9919 GB, free: 7.859 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.01236, allocations: 240.5 kB / 0.9921 GB, free: 7.586 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.01256, allocations: 207.3 kB / 0.9923 GB, free: 7.371 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.01256, allocations: 0 / 0.9923 GB, free: 7.371 MB / 0.948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003471/0.01291, allocations: 352.2 kB / 0.9927 GB, free: 7.023 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.01293, allocations: 10.5 kB / 0.9927 GB, free: 7.016 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.01294, allocations: 0 / 0.9927 GB, free: 7.016 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.01295, allocations: 8.094 kB / 0.9927 GB, free: 7.008 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.01308, allocations: 47.91 kB / 0.9927 GB, free: 6.961 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.01308, allocations: 3.984 kB / 0.9927 GB, free: 6.957 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.0132, allocations: 43.86 kB / 0.9928 GB, free: 6.914 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.01322, allocations: 8 kB / 0.9928 GB, free: 6.906 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001468/0.01337, allocations: 199.7 kB / 0.993 GB, free: 6.703 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/0.0134, allocations: 43.66 kB / 0.993 GB, free: 6.66 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002734/0.01367, allocations: 217 kB / 0.9932 GB, free: 6.441 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.01368, allocations: 4 kB / 0.9932 GB, free: 6.438 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.01368, allocations: 0 / 0.9932 GB, free: 6.438 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.01369, allocations: 0.5 kB / 0.9932 GB, free: 6.438 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.01386, allocations: 249.1 kB / 0.9935 GB, free: 6.164 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.01386, allocations: 0 / 0.9935 GB, free: 6.164 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.203e-05/0.01389, allocations: 19.94 kB / 0.9935 GB, free: 6.145 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.0139, allocations: 3.938 kB / 0.9935 GB, free: 6.141 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.01391, allocations: 11.98 kB / 0.9935 GB, free: 6.129 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.01391, allocations: 0 / 0.9935 GB, free: 6.129 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01391, allocations: 0 / 0.9935 GB, free: 6.129 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002238/0.01413, allocations: 221.7 kB / 0.9937 GB, free: 5.891 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.813e-05/0.01418, allocations: 51.7 kB / 0.9938 GB, free: 5.84 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.01421, allocations: 7.938 kB / 0.9938 GB, free: 5.832 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.257e-05/0.01428, allocations: 15.98 kB / 0.9938 GB, free: 5.816 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.221e-05/0.01434, allocations: 31.83 kB / 0.9938 GB, free: 5.785 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.01435, allocations: 8.047 kB / 0.9938 GB, free: 5.777 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002498/0.0146, allocations: 359.1 kB / 0.9942 GB, free: 5.434 MB / 0.948 GB Notification: Performance of sort global known variables: time 8e-08/0.0146, allocations: 0 / 0.9942 GB, free: 5.434 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002144/0.01481, allocations: 67.94 kB / 0.9942 GB, free: 5.367 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008116/0.01563, allocations: 467 kB / 0.9947 GB, free: 5.086 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002806/0.01591, allocations: 195.8 kB / 0.9949 GB, free: 4.895 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01591, allocations: 0 / 0.9949 GB, free: 4.895 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.229e-05/0.01599, allocations: 63.91 kB / 0.9949 GB, free: 4.832 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.0163, allocations: 96.02 kB / 0.995 GB, free: 4.746 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007621/0.01706, allocations: 0.6775 MB / 0.9957 GB, free: 4.031 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.0172, allocations: 212.4 kB / 0.9959 GB, free: 3.797 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.867e-05/0.01727, allocations: 36.48 kB / 0.9959 GB, free: 3.762 MB / 0.948 GB Notification: Performance of SimCode: time 7.31e-07/0.01727, allocations: 0 / 0.9959 GB, free: 3.762 MB / 0.948 GB Notification: Performance of Templates: time 0.005536/0.0228, allocations: 5.346 MB / 1.001 GB, free: 14.44 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.8007887825369835]