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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 108 kB / 15.61 MB, free: 148 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.001304/0.001304, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.239/1.239, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.167/2.167, allocations: 390.2 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 67.89 kB / 0.8127 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4879/0.4892, allocations: 140.4 MB / 0.9497 GB, free: 9.359 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00253/0.4918, allocations: 2.011 MB / 0.9517 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008314/0.4926, allocations: 0.6815 MB / 0.9524 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.845e-05/0.4927, allocations: 3.469 kB / 0.9524 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.4928, allocations: 39.64 kB / 0.9524 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.944e-05/0.4929, allocations: 34.38 kB / 0.9524 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.4933, allocations: 161 kB / 0.9526 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.4936, allocations: 403.5 kB / 0.953 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.4938, allocations: 251.6 kB / 0.9532 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.494, allocations: 136.5 kB / 0.9533 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.4941, allocations: 150.2 kB / 0.9535 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.236e-05/0.4942, allocations: 39.72 kB / 0.9535 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.068e-05/0.4942, allocations: 47.44 kB / 0.9536 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.982e-05/0.4943, allocations: 79.62 kB / 0.9536 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.4944, allocations: 153.5 kB / 0.9538 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.4947, allocations: 413.4 kB / 0.9542 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.4947, allocations: 5.188 kB / 0.9542 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4947, allocations: 4 kB / 0.9542 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.4947, allocations: 0 / 0.9542 GB, free: 5.906 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.0006899/0.4954, allocations: 0.5937 MB / 0.9548 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.4954, allocations: 9.656 kB / 0.9548 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.143e-05/0.4955, allocations: 68.81 kB / 0.9548 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.04e-05/0.4956, allocations: 33.09 kB / 0.9549 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.4958, allocations: 277.7 kB / 0.9551 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.4958, allocations: 28.5 kB / 0.9552 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.4959, allocations: 35.25 kB / 0.9552 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005147/0.4964, allocations: 343.4 kB / 0.9555 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.4964, allocations: 0 / 0.9555 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.617e-05/0.4964, allocations: 11.5 kB / 0.9555 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4964, allocations: 7.094 kB / 0.9556 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005009/0.4969, allocations: 248.9 kB / 0.9558 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.4981, allocations: 0.9636 MB / 0.9567 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/0.4986, allocations: 263.6 kB / 0.957 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.4988, allocations: 122.7 kB / 0.9571 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.4989, allocations: 1.75 kB / 0.9571 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003215/0.4992, allocations: 187.3 kB / 0.9573 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=32): time 1.723e-06/0.4992, allocations: 0 / 0.9573 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=32): time 0.0007186/0.4999, allocations: 348.1 kB / 0.9576 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.5, allocations: 55.53 kB / 0.9577 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.5001, allocations: 203.5 kB / 0.9579 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.5001, allocations: 43.2 kB / 0.9579 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.107e-05/0.5002, allocations: 154.3 kB / 0.958 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.581e-05/0.5002, allocations: 81.78 kB / 0.9581 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-05/0.5003, allocations: 89.39 kB / 0.9582 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.254e-05/0.5004, allocations: 339.9 kB / 0.9585 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002411/0.5006, allocations: 109.2 kB / 0.9586 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.5009, allocations: 164.8 kB / 0.9588 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.5013, allocations: 258.3 kB / 0.959 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5013, allocations: 0 / 0.959 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005957/0.5019, allocations: 359.7 kB / 0.9594 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.502, allocations: 37.98 kB / 0.9594 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.502, allocations: 5.125 kB / 0.9594 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.502, allocations: 3.25 kB / 0.9594 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.5022, allocations: 48.41 kB / 0.9595 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.5022, allocations: 2.312 kB / 0.9595 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.5024, allocations: 61.45 kB / 0.9595 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.5025, allocations: 14.81 kB / 0.9595 GB, free: 1.77 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.0001223/0.5026, allocations: 183.2 kB / 0.9597 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.5026, allocations: 22.31 kB / 0.9597 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005563/0.5032, allocations: 299.4 kB / 0.96 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.5032, allocations: 3.344 kB / 0.96 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.5032, allocations: 1.188 kB / 0.96 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5032, allocations: 3.984 kB / 0.96 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008849/0.5041, allocations: 0.7549 MB / 0.9608 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.5041, allocations: 5.453 kB / 0.9608 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.5043, allocations: 27.23 kB / 0.9608 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.5043, allocations: 2.281 kB / 0.9608 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.5043, allocations: 5.375 kB / 0.9608 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.5043, allocations: 1.375 kB / 0.9608 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.5043, allocations: 4 kB / 0.9608 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.5048, allocations: 375.8 kB / 0.9612 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.89e-05/0.5048, allocations: 98.92 kB / 0.9613 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.651e-05/0.5049, allocations: 14.52 kB / 0.9613 GB, free: 452 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.5051, allocations: 31.88 kB / 0.9613 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.951e-05/0.5052, allocations: 37.02 kB / 0.9614 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.5052, allocations: 15.11 kB / 0.9614 GB, free: 408 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.922e-05/0.5053, allocations: 132.4 kB / 0.9615 GB, free: 304 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5053, allocations: 0 / 0.9615 GB, free: 304 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002985/0.5056, allocations: 68.69 kB / 0.9616 GB, free: 284 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.0007905/0.5064, allocations: 0.9281 MB / 0.9625 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000674/0.5071, allocations: 353.9 kB / 0.9628 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5071, allocations: 5.281 kB / 0.9628 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.5074, allocations: 143.3 kB / 0.9629 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.5077, allocations: 31.05 kB / 0.963 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.5109, allocations: 2.637 MB / 0.9655 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.5113, allocations: 0.7568 MB / 0.9663 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001068/0.5114, allocations: 34.59 kB / 0.9663 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.5115, allocations: 88.95 kB / 0.9664 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.5115, allocations: 0 / 0.9664 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02078/0.5323, allocations: 5.547 MB / 0.9718 GB, free: 9.633 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.897/7.43, allocations: 14.09 kB / 0.9718 GB, free: 9.625 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv","/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