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.0009899/0.0009897, allocations: 98.88 kB / 16.02 MB, free: 76 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.001277/0.001277, allocations: 182.3 kB / 16.92 MB, free: 6.914 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.407/1.407, allocations: 223.3 MB / 241 MB, free: 5.328 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.491/2.491, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003749/0.0003749, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7543/0.7547, allocations: 142.4 MB / 0.9557 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002305/0.757, allocations: 1.74 MB / 0.9574 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.7584, allocations: 0.6924 MB / 0.9581 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002576/0.7587, allocations: 4.312 kB / 0.9581 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.7588, allocations: 22.7 kB / 0.9581 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.759, allocations: 26.72 kB / 0.9581 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004822/0.7595, allocations: 140.6 kB / 0.9583 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004581/0.7599, allocations: 370.9 kB / 0.9586 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003883/0.7603, allocations: 211.4 kB / 0.9588 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001796/0.7605, allocations: 109 kB / 0.9589 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.7607, allocations: 110.3 kB / 0.959 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.7608, allocations: 12.88 kB / 0.9591 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.393e-05/0.7609, allocations: 24.64 kB / 0.9591 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.179e-05/0.7609, allocations: 51.98 kB / 0.9591 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.7611, allocations: 153.8 kB / 0.9593 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000283/0.7613, allocations: 305.2 kB / 0.9596 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.7614, allocations: 0 / 0.9596 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.384e-06/0.7614, allocations: 0 / 0.9596 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.599e-05/0.7614, allocations: 1.062 kB / 0.9596 GB, free: 4.637 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.0008818/0.7623, allocations: 0.5502 MB / 0.9601 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.7623, allocations: 8.438 kB / 0.9601 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.7624, allocations: 33 kB / 0.9601 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.7627, allocations: 270.3 kB / 0.9604 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.7627, allocations: 31.7 kB / 0.9604 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.566e-05/0.7628, allocations: 30.03 kB / 0.9605 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.7635, allocations: 346.1 kB / 0.9608 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.7635, allocations: 0 / 0.9608 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.7635, allocations: 14.05 kB / 0.9608 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.7635, allocations: 7.438 kB / 0.9608 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005698/0.7641, allocations: 263.3 kB / 0.9611 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.7654, allocations: 0.9556 MB / 0.962 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006416/0.766, allocations: 270.9 kB / 0.9622 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002626/0.7663, allocations: 138.5 kB / 0.9624 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.7663, allocations: 3.25 kB / 0.9624 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004189/0.7668, allocations: 179 kB / 0.9626 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.753e-06/0.7668, allocations: 0.6875 kB / 0.9626 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0008646/0.7676, allocations: 375.1 kB / 0.9629 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.7677, allocations: 64.11 kB / 0.963 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.7679, allocations: 203.5 kB / 0.9632 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.7679, allocations: 42.94 kB / 0.9632 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.6e-05/0.768, allocations: 150.2 kB / 0.9634 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.569e-05/0.7681, allocations: 81.88 kB / 0.9634 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.631e-05/0.7681, allocations: 58.23 kB / 0.9635 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.389e-05/0.7682, allocations: 344.8 kB / 0.9638 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.7685, allocations: 113.9 kB / 0.9639 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.7688, allocations: 170.7 kB / 0.9641 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004602/0.7692, allocations: 264 kB / 0.9643 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.7692, allocations: 0 / 0.9643 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006889/0.7699, allocations: 381.7 kB / 0.9647 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.586e-05/0.77, allocations: 35.67 kB / 0.9647 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.77, allocations: 1.438 kB / 0.9647 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.77, allocations: 2.688 kB / 0.9647 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.7702, allocations: 51.56 kB / 0.9648 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.7702, allocations: 3.031 kB / 0.9648 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.7705, allocations: 58.59 kB / 0.9648 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.7706, allocations: 18.08 kB / 0.9649 GB, free: 0.6133 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.0001569/0.7707, allocations: 171.9 kB / 0.965 GB, free: 472 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.7708, allocations: 26.3 kB / 0.9651 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000616/0.7714, allocations: 325.6 kB / 0.9654 GB, free: 272 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.7714, allocations: 3.469 kB / 0.9654 GB, free: 272 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.7714, allocations: 0 / 0.9654 GB, free: 272 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.7714, allocations: 3.875 kB / 0.9654 GB, free: 272 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.7726, allocations: 0.7592 MB / 0.9661 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.7726, allocations: 0 / 0.9661 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.7728, allocations: 35.34 kB / 0.9661 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.7728, allocations: 5.125 kB / 0.9662 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.7728, allocations: 5.719 kB / 0.9662 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.7728, allocations: 5.969 kB / 0.9662 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.7728, allocations: 4 kB / 0.9662 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006093/0.7734, allocations: 378.2 kB / 0.9665 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.06e-05/0.7735, allocations: 98.95 kB / 0.9666 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.7736, allocations: 10.16 kB / 0.9666 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.7738, allocations: 41.67 kB / 0.9667 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.7739, allocations: 40.67 kB / 0.9667 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.774, allocations: 11.38 kB / 0.9667 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001166/0.7741, allocations: 135.5 kB / 0.9669 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7741, allocations: 4 kB / 0.9669 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003527/0.7744, allocations: 65.88 kB / 0.9669 GB, free: 15.12 MB / 0.7325 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.000189/0.7746, allocations: 127.6 kB / 0.967 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006993/0.7753, allocations: 348.1 kB / 0.9674 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7754, allocations: 0.7812 kB / 0.9674 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003043/0.7757, allocations: 143.3 kB / 0.9675 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.776, allocations: 33.22 kB / 0.9675 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009595/0.777, allocations: 0.5646 MB / 0.9681 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.7774, allocations: 0.7561 MB / 0.9688 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.49e-05/0.7775, allocations: 28.8 kB / 0.9689 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.7775, allocations: 0 / 0.9689 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of Templates: time 0.007213/0.7847, allocations: 3.445 MB / 0.9722 GB, free: 11.79 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