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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001533/0.001541, allocations: 108 kB / 15.6 MB, free: 132 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.002208/0.002208, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.484/1.484, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.519/2.519, allocations: 390.2 MB / 0.6646 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 67.89 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7278/0.7293, allocations: 140.3 MB / 0.9496 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002879/0.7322, allocations: 2.02 MB / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009751/0.7332, allocations: 0.6765 MB / 0.9522 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.7333, allocations: 12.66 kB / 0.9522 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.7334, allocations: 30.45 kB / 0.9523 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.113e-05/0.7335, allocations: 38.94 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.7339, allocations: 156.5 kB / 0.9524 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003701/0.7343, allocations: 408.2 kB / 0.9528 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.7346, allocations: 249.2 kB / 0.9531 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.7347, allocations: 136.8 kB / 0.9532 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.7348, allocations: 145.4 kB / 0.9533 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.7349, allocations: 39.44 kB / 0.9534 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.472e-05/0.735, allocations: 47.78 kB / 0.9534 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.773e-05/0.7351, allocations: 87.17 kB / 0.9535 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.7352, allocations: 150.2 kB / 0.9537 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003081/0.7355, allocations: 419.9 kB / 0.9541 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.7355, allocations: 0 / 0.9541 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7355, allocations: 0 / 0.9541 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.7355, allocations: 5.062 kB / 0.9541 GB, free: 5.738 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.0007817/0.7363, allocations: 0.597 MB / 0.9546 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.7364, allocations: 9.438 kB / 0.9547 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.747e-05/0.7364, allocations: 38.14 kB / 0.9547 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.7367, allocations: 269.6 kB / 0.9549 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.7367, allocations: 28.16 kB / 0.955 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.486e-05/0.7368, allocations: 34.44 kB / 0.955 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000545/0.7373, allocations: 342.9 kB / 0.9553 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.7373, allocations: 4 kB / 0.9553 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.7374, allocations: 11.59 kB / 0.9553 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.7374, allocations: 7.312 kB / 0.9554 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000515/0.7379, allocations: 249.9 kB / 0.9556 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.7391, allocations: 0.9641 MB / 0.9565 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000563/0.7396, allocations: 263.2 kB / 0.9568 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.7399, allocations: 121.1 kB / 0.9569 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.7399, allocations: 8.016 kB / 0.9569 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003821/0.7403, allocations: 179.2 kB / 0.9571 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.7403, allocations: 0 / 0.9571 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0007689/0.7411, allocations: 354.5 kB / 0.9574 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.7411, allocations: 57.34 kB / 0.9575 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.7413, allocations: 202.4 kB / 0.9577 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.7413, allocations: 39.45 kB / 0.9577 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.7414, allocations: 149.9 kB / 0.9578 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.7414, allocations: 90.95 kB / 0.9579 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.7415, allocations: 88.61 kB / 0.958 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.621e-05/0.7416, allocations: 336.3 kB / 0.9583 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.7419, allocations: 108.4 kB / 0.9584 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.7422, allocations: 165.5 kB / 0.9586 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.7426, allocations: 258.4 kB / 0.9588 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.7426, allocations: 4 kB / 0.9588 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000638/0.7432, allocations: 363.2 kB / 0.9592 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.7433, allocations: 32.48 kB / 0.9592 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.7433, allocations: 1.188 kB / 0.9592 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.7433, allocations: 3.438 kB / 0.9592 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.7435, allocations: 39.97 kB / 0.9593 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.7435, allocations: 7.188 kB / 0.9593 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.7438, allocations: 64.95 kB / 0.9593 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.7438, allocations: 14.91 kB / 0.9593 GB, free: 1.664 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.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.0001477/0.744, allocations: 183.3 kB / 0.9595 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.744, allocations: 21.53 kB / 0.9595 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005997/0.7446, allocations: 296.4 kB / 0.9598 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.7447, allocations: 3.812 kB / 0.9598 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.7447, allocations: 0 / 0.9598 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.7447, allocations: 9.391 kB / 0.9598 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009276/0.7456, allocations: 0.7501 MB / 0.9606 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.7456, allocations: 4.891 kB / 0.9606 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.7458, allocations: 32.3 kB / 0.9606 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.7458, allocations: 5.031 kB / 0.9606 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.7458, allocations: 6.062 kB / 0.9606 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.7458, allocations: 5.5 kB / 0.9606 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.7458, allocations: 3.984 kB / 0.9606 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005242/0.7463, allocations: 363.9 kB / 0.961 GB, free: 472 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.307e-05/0.7464, allocations: 99.2 kB / 0.9611 GB, free: 360 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.7464, allocations: 10.3 kB / 0.9611 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.7467, allocations: 33 kB / 0.9611 GB, free: 336 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.7468, allocations: 40.17 kB / 0.9611 GB, free: 312 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.7468, allocations: 14.55 kB / 0.9612 GB, free: 304 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.35e-05/0.7469, allocations: 132.1 kB / 0.9613 GB, free: 200 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7469, allocations: 3.938 kB / 0.9613 GB, free: 196 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003222/0.7472, allocations: 65.88 kB / 0.9614 GB, free: 180 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.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.0001426/0.7474, allocations: 120.9 kB / 0.9615 GB, free: 76 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007097/0.7481, allocations: 356.4 kB / 0.9618 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.7481, allocations: 0 / 0.9618 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.7484, allocations: 136.3 kB / 0.9619 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.7487, allocations: 30.77 kB / 0.962 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000836/0.7496, allocations: 475.4 kB / 0.9624 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.7499, allocations: 0.7641 MB / 0.9632 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001163/0.75, allocations: 30.25 kB / 0.9632 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.137e-05/0.7501, allocations: 28.8 kB / 0.9632 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.7501, allocations: 0 / 0.9632 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of Templates: time 0.007061/0.7572, allocations: 3.111 MB / 0.9663 GB, free: 13.18 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/jenkins/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