Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 109.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.712/2.712, allocations: 476.7 MB / 0.7611 GB, free: 11.3 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 59.91 kB / 1.104 GB, free: 9.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8027/0.8046, allocations: 168.7 MB / 1.269 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003947/0.8085, allocations: 2.259 MB / 1.271 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002313/0.8108, allocations: 1.294 MB / 1.272 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.811, allocations: 7.938 kB / 1.272 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004808/0.8115, allocations: 175.2 kB / 1.272 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003784/0.8119, allocations: 167.2 kB / 1.273 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005893/0.8125, allocations: 247.4 kB / 1.273 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000495/0.813, allocations: 406.9 kB / 1.273 GB, free: 0.6133 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.8132, allocations: 75.09 kB / 1.273 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.8134, allocations: 179.3 kB / 1.273 GB, free: 372 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/0.8137, allocations: 195.2 kB / 1.274 GB, free: 176 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.09e-05/0.8137, allocations: 24 kB / 1.274 GB, free: 152 kB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.8139, allocations: 79.91 kB / 1.274 GB, free: 72 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.814, allocations: 115.6 kB / 1.274 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.8142, allocations: 162.9 kB / 1.274 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006239/0.8148, allocations: 497.8 kB / 1.274 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.8148, allocations: 0 / 1.274 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8148, allocations: 0 / 1.274 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.8148, allocations: 0 / 1.274 GB, free: 15.31 MB / 0.9825 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.001289/0.8161, allocations: 0.731 MB / 1.275 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.8162, allocations: 12.03 kB / 1.275 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.862e-05/0.8162, allocations: 46.73 kB / 1.275 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.119e-05/0.8163, allocations: 44.66 kB / 1.275 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006317/0.817, allocations: 406.6 kB / 1.276 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.817, allocations: 24.11 kB / 1.276 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.817, allocations: 12 kB / 1.276 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.8174, allocations: 180.6 kB / 1.276 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.8174, allocations: 0 / 1.276 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.8174, allocations: 4 kB / 1.276 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.8174, allocations: 4 kB / 1.276 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002144/0.8176, allocations: 95.88 kB / 1.276 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.8189, allocations: 0.7894 MB / 1.277 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/0.8192, allocations: 129.4 kB / 1.277 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.8193, allocations: 53.62 kB / 1.277 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.8193, allocations: 4 kB / 1.277 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.8196, allocations: 129.1 kB / 1.277 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.8196, allocations: 0 / 1.277 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005521/0.8201, allocations: 221.3 kB / 1.277 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.283e-05/0.8202, allocations: 102.8 kB / 1.277 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006995/0.8209, allocations: 0.5798 MB / 1.278 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.821, allocations: 33.7 kB / 1.278 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.8211, allocations: 192.6 kB / 1.278 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.8212, allocations: 43.72 kB / 1.278 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.8213, allocations: 73.64 kB / 1.278 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002/0.8215, allocations: 358.7 kB / 1.279 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.8217, allocations: 108 kB / 1.279 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.822, allocations: 165.8 kB / 1.279 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.8223, allocations: 190 kB / 1.279 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.8223, allocations: 0.5 kB / 1.279 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005818/0.8229, allocations: 344 kB / 1.279 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.8229, allocations: 12.09 kB / 1.279 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.8229, allocations: 0 / 1.279 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.8229, allocations: 7.984 kB / 1.279 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.8231, allocations: 51.86 kB / 1.279 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.8231, allocations: 0 / 1.279 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.8233, allocations: 43.86 kB / 1.279 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.8234, allocations: 11.98 kB / 1.279 GB, free: 9.859 MB / 0.9825 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.0002239/0.8236, allocations: 199.4 kB / 1.28 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.037e-05/0.8237, allocations: 39.83 kB / 1.28 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.691e-05/0.8238, allocations: 47.31 kB / 1.28 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.8238, allocations: 0 / 1.28 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.8238, allocations: 3.984 kB / 1.28 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.8238, allocations: 0 / 1.28 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003509/0.8241, allocations: 337.3 kB / 1.28 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.8241, allocations: 0 / 1.28 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.495e-05/0.8242, allocations: 7.984 kB / 1.28 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.8242, allocations: 4 kB / 1.28 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.8242, allocations: 8 kB / 1.28 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8242, allocations: 0 / 1.28 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.8242, allocations: 4 kB / 1.28 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003862/0.8246, allocations: 213.5 kB / 1.28 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.8247, allocations: 116.9 kB / 1.28 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.8247, allocations: 8 kB / 1.28 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.8249, allocations: 19.97 kB / 1.28 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.56e-05/0.825, allocations: 19.98 kB / 1.28 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.825, allocations: 7.984 kB / 1.28 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004349/0.8254, allocations: 363 kB / 1.281 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.8254, allocations: 0 / 1.281 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003318/0.8257, allocations: 75.81 kB / 1.281 GB, free: 8.309 MB / 0.9825 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 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * 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.002113/0.8278, allocations: 1.074 MB / 1.282 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004488/0.8283, allocations: 183.8 kB / 1.282 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/0.8283, allocations: 4 kB / 1.282 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.8285, allocations: 52.16 kB / 1.282 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.829, allocations: 108.8 kB / 1.282 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004755/0.8338, allocations: 3.519 MB / 1.286 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.8343, allocations: 0.8145 MB / 1.286 GB, free: 2.566 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001706/0.8344, allocations: 54.89 kB / 1.287 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.8346, allocations: 127.4 kB / 1.287 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of SimCode: time 8.92e-07/0.8346, allocations: 0 / 1.287 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03407/0.8687, allocations: 8.434 MB / 1.295 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.747/9.616, allocations: 10.03 kB / 1.295 GB, free: 10.07 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.598973037209362]