Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001736/0.001736, allocations: 84.73 kB / 19.44 MB, free: 348 kB / 13.93 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.002359/0.002359, allocations: 157.7 kB / 22.75 MB, free: 1.676 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 1.511/1.511, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.185/3.185, allocations: 429.6 MB / 0.673 GB, free: 3.918 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.8776 GB, free: 6.523 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.742e-05/2.89e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.52 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004328/0.004357, allocations: 2.188 MB / 0.8797 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00292/0.007277, allocations: 1.344 MB / 0.881 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.007457, allocations: 9.812 kB / 0.881 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0005504/0.008008, allocations: 175.1 kB / 0.8812 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0005706/0.008578, allocations: 233.6 kB / 0.8814 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.009053, allocations: 183.5 kB / 0.8816 GB, free: 2.406 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0006231/0.009676, allocations: 442.7 kB / 0.882 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.009885, allocations: 61.5 kB / 0.8821 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003608/0.01025, allocations: 227.4 kB / 0.8823 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.01052, allocations: 164.3 kB / 0.8825 GB, free: 1.527 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.934e-05/0.01058, allocations: 28 kB / 0.8825 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001882/0.01077, allocations: 81.56 kB / 0.8826 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.01093, allocations: 119.5 kB / 0.8827 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.01108, allocations: 99.62 kB / 0.8828 GB, free: 1.207 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0007246/0.01181, allocations: 0.4944 MB / 0.8833 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.01181, allocations: 1.344 kB / 0.8833 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.433e-06/0.01181, allocations: 0 / 0.8833 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.01182, allocations: 0 / 0.8833 GB, free: 0.7109 MB / 0.8386 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.001315/0.01313, allocations: 0.6633 MB / 0.8839 GB, free: 16 kB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.01317, allocations: 8.031 kB / 0.8839 GB, free: 8 kB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.01333, allocations: 60.69 kB / 0.884 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006834/0.01401, allocations: 371.8 kB / 0.8843 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.01404, allocations: 16.36 kB / 0.8843 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.01408, allocations: 16.38 kB / 0.8844 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006956/0.01477, allocations: 215.4 kB / 0.8846 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.01478, allocations: 4 kB / 0.8846 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.0148, allocations: 0 / 0.8846 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.01481, allocations: 4 kB / 0.8846 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.01507, allocations: 99.88 kB / 0.8847 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.01635, allocations: 0.6721 MB / 0.8853 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.01675, allocations: 137.4 kB / 0.8855 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.01689, allocations: 57.69 kB / 0.8855 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.0169, allocations: 0 / 0.8855 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002958/0.0172, allocations: 132.9 kB / 0.8856 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.0172, allocations: 0 / 0.8856 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0006788/0.01788, allocations: 241.5 kB / 0.8859 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.386e-05/0.01797, allocations: 106.8 kB / 0.886 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008451/0.01882, allocations: 0.5799 MB / 0.8865 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.203e-05/0.01886, allocations: 33.7 kB / 0.8866 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/0.01908, allocations: 208.5 kB / 0.8868 GB, free: 12.92 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.26e-05/0.01913, allocations: 39.73 kB / 0.8868 GB, free: 12.88 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.01927, allocations: 69.64 kB / 0.8869 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002294/0.0195, allocations: 354.8 kB / 0.8872 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000246/0.01975, allocations: 108 kB / 0.8873 GB, free: 12.34 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.0201, allocations: 256.3 kB / 0.8876 GB, free: 12.05 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.02049, allocations: 199.1 kB / 0.8877 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.0205, allocations: 4 kB / 0.8877 GB, free: 11.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007352/0.02123, allocations: 365.1 kB / 0.8881 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.02126, allocations: 4 kB / 0.8881 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.02127, allocations: 4 kB / 0.8881 GB, free: 11.47 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.02129, allocations: 0 / 0.8881 GB, free: 11.47 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.02152, allocations: 51.91 kB / 0.8882 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.02153, allocations: 4 kB / 0.8882 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.02177, allocations: 39.95 kB / 0.8882 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.02181, allocations: 12 kB / 0.8882 GB, free: 11.37 MB / 0.8542 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.0002541/0.02206, allocations: 195.7 kB / 0.8884 GB, free: 11.17 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.02215, allocations: 47.7 kB / 0.8884 GB, free: 11.12 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005298/0.02268, allocations: 213 kB / 0.8886 GB, free: 10.91 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.02268, allocations: 112 / 0.8886 GB, free: 10.91 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.02269, allocations: 3.938 kB / 0.8886 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.02269, allocations: 4 kB / 0.8886 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003655/0.02306, allocations: 253.1 kB / 0.8889 GB, free: 10.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.02306, allocations: 7.984 kB / 0.8889 GB, free: 10.61 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.595e-05/0.02312, allocations: 12 kB / 0.8889 GB, free: 10.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.02312, allocations: 3.938 kB / 0.8889 GB, free: 10.6 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.02314, allocations: 7.984 kB / 0.8889 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.02315, allocations: 0 / 0.8889 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.02315, allocations: 0 / 0.8889 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/0.02363, allocations: 233.6 kB / 0.8891 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.218e-05/0.02372, allocations: 47.75 kB / 0.8892 GB, free: 10.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.336e-05/0.02377, allocations: 11.94 kB / 0.8892 GB, free: 10.28 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.02392, allocations: 20.28 kB / 0.8892 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-05/0.02401, allocations: 19.97 kB / 0.8892 GB, free: 10.24 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.02403, allocations: 11.98 kB / 0.8893 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0005059/0.02453, allocations: 359.1 kB / 0.8896 GB, free: 9.879 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9.1e-08/0.02453, allocations: 0 / 0.8896 GB, free: 9.879 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003627/0.0249, allocations: 71.89 kB / 0.8897 GB, free: 9.809 MB / 0.8542 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.002068/0.02696, allocations: 457.3 kB / 0.8901 GB, free: 9.539 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005191/0.02748, allocations: 197.3 kB / 0.8903 GB, free: 9.348 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.02749, allocations: 4 kB / 0.8903 GB, free: 9.344 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.02766, allocations: 55.91 kB / 0.8903 GB, free: 9.289 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005808/0.02824, allocations: 102.2 kB / 0.8904 GB, free: 9.199 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.02954, allocations: 0.6463 MB / 0.8911 GB, free: 8.52 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.0298, allocations: 204.5 kB / 0.8913 GB, free: 8.301 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001726/0.02997, allocations: 63.23 kB / 0.8913 GB, free: 8.238 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.03009, allocations: 40.48 kB / 0.8914 GB, free: 8.199 MB / 0.8542 GB Notification: Performance of SimCode: time 5.11e-07/0.03009, allocations: 0 / 0.8914 GB, free: 8.199 MB / 0.8542 GB Notification: Performance of Templates: time 0.0119/0.042, allocations: 5.087 MB / 0.8963 GB, free: 3.191 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.37896944093518]