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.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.00166/0.00166, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.001975/0.001975, allocations: 211.3 kB / 22.25 MB, free: 5.086 MB / 14.72 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.448/1.448, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.884/2.884, allocations: 476.7 MB / 0.7707 GB, free: 4.297 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: "" <> 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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 70.23 kB / 1.117 GB, free: 40.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3131, allocations: 170 MB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004525/0.3176, allocations: 2.309 MB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002821/0.3204, allocations: 1.442 MB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.3207, allocations: 11.88 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005859/0.3213, allocations: 175.2 kB / 1.287 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0006739/0.3219, allocations: 215.1 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005783/0.3225, allocations: 191.5 kB / 1.288 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0007222/0.3232, allocations: 434.8 kB / 1.288 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.3235, allocations: 65.08 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003873/0.3239, allocations: 199.2 kB / 1.288 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.3242, allocations: 191.2 kB / 1.288 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.529e-05/0.3242, allocations: 24 kB / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000216/0.3245, allocations: 83.95 kB / 1.289 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.3246, allocations: 107.6 kB / 1.289 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.3248, allocations: 174.9 kB / 1.289 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007253/0.3255, allocations: 0.494 MB / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3255, allocations: 0 / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3255, allocations: 4 kB / 1.289 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.779e-05/0.3256, allocations: 0 / 1.289 GB, free: 5.617 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.001351/0.3269, allocations: 0.6673 MB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.327, allocations: 8.031 kB / 1.29 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.535e-05/0.327, allocations: 38.75 kB / 1.29 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.3271, allocations: 56.59 kB / 1.29 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006802/0.3278, allocations: 364.7 kB / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.3278, allocations: 20.12 kB / 1.29 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.3279, allocations: 15.98 kB / 1.29 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003608/0.3282, allocations: 169.4 kB / 1.291 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.3282, allocations: 0 / 1.291 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.3283, allocations: 4 kB / 1.291 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.3283, allocations: 7.938 kB / 1.291 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002199/0.3285, allocations: 95.89 kB / 1.291 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.3298, allocations: 0.7612 MB / 1.291 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000355/0.3301, allocations: 133.3 kB / 1.292 GB, free: 3.148 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3303, allocations: 49.69 kB / 1.292 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.3303, allocations: 0 / 1.292 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.3306, allocations: 129 kB / 1.292 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.3306, allocations: 0 / 1.292 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.000602/0.3312, allocations: 221.3 kB / 1.292 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.494e-05/0.3313, allocations: 110.8 kB / 1.292 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007999/0.3321, allocations: 0.5955 MB / 1.293 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.594e-05/0.3321, allocations: 37.69 kB / 1.293 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.3323, allocations: 200.4 kB / 1.293 GB, free: 1.742 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.419e-05/0.3323, allocations: 39.73 kB / 1.293 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.3325, allocations: 81.64 kB / 1.293 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002012/0.3327, allocations: 358.7 kB / 1.293 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.3329, allocations: 108 kB / 1.293 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000274/0.3332, allocations: 165.8 kB / 1.294 GB, free: 0.9688 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.3335, allocations: 187.3 kB / 1.294 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.3335, allocations: 4 kB / 1.294 GB, free: 0.7695 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006669/0.3342, allocations: 348.2 kB / 1.294 GB, free: 436 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.3342, allocations: 11.98 kB / 1.294 GB, free: 424 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3342, allocations: 0 / 1.294 GB, free: 424 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.3342, allocations: 4 kB / 1.294 GB, free: 420 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.3345, allocations: 47.92 kB / 1.294 GB, free: 372 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3345, allocations: 112 / 1.294 GB, free: 372 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.3347, allocations: 47.94 kB / 1.294 GB, free: 324 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.3348, allocations: 15.97 kB / 1.294 GB, free: 308 kB / 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.0002613/0.335, allocations: 199.4 kB / 1.294 GB, free: 100 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.293e-05/0.3351, allocations: 47.72 kB / 1.294 GB, free: 52 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004577/0.3356, allocations: 189.7 kB / 1.295 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3356, allocations: 4 kB / 1.295 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3356, allocations: 0 / 1.295 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.3356, allocations: 7.984 kB / 1.295 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003662/0.3359, allocations: 308.4 kB / 1.295 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3359, allocations: 0 / 1.295 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.553e-05/0.336, allocations: 15.92 kB / 1.295 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.336, allocations: 0 / 1.295 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.336, allocations: 8 kB / 1.295 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.336, allocations: 0 / 1.295 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.336, allocations: 0 / 1.295 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.3364, allocations: 213.6 kB / 1.295 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.3365, allocations: 47.7 kB / 1.295 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/0.3366, allocations: 11.94 kB / 1.295 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3367, allocations: 15.97 kB / 1.295 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.305e-05/0.3368, allocations: 23.91 kB / 1.295 GB, free: 15.15 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.3368, allocations: 12 kB / 1.295 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004734/0.3373, allocations: 371 kB / 1.296 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3373, allocations: 4 kB / 1.296 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004001/0.3377, allocations: 75.81 kB / 1.296 GB, free: 14.7 MB / 0.9981 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 (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.002266/0.3399, allocations: 1.059 MB / 1.297 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005019/0.3404, allocations: 191.8 kB / 1.297 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3404, allocations: 0 / 1.297 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.3406, allocations: 51.91 kB / 1.297 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.3412, allocations: 118.4 kB / 1.297 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005138/0.3463, allocations: 3.591 MB / 1.301 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.3468, allocations: 0.8107 MB / 1.301 GB, free: 8.883 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002002/0.347, allocations: 55.2 kB / 1.301 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/0.3472, allocations: 127.4 kB / 1.302 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of SimCode: time 1.453e-06/0.3472, allocations: 0 / 1.302 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04082/0.388, allocations: 8.783 MB / 1.31 GB, free: 40 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.71, allocations: 14.84 kB / 1.31 GB, free: 32 kB / 0.9981 GB " [Timeout remaining time 287] (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/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: 19.55452423216775]