Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: 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_9_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_9_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.001635/0.001635, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002141/0.002141, allocations: 196.2 kB / 16.79 MB, free: 6.809 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.456/1.456, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.568/2.568, allocations: 390.2 MB / 0.6649 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 71.89 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.648/0.6494, allocations: 140.3 MB / 0.9496 GB, free: 9.258 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003146/0.6526, allocations: 2.095 MB / 0.9516 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.6538, allocations: 0.6998 MB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.6539, allocations: 5.062 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.6541, allocations: 18.48 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.958e-05/0.6542, allocations: 28.45 kB / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003619/0.6545, allocations: 143.5 kB / 0.9525 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.6549, allocations: 371 kB / 0.9529 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003011/0.6552, allocations: 224.2 kB / 0.9531 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.6553, allocations: 120.3 kB / 0.9532 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.6555, allocations: 138.5 kB / 0.9533 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.6555, allocations: 19.03 kB / 0.9533 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.52e-05/0.6556, allocations: 28.77 kB / 0.9534 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.487e-05/0.6557, allocations: 59.98 kB / 0.9534 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.6558, allocations: 134.9 kB / 0.9536 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.6561, allocations: 317.2 kB / 0.9539 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.6561, allocations: 3.938 kB / 0.9539 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6561, allocations: 4 kB / 0.9539 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.6561, allocations: 0 / 0.9539 GB, free: 5.961 MB / 0.7169 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.0008397/0.6569, allocations: 0.6017 MB / 0.9544 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.657, allocations: 9.469 kB / 0.9545 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.636e-05/0.6571, allocations: 32.94 kB / 0.9545 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.6574, allocations: 268.5 kB / 0.9547 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.6574, allocations: 32.31 kB / 0.9548 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.363e-05/0.6575, allocations: 34.36 kB / 0.9548 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006001/0.6581, allocations: 338.7 kB / 0.9551 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.6581, allocations: 0.9375 kB / 0.9551 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.6582, allocations: 10.28 kB / 0.9551 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.6582, allocations: 11.02 kB / 0.9552 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005561/0.6587, allocations: 250.2 kB / 0.9554 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.66, allocations: 0.957 MB / 0.9563 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005585/0.6605, allocations: 260.9 kB / 0.9566 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.6608, allocations: 122.7 kB / 0.9567 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.6608, allocations: 7.531 kB / 0.9567 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004016/0.6612, allocations: 181.9 kB / 0.9569 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.694e-06/0.6612, allocations: 0 / 0.9569 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0007874/0.662, allocations: 355.2 kB / 0.9572 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.6621, allocations: 60.95 kB / 0.9573 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.6622, allocations: 198.7 kB / 0.9575 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.6623, allocations: 48.33 kB / 0.9575 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.436e-05/0.6623, allocations: 152.9 kB / 0.9577 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.544e-05/0.6624, allocations: 90.98 kB / 0.9577 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.6625, allocations: 85.81 kB / 0.9578 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.664e-05/0.6626, allocations: 338.9 kB / 0.9581 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.6628, allocations: 109.3 kB / 0.9582 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/0.6631, allocations: 165.1 kB / 0.9584 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.6635, allocations: 257.9 kB / 0.9587 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.6635, allocations: 0 / 0.9587 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006056/0.6641, allocations: 363.9 kB / 0.959 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.6642, allocations: 39.19 kB / 0.959 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6642, allocations: 2.75 kB / 0.959 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.6642, allocations: 2.75 kB / 0.959 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.6644, allocations: 47.78 kB / 0.9591 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.6644, allocations: 3.5 kB / 0.9591 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.6647, allocations: 57.56 kB / 0.9591 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.629e-05/0.6647, allocations: 18.05 kB / 0.9592 GB, free: 1.887 MB / 0.7169 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.condition,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.condition,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.0001425/0.6649, allocations: 176 kB / 0.9593 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.376e-05/0.6649, allocations: 21.31 kB / 0.9593 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005974/0.6655, allocations: 303.4 kB / 0.9596 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.6655, allocations: 4.25 kB / 0.9596 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.6655, allocations: 0 / 0.9596 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.6655, allocations: 0 / 0.9596 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000965/0.6665, allocations: 0.7493 MB / 0.9604 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.6665, allocations: 0 / 0.9604 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.6667, allocations: 32.22 kB / 0.9604 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.6667, allocations: 1.188 kB / 0.9604 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.6667, allocations: 6.25 kB / 0.9604 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.6667, allocations: 9 kB / 0.9604 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6667, allocations: 1.188 kB / 0.9604 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004959/0.6672, allocations: 375.5 kB / 0.9608 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.418e-05/0.6673, allocations: 99.3 kB / 0.9609 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.6673, allocations: 6.219 kB / 0.9609 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.6675, allocations: 40.27 kB / 0.9609 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.6676, allocations: 36.61 kB / 0.961 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.6677, allocations: 15.58 kB / 0.961 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.583e-05/0.6678, allocations: 132.1 kB / 0.9611 GB, free: 436 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6678, allocations: 0 / 0.9611 GB, free: 436 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003336/0.6681, allocations: 64.78 kB / 0.9612 GB, free: 420 kB / 0.7169 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.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,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.0001443/0.6682, allocations: 133 kB / 0.9613 GB, free: 308 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005878/0.6688, allocations: 334.3 kB / 0.9616 GB, free: 124 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.6689, allocations: 4 kB / 0.9616 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002545/0.6691, allocations: 134 kB / 0.9617 GB, free: 64 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.6695, allocations: 39.45 kB / 0.9618 GB, free: 40 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008974/0.6704, allocations: 0.5617 MB / 0.9623 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.6707, allocations: 0.756 MB / 0.9631 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.937e-05/0.6708, allocations: 28.08 kB / 0.9631 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of SimCode: time 3.11e-07/0.6708, allocations: 1.188 kB / 0.9631 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of Templates: time 0.005615/0.6764, allocations: 3.482 MB / 0.9665 GB, free: 13.03 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches