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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01273/0.01273, allocations: 100.3 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002684/0.002684, allocations: 189 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.609/2.609, allocations: 472.6 MB / 0.7453 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 67.91 kB / 1.069 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7807/0.7822, allocations: 159.9 MB / 1.226 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003888/0.7861, allocations: 2.008 MB / 1.228 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.7877, allocations: 0.6856 MB / 1.228 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.7878, allocations: 11.88 kB / 1.228 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.788, allocations: 31.61 kB / 1.228 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.7881, allocations: 39.59 kB / 1.228 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004818/0.7886, allocations: 159.8 kB / 1.228 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004548/0.7891, allocations: 403.3 kB / 1.229 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003806/0.7895, allocations: 251.8 kB / 1.229 GB, free: 9.961 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.7897, allocations: 135.6 kB / 1.229 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.7899, allocations: 147.4 kB / 1.229 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.336e-05/0.79, allocations: 40 kB / 1.229 GB, free: 9.645 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.7901, allocations: 44 kB / 1.229 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.7903, allocations: 87.73 kB / 1.23 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.7904, allocations: 155.3 kB / 1.23 GB, free: 9.363 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005261/0.7909, allocations: 438.9 kB / 1.23 GB, free: 8.938 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.791, allocations: 4 kB / 1.23 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.764e-06/0.791, allocations: 0 / 1.23 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.362e-05/0.791, allocations: 0 / 1.23 GB, free: 8.934 MB / 0.9512 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.001008/0.792, allocations: 0.6065 MB / 1.231 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.7921, allocations: 12.03 kB / 1.231 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.781e-05/0.7922, allocations: 40.73 kB / 1.231 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/0.7925, allocations: 271.8 kB / 1.231 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.7926, allocations: 29.03 kB / 1.231 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.715e-05/0.7926, allocations: 32.38 kB / 1.231 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006461/0.7933, allocations: 341.2 kB / 1.231 GB, free: 7.508 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.7933, allocations: 0 / 1.231 GB, free: 7.508 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.7933, allocations: 12 kB / 1.231 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.7934, allocations: 8 kB / 1.231 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005716/0.7939, allocations: 258 kB / 1.232 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.7954, allocations: 0.9514 MB / 1.233 GB, free: 6.23 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000616/0.796, allocations: 265.1 kB / 1.233 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.7963, allocations: 128.8 kB / 1.233 GB, free: 5.836 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.7963, allocations: 4 kB / 1.233 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.7967, allocations: 175.8 kB / 1.233 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=32): time 2.074e-06/0.7967, allocations: 0 / 1.233 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of matching and sorting (n=32): time 0.000791/0.7975, allocations: 361.3 kB / 1.233 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.7975, allocations: 59.39 kB / 1.234 GB, free: 5.219 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/0.7977, allocations: 203.9 kB / 1.234 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.7978, allocations: 49.64 kB / 1.234 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.407e-05/0.7979, allocations: 152.8 kB / 1.234 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.7979, allocations: 83.38 kB / 1.234 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.7981, allocations: 86.06 kB / 1.234 GB, free: 4.625 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.7982, allocations: 342.8 kB / 1.234 GB, free: 4.281 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/0.7984, allocations: 112.8 kB / 1.235 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000279/0.7987, allocations: 161.5 kB / 1.235 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004613/0.7992, allocations: 262.6 kB / 1.235 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.7992, allocations: 0 / 1.235 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006687/0.7999, allocations: 374.8 kB / 1.235 GB, free: 3.332 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.7999, allocations: 33.69 kB / 1.235 GB, free: 3.293 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.7999, allocations: 4 kB / 1.235 GB, free: 3.289 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.8, allocations: 4 kB / 1.235 GB, free: 3.285 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.8002, allocations: 47.84 kB / 1.235 GB, free: 3.238 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.8002, allocations: 0 / 1.235 GB, free: 3.238 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.8004, allocations: 59.78 kB / 1.235 GB, free: 3.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.8005, allocations: 19.98 kB / 1.235 GB, free: 3.16 MB / 0.9512 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.0001586/0.8007, allocations: 169.7 kB / 1.236 GB, free: 2.984 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.8007, allocations: 23.8 kB / 1.236 GB, free: 2.961 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006045/0.8013, allocations: 299.2 kB / 1.236 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.8013, allocations: 8 kB / 1.236 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.8013, allocations: 0 / 1.236 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.8013, allocations: 4 kB / 1.236 GB, free: 2.652 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.8024, allocations: 0.7459 MB / 1.237 GB, free: 1.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.8024, allocations: 0 / 1.237 GB, free: 1.852 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.8026, allocations: 27.92 kB / 1.237 GB, free: 1.824 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.8026, allocations: 4 kB / 1.237 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.8026, allocations: 11.98 kB / 1.237 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.8026, allocations: 7.938 kB / 1.237 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8026, allocations: 0 / 1.237 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005534/0.8032, allocations: 376.5 kB / 1.237 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.211e-05/0.8032, allocations: 100.9 kB / 1.237 GB, free: 1.301 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.8033, allocations: 8 kB / 1.237 GB, free: 1.293 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.8035, allocations: 39.89 kB / 1.237 GB, free: 1.254 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.8037, allocations: 39.89 kB / 1.237 GB, free: 1.215 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.8037, allocations: 12 kB / 1.237 GB, free: 1.203 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.283e-05/0.8038, allocations: 135.5 kB / 1.237 GB, free: 1.07 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8038, allocations: 0 / 1.237 GB, free: 1.07 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003441/0.8041, allocations: 67.89 kB / 1.237 GB, free: 1.004 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.active,wseCon.off.active,$cse1,$cse2,$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 (34): * Single equations (assignments): 28 * 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.0001569/0.8043, allocations: 121.5 kB / 1.238 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000637/0.8049, allocations: 335.1 kB / 1.238 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.805, allocations: 3.938 kB / 1.238 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.8052, allocations: 132.1 kB / 1.238 GB, free: 412 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.8056, allocations: 37.39 kB / 1.238 GB, free: 376 kB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007927/0.8064, allocations: 460.4 kB / 1.238 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.8067, allocations: 0.7564 MB / 1.239 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001111/0.8068, allocations: 34.28 kB / 1.239 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.341e-05/0.8069, allocations: 39.36 kB / 1.239 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of SimCode: time 2.61e-07/0.8069, allocations: 3.938 kB / 1.239 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of Templates: time 0.006263/0.8132, allocations: 3.14 MB / 1.242 GB, free: 11.91 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches