Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.001612/0.001612, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001764/0.001764, allocations: 221.3 kB / 23 MB, free: 4.91 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.495/1.495, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 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.289/3.289, allocations: 0.5107 GB / 0.8166 GB, free: 17.88 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") [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.00338/0.00338, allocations: 63.72 kB / 1.187 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3823, allocations: 181.9 MB / 1.365 GB, free: 13.62 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003784/0.3861, allocations: 1.987 MB / 1.367 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001531/0.3876, allocations: 0.6975 MB / 1.367 GB, free: 10.92 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.3878, allocations: 7.938 kB / 1.367 GB, free: 10.91 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.388, allocations: 39.59 kB / 1.367 GB, free: 10.87 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.3881, allocations: 35.61 kB / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005364/0.3886, allocations: 167.7 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005843/0.3892, allocations: 411.2 kB / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004232/0.3896, allocations: 208.6 kB / 1.368 GB, free: 10.06 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002295/0.3899, allocations: 139.5 kB / 1.368 GB, free: 9.922 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.3901, allocations: 123.4 kB / 1.368 GB, free: 9.801 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.942e-05/0.3902, allocations: 43.98 kB / 1.368 GB, free: 9.758 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.762e-05/0.3903, allocations: 47.92 kB / 1.368 GB, free: 9.711 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.632e-05/0.3904, allocations: 75.83 kB / 1.368 GB, free: 9.637 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.3905, allocations: 127.4 kB / 1.369 GB, free: 9.512 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005232/0.391, allocations: 438.3 kB / 1.369 GB, free: 9.082 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.391, allocations: 4 kB / 1.369 GB, free: 9.078 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.282e-06/0.391, allocations: 0 / 1.369 GB, free: 9.078 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.391, allocations: 0 / 1.369 GB, free: 9.078 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001005/0.392, allocations: 0.5352 MB / 1.37 GB, free: 8.512 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3921, allocations: 12.03 kB / 1.37 GB, free: 8.5 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002806/0.3924, allocations: 40.73 kB / 1.37 GB, free: 8.461 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.3928, allocations: 214 kB / 1.37 GB, free: 8.227 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.3928, allocations: 29.03 kB / 1.37 GB, free: 8.199 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/0.3929, allocations: 32.38 kB / 1.37 GB, free: 8.168 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006641/0.3936, allocations: 333.4 kB / 1.37 GB, free: 7.828 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3936, allocations: 0 / 1.37 GB, free: 7.828 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.3936, allocations: 16 kB / 1.37 GB, free: 7.812 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3936, allocations: 4 kB / 1.37 GB, free: 7.809 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005854/0.3942, allocations: 250.4 kB / 1.37 GB, free: 7.566 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.3957, allocations: 0.7696 MB / 1.371 GB, free: 6.758 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006784/0.3964, allocations: 254.8 kB / 1.371 GB, free: 6.5 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.3967, allocations: 108.8 kB / 1.372 GB, free: 6.391 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.3967, allocations: 4 kB / 1.372 GB, free: 6.387 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004197/0.3971, allocations: 175.2 kB / 1.372 GB, free: 6.203 MB / 1.061 GB Notification: Performance of pre-optimization done (n=32): time 1.923e-06/0.3971, allocations: 4 kB / 1.372 GB, free: 6.199 MB / 1.061 GB Notification: Performance of matching and sorting (n=32): time 0.0008792/0.398, allocations: 346 kB / 1.372 GB, free: 5.855 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.3981, allocations: 63.34 kB / 1.372 GB, free: 5.781 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.3983, allocations: 191.1 kB / 1.372 GB, free: 5.578 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.409e-05/0.3983, allocations: 41.69 kB / 1.372 GB, free: 5.531 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.3985, allocations: 156.8 kB / 1.372 GB, free: 5.375 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.3986, allocations: 87.31 kB / 1.373 GB, free: 5.289 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.3988, allocations: 82.12 kB / 1.373 GB, free: 5.203 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.3989, allocations: 334.8 kB / 1.373 GB, free: 4.867 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.3992, allocations: 134.5 kB / 1.373 GB, free: 4.73 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.3996, allocations: 191.2 kB / 1.373 GB, free: 4.52 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005212/0.4001, allocations: 271.1 kB / 1.374 GB, free: 4.23 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.4001, allocations: 7.938 kB / 1.374 GB, free: 4.223 MB / 1.061 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007563/0.4009, allocations: 392.8 kB / 1.374 GB, free: 3.82 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/0.4009, allocations: 35.58 kB / 1.374 GB, free: 3.781 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.4009, allocations: 0 / 1.374 GB, free: 3.781 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.4009, allocations: 4 kB / 1.374 GB, free: 3.777 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.4011, allocations: 47.84 kB / 1.374 GB, free: 3.73 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.4012, allocations: 4 kB / 1.374 GB, free: 3.727 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.4014, allocations: 51.81 kB / 1.374 GB, free: 3.676 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.4015, allocations: 19.98 kB / 1.374 GB, free: 3.656 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,wseCon.stateGraphRoot.activeSteps,wseCon.T2.t_start,$PRE.wseCon.T2.t_start,wseCon.T2.fire,wseCon.T2.enableFire,wseCon.T2.localCondition,wseCon.on.oldActive,$PRE.wseCon.on.oldActive,wseCon.on.newActive,$PRE.wseCon.on.newActive,wseCon.on.localActive,$PRE.wseCon.on.localActive,wseCon.on.active,wseCon.T1.t_start,$PRE.wseCon.T1.t_start,wseCon.T1.fire,wseCon.T1.enableFire,wseCon.T1.localCondition,wseCon.off.active,wseCon.off.oldActive,$PRE.wseCon.off.oldActive,wseCon.off.newActive,$PRE.wseCon.off.newActive,wseCon.off.localActive,$PRE.wseCon.off.localActive,wseCHWST.count,$PRE.wseCHWST.count,wseCHWST.T_start,$PRE.wseCHWST.T_start,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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.0002067/0.4017, allocations: 174.8 kB / 1.374 GB, free: 3.48 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.4017, allocations: 23.86 kB / 1.374 GB, free: 3.457 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.273e-05/0.4018, allocations: 26.64 kB / 1.374 GB, free: 3.43 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.4018, allocations: 4 kB / 1.374 GB, free: 3.426 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4018, allocations: 0 / 1.374 GB, free: 3.426 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.4018, allocations: 8 kB / 1.374 GB, free: 3.418 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.4029, allocations: 0.6198 MB / 1.375 GB, free: 2.762 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4029, allocations: 0 / 1.375 GB, free: 2.762 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.4031, allocations: 31.91 kB / 1.375 GB, free: 2.73 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.4031, allocations: 4 kB / 1.375 GB, free: 2.727 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.4031, allocations: 4 kB / 1.375 GB, free: 2.723 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.4031, allocations: 0 / 1.375 GB, free: 2.723 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4031, allocations: 4 kB / 1.375 GB, free: 2.719 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.4037, allocations: 376.2 kB / 1.375 GB, free: 2.332 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.224e-05/0.4037, allocations: 19.8 kB / 1.375 GB, free: 2.312 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.63e-05/0.4038, allocations: 8 kB / 1.375 GB, free: 2.305 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.404, allocations: 31.95 kB / 1.375 GB, free: 2.273 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.4041, allocations: 43.88 kB / 1.375 GB, free: 2.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.4041, allocations: 8 kB / 1.375 GB, free: 2.223 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001011/0.4042, allocations: 124.9 kB / 1.376 GB, free: 2.102 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4042, allocations: 0 / 1.376 GB, free: 2.102 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003393/0.4046, allocations: 67.83 kB / 1.376 GB, free: 2.035 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.active,wseCon.off.active,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001606/0.4047, allocations: 121.2 kB / 1.376 GB, free: 1.906 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006967/0.4054, allocations: 349.2 kB / 1.376 GB, free: 1.547 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4054, allocations: 4.062 kB / 1.376 GB, free: 1.543 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002703/0.4057, allocations: 116.4 kB / 1.376 GB, free: 1.43 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.406, allocations: 31.92 kB / 1.376 GB, free: 1.398 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009389/0.407, allocations: 478.4 kB / 1.377 GB, free: 0.8984 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.4071, allocations: 150.7 kB / 1.377 GB, free: 0.7305 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.616e-05/0.4072, allocations: 27.44 kB / 1.377 GB, free: 0.707 MB / 1.061 GB Notification: Performance of SimCode: time 6.91e-07/0.4072, allocations: 0 / 1.377 GB, free: 0.707 MB / 1.061 GB Notification: Performance of Templates: time 0.006069/0.4133, allocations: 3.331 MB / 1.38 GB, free: 13.39 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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: 11.550255763344467]