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.001344/0.001344, allocations: 107.1 kB / 16.45 MB, free: 5.906 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.001427/0.001427, allocations: 213.6 kB / 19.43 MB, free: 3.602 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.404/1.404, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.124/3.124, allocations: 0.49 GB / 0.7916 GB, free: 33.28 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_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.003028/0.003028, allocations: 61.97 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3609, allocations: 176.1 MB / 1.321 GB, free: 3.348 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.00408/0.365, allocations: 2.269 MB / 1.323 GB, free: 1.062 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002826/0.3678, allocations: 1.419 MB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002643/0.368, allocations: 15.81 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005432/0.3686, allocations: 179.3 kB / 1.325 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005273/0.3691, allocations: 219.1 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.3696, allocations: 183.6 kB / 1.325 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005273/0.3701, allocations: 430.8 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.3703, allocations: 77.48 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.3706, allocations: 179.3 kB / 1.326 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.3708, allocations: 203.2 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.533e-05/0.3708, allocations: 24 kB / 1.326 GB, free: 14.15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002019/0.3711, allocations: 83.91 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.3712, allocations: 111.6 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.3714, allocations: 174.9 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006549/0.372, allocations: 0.494 MB / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 1.528e-05/0.372, allocations: 3.984 kB / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.653e-06/0.372, allocations: 0 / 1.327 GB, free: 13.29 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.3721, allocations: 0 / 1.327 GB, free: 13.29 MB / 1.029 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.001285/0.3733, allocations: 0.7309 MB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.3734, allocations: 15.98 kB / 1.327 GB, free: 12.49 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.615e-05/0.3734, allocations: 46.73 kB / 1.327 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.476e-05/0.3735, allocations: 48.61 kB / 1.327 GB, free: 12.39 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.3742, allocations: 422.5 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.3742, allocations: 16.12 kB / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.3742, allocations: 16 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.3746, allocations: 180.1 kB / 1.328 GB, free: 11.72 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3746, allocations: 3.984 kB / 1.328 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.3746, allocations: 4 kB / 1.328 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3746, allocations: 4 kB / 1.328 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.3749, allocations: 87.89 kB / 1.328 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.3761, allocations: 0.7856 MB / 1.329 GB, free: 10.78 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003548/0.3764, allocations: 129.4 kB / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.3765, allocations: 45.7 kB / 1.329 GB, free: 10.58 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.3766, allocations: 4 kB / 1.329 GB, free: 10.58 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.3768, allocations: 145 kB / 1.329 GB, free: 10.42 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.3768, allocations: 4 kB / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005674/0.3774, allocations: 213.3 kB / 1.329 GB, free: 10.2 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/0.3775, allocations: 106.8 kB / 1.33 GB, free: 10.07 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007693/0.3783, allocations: 0.5954 MB / 1.33 GB, free: 9.465 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.3783, allocations: 33.7 kB / 1.33 GB, free: 9.426 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.3785, allocations: 208.5 kB / 1.33 GB, free: 9.219 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.431e-05/0.3785, allocations: 35.73 kB / 1.33 GB, free: 9.184 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.3787, allocations: 77.58 kB / 1.331 GB, free: 9.102 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002076/0.3789, allocations: 358.7 kB / 1.331 GB, free: 8.742 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.3791, allocations: 104 kB / 1.331 GB, free: 8.641 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002676/0.3794, allocations: 185.7 kB / 1.331 GB, free: 8.438 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.3797, allocations: 187.2 kB / 1.331 GB, free: 8.242 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3797, allocations: 0 / 1.331 GB, free: 8.242 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006208/0.3803, allocations: 347.4 kB / 1.332 GB, free: 7.898 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.3803, allocations: 4 kB / 1.332 GB, free: 7.895 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3803, allocations: 4.5 kB / 1.332 GB, free: 7.891 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3804, allocations: 0 / 1.332 GB, free: 7.891 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.3806, allocations: 51.91 kB / 1.332 GB, free: 7.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3806, allocations: 7.938 kB / 1.332 GB, free: 7.832 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.3808, allocations: 39.86 kB / 1.332 GB, free: 7.793 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/0.3808, allocations: 16 kB / 1.332 GB, free: 7.777 MB / 1.029 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.000236/0.3811, allocations: 203.5 kB / 1.332 GB, free: 7.566 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.183e-05/0.3811, allocations: 39.72 kB / 1.332 GB, free: 7.527 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.485e-05/0.3812, allocations: 43.52 kB / 1.332 GB, free: 7.477 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.3812, allocations: 0 / 1.332 GB, free: 7.477 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3812, allocations: 0 / 1.332 GB, free: 7.477 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.3812, allocations: 3.984 kB / 1.332 GB, free: 7.473 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.3816, allocations: 341.3 kB / 1.332 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3816, allocations: 0 / 1.332 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.591e-05/0.3816, allocations: 11.94 kB / 1.332 GB, free: 7.078 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3816, allocations: 4 kB / 1.332 GB, free: 7.074 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.3817, allocations: 8 kB / 1.332 GB, free: 7.066 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3817, allocations: 0 / 1.332 GB, free: 7.066 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3817, allocations: 0 / 1.332 GB, free: 7.066 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003921/0.3821, allocations: 209.6 kB / 1.333 GB, free: 6.84 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.3822, allocations: 128.8 kB / 1.333 GB, free: 6.695 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.3822, allocations: 12 kB / 1.333 GB, free: 6.684 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.3824, allocations: 15.97 kB / 1.333 GB, free: 6.668 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.3824, allocations: 19.97 kB / 1.333 GB, free: 6.648 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.3825, allocations: 12 kB / 1.333 GB, free: 6.637 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004645/0.3829, allocations: 367.1 kB / 1.333 GB, free: 6.281 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3829, allocations: 0 / 1.333 GB, free: 6.281 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003461/0.3833, allocations: 71.83 kB / 1.333 GB, free: 6.211 MB / 1.029 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.002172/0.3854, allocations: 1.073 MB / 1.334 GB, free: 5.266 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000467/0.3859, allocations: 192.5 kB / 1.334 GB, free: 5.078 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.3859, allocations: 4.188 kB / 1.334 GB, free: 5.074 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.3861, allocations: 47.92 kB / 1.334 GB, free: 5.027 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/0.3866, allocations: 98.64 kB / 1.335 GB, free: 4.941 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005/0.3916, allocations: 3.592 MB / 1.338 GB, free: 1.223 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.3921, allocations: 0.8145 MB / 1.339 GB, free: 392 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001808/0.3923, allocations: 63.17 kB / 1.339 GB, free: 332 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002145/0.3925, allocations: 135.4 kB / 1.339 GB, free: 200 kB / 1.029 GB Notification: Performance of SimCode: time 9.91e-07/0.3925, allocations: 0 / 1.339 GB, free: 200 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.4295, allocations: 8.502 MB / 1.347 GB, free: 7.816 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.883/9.312, allocations: 11.3 kB / 1.347 GB, free: 7.809 MB / 1.045 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 15.973140059038997]