Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_10_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.00113/0.00113, 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.001155/0.001155, allocations: 192.3 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.471/2.471, allocations: 437.1 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.91 kB / 0.8694 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5051/0.5064, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003093/0.5095, allocations: 2.018 MB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.5107, allocations: 0.678 MB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.5108, allocations: 11.94 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.511, allocations: 39.59 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.865e-05/0.5111, allocations: 35.59 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003982/0.5115, allocations: 155.8 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004007/0.5119, allocations: 403.2 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003261/0.5122, allocations: 259.2 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.5124, allocations: 139.5 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.5126, allocations: 143.4 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.851e-05/0.5126, allocations: 40 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.772e-05/0.5127, allocations: 44 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.444e-05/0.5128, allocations: 95.67 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.5129, allocations: 151.3 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.5133, allocations: 410.7 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.5133, allocations: 0 / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.183e-06/0.5133, allocations: 0 / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.5133, allocations: 8 kB / 1.022 GB, free: 13.86 MB / 0.7794 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.0008674/0.5142, allocations: 0.5912 MB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.5143, allocations: 12.03 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.735e-05/0.5143, allocations: 66.72 kB / 1.023 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.075e-05/0.5144, allocations: 32.56 kB / 1.023 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.5147, allocations: 275.7 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.5147, allocations: 25.03 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.5148, allocations: 36.36 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005874/0.5154, allocations: 341 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.5154, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.5154, allocations: 8 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.5154, allocations: 8 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005514/0.516, allocations: 254 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.5173, allocations: 0.959 MB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006045/0.5179, allocations: 270.9 kB / 1.025 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.5182, allocations: 116.8 kB / 1.025 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.5182, allocations: 7.938 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.5186, allocations: 175.3 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=32): time 1.803e-06/0.5186, allocations: 0 / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=32): time 0.0007837/0.5194, allocations: 358 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.5194, allocations: 59.39 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.5196, allocations: 207.3 kB / 1.026 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.5197, allocations: 41.7 kB / 1.026 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.381e-05/0.5197, allocations: 156.5 kB / 1.026 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.523e-05/0.5198, allocations: 86.89 kB / 1.026 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.5199, allocations: 90.11 kB / 1.026 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.106e-05/0.52, allocations: 330.8 kB / 1.026 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.5203, allocations: 108.8 kB / 1.026 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.5206, allocations: 165.5 kB / 1.026 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004588/0.521, allocations: 270.6 kB / 1.027 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.5211, allocations: 0 / 1.027 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006464/0.5217, allocations: 370.5 kB / 1.027 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.5217, allocations: 39.89 kB / 1.027 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.5218, allocations: 0 / 1.027 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.5218, allocations: 4 kB / 1.027 GB, free: 8.172 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.522, allocations: 40.06 kB / 1.027 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.522, allocations: 8 kB / 1.027 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.5222, allocations: 55.66 kB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.5223, allocations: 19.98 kB / 1.027 GB, free: 8.051 MB / 0.7794 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.000148/0.5224, allocations: 170 kB / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.889e-05/0.5225, allocations: 31.7 kB / 1.027 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005921/0.5231, allocations: 291.2 kB / 1.028 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.5231, allocations: 7.984 kB / 1.028 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.5231, allocations: 0 / 1.028 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5231, allocations: 4 kB / 1.028 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.5241, allocations: 0.7491 MB / 1.028 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.5241, allocations: 8 kB / 1.028 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.5243, allocations: 31.91 kB / 1.029 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.5243, allocations: 0 / 1.029 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.5243, allocations: 7.938 kB / 1.029 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.5243, allocations: 4 kB / 1.029 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5243, allocations: 0 / 1.029 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005431/0.5249, allocations: 379.3 kB / 1.029 GB, free: 6.301 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.5249, allocations: 96.86 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.525, allocations: 7.938 kB / 1.029 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.5252, allocations: 35.95 kB / 1.029 GB, free: 6.145 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.5253, allocations: 39.95 kB / 1.029 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.5254, allocations: 15.88 kB / 1.029 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.926e-05/0.5255, allocations: 131.2 kB / 1.029 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5255, allocations: 3.938 kB / 1.029 GB, free: 5.957 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003299/0.5258, allocations: 71.75 kB / 1.029 GB, free: 5.887 MB / 0.7794 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.000817/0.5266, allocations: 0.9301 MB / 1.03 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006808/0.5273, allocations: 355.3 kB / 1.031 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5273, allocations: 320 / 1.031 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.5276, allocations: 139.9 kB / 1.031 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.5279, allocations: 28.55 kB / 1.031 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.531, allocations: 2.617 MB / 1.033 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.5313, allocations: 0.7603 MB / 1.034 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001054/0.5314, allocations: 30.28 kB / 1.034 GB, free: 0.8594 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.5315, allocations: 83.41 kB / 1.034 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.5316, allocations: 0 / 1.034 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.5523, allocations: 5.551 MB / 1.04 GB, free: 11.36 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.99/7.542, allocations: 4.75 kB / 1.04 GB, free: 11.35 MB / 0.795 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches