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.001064/0.001064, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001133/0.001133, allocations: 189.1 kB / 16.25 MB, free: 6.633 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.491/1.491, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.494/2.494, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.00154, allocations: 60.09 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8138/0.8154, allocations: 140.4 MB / 0.9491 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.004007/0.8195, allocations: 2.091 MB / 0.9511 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.8206, allocations: 0.6897 MB / 0.9518 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.8207, allocations: 4.938 kB / 0.9518 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.8209, allocations: 22.33 kB / 0.9518 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.718e-05/0.821, allocations: 26.84 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.8214, allocations: 145.8 kB / 0.952 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.8218, allocations: 408.5 kB / 0.9524 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003328/0.8221, allocations: 246.9 kB / 0.9526 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.8223, allocations: 140.5 kB / 0.9528 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.8224, allocations: 142 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.8225, allocations: 38.94 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.704e-05/0.8226, allocations: 52.3 kB / 0.953 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.514e-05/0.8227, allocations: 82.91 kB / 0.9531 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.8228, allocations: 163.7 kB / 0.9532 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003149/0.8231, allocations: 410.2 kB / 0.9536 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.8231, allocations: 0.9688 kB / 0.9536 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8231, allocations: 3.984 kB / 0.9536 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.8231, allocations: 0 / 0.9536 GB, free: 5.898 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.0008023/0.8239, allocations: 0.6021 MB / 0.9542 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.824, allocations: 13.88 kB / 0.9542 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.8241, allocations: 32.84 kB / 0.9543 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.8243, allocations: 270.1 kB / 0.9545 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-05/0.8244, allocations: 28.12 kB / 0.9545 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/0.8244, allocations: 34.27 kB / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005728/0.825, allocations: 334.9 kB / 0.9549 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.825, allocations: 0 / 0.9549 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.8251, allocations: 14.97 kB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.8251, allocations: 7.688 kB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005215/0.8256, allocations: 257.4 kB / 0.9552 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.8269, allocations: 0.9528 MB / 0.9561 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005725/0.8275, allocations: 267.5 kB / 0.9563 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.8277, allocations: 121.3 kB / 0.9565 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.8278, allocations: 11.97 kB / 0.9565 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.8282, allocations: 174 kB / 0.9566 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.793e-06/0.8282, allocations: 0 / 0.9566 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0007969/0.829, allocations: 355.6 kB / 0.957 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.829, allocations: 64.89 kB / 0.957 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.8292, allocations: 198.1 kB / 0.9572 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.8293, allocations: 44.58 kB / 0.9573 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.8293, allocations: 148.9 kB / 0.9574 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.638e-05/0.8294, allocations: 87.19 kB / 0.9575 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.8295, allocations: 84.3 kB / 0.9576 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.082e-05/0.8296, allocations: 340.3 kB / 0.9579 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.8299, allocations: 110.1 kB / 0.958 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.8301, allocations: 164.1 kB / 0.9582 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004309/0.8306, allocations: 254.1 kB / 0.9584 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.8306, allocations: 3.938 kB / 0.9584 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006485/0.8312, allocations: 371.6 kB / 0.9588 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.8313, allocations: 36.34 kB / 0.9588 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.8313, allocations: 5.125 kB / 0.9588 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.8313, allocations: 3.531 kB / 0.9588 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.8315, allocations: 44.06 kB / 0.9588 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.8315, allocations: 3.375 kB / 0.9589 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.8318, allocations: 53.53 kB / 0.9589 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.8318, allocations: 18.05 kB / 0.9589 GB, free: 1.82 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.0001503/0.832, allocations: 175.2 kB / 0.9591 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.832, allocations: 22.25 kB / 0.9591 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006248/0.8327, allocations: 303.8 kB / 0.9594 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.8327, allocations: 3.25 kB / 0.9594 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.8327, allocations: 5.125 kB / 0.9594 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.8327, allocations: 0 / 0.9594 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.8338, allocations: 0.7524 MB / 0.9601 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.8338, allocations: 0 / 0.9601 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.834, allocations: 32.12 kB / 0.9602 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.834, allocations: 1.594 kB / 0.9602 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.834, allocations: 10.25 kB / 0.9602 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.834, allocations: 5.312 kB / 0.9602 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.834, allocations: 1.5 kB / 0.9602 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/0.8346, allocations: 370.3 kB / 0.9605 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.8346, allocations: 99.45 kB / 0.9606 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.301e-05/0.8347, allocations: 6.219 kB / 0.9606 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.8349, allocations: 40.7 kB / 0.9607 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.835, allocations: 36.42 kB / 0.9607 GB, free: 476 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.8351, allocations: 11.12 kB / 0.9607 GB, free: 472 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.888e-05/0.8352, allocations: 136 kB / 0.9609 GB, free: 364 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.032e-06/0.8352, allocations: 0 / 0.9609 GB, free: 364 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003831/0.8356, allocations: 69.53 kB / 0.9609 GB, free: 344 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.0002278/0.8358, allocations: 119.7 kB / 0.961 GB, free: 244 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007815/0.8366, allocations: 352.7 kB / 0.9614 GB, free: 44 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.8366, allocations: 1.375 kB / 0.9614 GB, free: 44 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.8369, allocations: 135.5 kB / 0.9615 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.8373, allocations: 41.81 kB / 0.9615 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.8384, allocations: 0.5488 MB / 0.9621 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.8388, allocations: 0.764 MB / 0.9628 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001313/0.8389, allocations: 30.91 kB / 0.9629 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.092e-05/0.839, allocations: 28.66 kB / 0.9629 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of SimCode: time 3e-07/0.839, allocations: 1.188 kB / 0.9629 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of Templates: time 0.007592/0.8466, allocations: 3 MB / 0.9658 GB, free: 13.31 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