Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_latest_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.004679/0.004679, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001069/0.001069, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.749/2.749, allocations: 469.4 MB / 0.7421 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 59.91 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.325, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.004268/0.3294, allocations: 2.003 MB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.3309, allocations: 0.6936 MB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.3311, allocations: 4 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.3313, allocations: 35.61 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.3314, allocations: 35.59 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.332, allocations: 159.7 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005973/0.3326, allocations: 411.2 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000445/0.3331, allocations: 247.8 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.3333, allocations: 143.5 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.3335, allocations: 147.3 kB / 1.224 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.198e-05/0.3336, allocations: 40 kB / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.3337, allocations: 44 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.3339, allocations: 87.73 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.3341, allocations: 155.3 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006177/0.3347, allocations: 434.3 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3347, allocations: 4 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3348, allocations: 0 / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.3348, allocations: 0 / 1.224 GB, free: 10.03 MB / 0.9825 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.001229/0.336, allocations: 0.6064 MB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.3361, allocations: 8.031 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.495e-05/0.3362, allocations: 66.72 kB / 1.225 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.3363, allocations: 32.75 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.3368, allocations: 271.9 kB / 1.225 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.693e-05/0.3368, allocations: 36.91 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-05/0.3369, allocations: 36.38 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009433/0.3379, allocations: 337 kB / 1.226 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3379, allocations: 0 / 1.226 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.338, allocations: 12 kB / 1.226 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.338, allocations: 8 kB / 1.226 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000906/0.3389, allocations: 254 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.341, allocations: 0.9553 MB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009737/0.342, allocations: 266.7 kB / 1.227 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.3424, allocations: 124.7 kB / 1.227 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.3425, allocations: 11.92 kB / 1.227 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005869/0.3431, allocations: 183.2 kB / 1.227 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=32): time 2.805e-06/0.3431, allocations: 0 / 1.227 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of matching and sorting (n=32): time 0.001263/0.3444, allocations: 349.4 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.3445, allocations: 59.41 kB / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.3447, allocations: 207.3 kB / 1.228 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.3448, allocations: 41.69 kB / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.345, allocations: 156.8 kB / 1.228 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.3451, allocations: 79.36 kB / 1.228 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.3453, allocations: 94.06 kB / 1.228 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3454, allocations: 342.8 kB / 1.229 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004365/0.3459, allocations: 108.8 kB / 1.229 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004621/0.3464, allocations: 165.5 kB / 1.229 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007434/0.3471, allocations: 254.7 kB / 1.229 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3471, allocations: 4 kB / 1.229 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001183/0.3483, allocations: 382.6 kB / 1.229 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.3484, allocations: 30.95 kB / 1.23 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3484, allocations: 4 kB / 1.23 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3484, allocations: 3.984 kB / 1.23 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003025/0.3488, allocations: 47.84 kB / 1.23 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.3488, allocations: 7.984 kB / 1.23 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003938/0.3492, allocations: 55.91 kB / 1.23 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.702e-05/0.3492, allocations: 15.94 kB / 1.23 GB, free: 4.184 MB / 0.9825 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.000266/0.3495, allocations: 177.7 kB / 1.23 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.3496, allocations: 19.86 kB / 1.23 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009393/0.3505, allocations: 300.3 kB / 1.23 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3506, allocations: 4 kB / 1.23 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3506, allocations: 0 / 1.23 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3506, allocations: 3.984 kB / 1.23 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.3522, allocations: 0.7525 MB / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3523, allocations: 0 / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002097/0.3525, allocations: 31.98 kB / 1.231 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.3525, allocations: 4 kB / 1.231 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.3525, allocations: 7.938 kB / 1.231 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.3525, allocations: 7.922 kB / 1.231 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3526, allocations: 0 / 1.231 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008509/0.3534, allocations: 368.3 kB / 1.231 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.625e-05/0.3535, allocations: 104.9 kB / 1.231 GB, free: 2.328 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.773e-05/0.3536, allocations: 15.94 kB / 1.231 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/0.354, allocations: 27.97 kB / 1.231 GB, free: 2.285 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.3542, allocations: 43.94 kB / 1.231 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.3542, allocations: 11.98 kB / 1.231 GB, free: 2.23 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001251/0.3543, allocations: 131.8 kB / 1.232 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3543, allocations: 0 / 1.232 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005019/0.3549, allocations: 71.89 kB / 1.232 GB, free: 2.031 MB / 0.9825 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.000942/0.3558, allocations: 0.9291 MB / 1.233 GB, free: 1.074 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006479/0.3565, allocations: 331.1 kB / 1.233 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3565, allocations: 4 kB / 1.233 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002861/0.3568, allocations: 136.9 kB / 1.233 GB, free: 0.6016 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.3571, allocations: 37.62 kB / 1.233 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.3606, allocations: 2.635 MB / 1.236 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.3609, allocations: 0.7603 MB / 1.236 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001234/0.3611, allocations: 30.39 kB / 1.236 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.3612, allocations: 94.84 kB / 1.236 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of SimCode: time 3.31e-07/0.3612, allocations: 0 / 1.236 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.3829, allocations: 5.646 MB / 1.242 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.435/7.818, allocations: 15.17 kB / 1.242 GB, free: 7.395 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches