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.005257/0.005257, allocations: 100.2 kB / 15.73 MB, free: 6.008 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.001247/0.001247, allocations: 193 kB / 16.67 MB, free: 5.93 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.145/2.145, allocations: 390.3 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 67.89 kB / 0.9504 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6349/0.6364, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002691/0.6391, allocations: 2.009 MB / 1.089 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.6402, allocations: 0.6804 MB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.6403, allocations: 8.219 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.6405, allocations: 35.48 kB / 1.09 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.125e-05/0.6406, allocations: 35.28 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.641, allocations: 163.2 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.6414, allocations: 407.9 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003423/0.6418, allocations: 255.4 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.6419, allocations: 133.4 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.6421, allocations: 145 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.998e-05/0.6421, allocations: 39.97 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.685e-05/0.6423, allocations: 49.31 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.999e-05/0.6423, allocations: 85.47 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.6425, allocations: 151.1 kB / 1.092 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004251/0.6429, allocations: 435.2 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.6429, allocations: 0 / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6429, allocations: 0.7969 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.6429, allocations: 5.094 kB / 1.092 GB, free: 2.434 MB / 0.8575 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.0008032/0.6437, allocations: 0.598 MB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.6438, allocations: 9.594 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.422e-05/0.6439, allocations: 63.89 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.969e-05/0.6439, allocations: 34.62 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.6442, allocations: 272.8 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.6443, allocations: 24.39 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.6443, allocations: 39.52 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006236/0.6449, allocations: 337.4 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.645, allocations: 4.734 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.645, allocations: 11.56 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-06/0.645, allocations: 7.438 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005825/0.6456, allocations: 255.4 kB / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.6469, allocations: 0.9427 MB / 1.094 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006276/0.6475, allocations: 271 kB / 1.095 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.6478, allocations: 129.8 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.6478, allocations: 2.094 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003655/0.6482, allocations: 187.1 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=32): time 1.954e-06/0.6482, allocations: 0.9062 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Performance of matching and sorting (n=32): time 0.0008586/0.6491, allocations: 351.4 kB / 1.095 GB, free: 284 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.6491, allocations: 61.84 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.6493, allocations: 199 kB / 1.096 GB, free: 68 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.6493, allocations: 39.88 kB / 1.096 GB, free: 28 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.6495, allocations: 161.9 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.036e-05/0.6495, allocations: 76.91 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.6497, allocations: 92.64 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6498, allocations: 340 kB / 1.096 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002908/0.6501, allocations: 109.7 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003103/0.6504, allocations: 165 kB / 1.097 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005197/0.6509, allocations: 258 kB / 1.097 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.651, allocations: 0.6562 kB / 1.097 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007325/0.6517, allocations: 374.8 kB / 1.097 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.6517, allocations: 34.3 kB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.6517, allocations: 1.094 kB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.6518, allocations: 3.844 kB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.652, allocations: 43.78 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.652, allocations: 3.062 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.6523, allocations: 54.64 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.6523, allocations: 16.28 kB / 1.097 GB, free: 14.91 MB / 0.8731 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.0001707/0.6525, allocations: 178.3 kB / 1.097 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.6525, allocations: 17.98 kB / 1.097 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006687/0.6532, allocations: 301.4 kB / 1.098 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.6532, allocations: 8.094 kB / 1.098 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.6532, allocations: 0 / 1.098 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.6532, allocations: 2.578 kB / 1.098 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.6544, allocations: 0.7501 MB / 1.099 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.6544, allocations: 0 / 1.099 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.6546, allocations: 30.02 kB / 1.099 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.6546, allocations: 2.75 kB / 1.099 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.6546, allocations: 15.41 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.6546, allocations: 1.094 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6546, allocations: 0 / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006522/0.6553, allocations: 371.5 kB / 1.099 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.923e-05/0.6554, allocations: 100.9 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.6554, allocations: 11.38 kB / 1.099 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002596/0.6557, allocations: 38.59 kB / 1.099 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.6558, allocations: 41.3 kB / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.6558, allocations: 8.406 kB / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001155/0.6559, allocations: 133.3 kB / 1.099 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6559, allocations: 3.938 kB / 1.099 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003346/0.6563, allocations: 70.25 kB / 1.099 GB, free: 13.64 MB / 0.8731 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.0009369/0.6572, allocations: 0.9327 MB / 1.1 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006641/0.6579, allocations: 341.1 kB / 1.101 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6579, allocations: 0 / 1.101 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.6582, allocations: 138.5 kB / 1.101 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.6586, allocations: 37.22 kB / 1.101 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003638/0.6622, allocations: 2.627 MB / 1.103 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.6626, allocations: 0.7634 MB / 1.104 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001143/0.6627, allocations: 31.28 kB / 1.104 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.6628, allocations: 85.52 kB / 1.104 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.6629, allocations: 4 kB / 1.104 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.6838, allocations: 5.632 MB / 1.11 GB, free: 9.387 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.279/7.963, allocations: 16.25 kB / 1.11 GB, free: 9.375 MB / 0.8731 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