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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001096/0.001097, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001187/0.001187, allocations: 196.5 kB / 16.14 MB, free: 6.711 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.276/1.276, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.564/2.564, allocations: 437 MB / 0.7099 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.89 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4944/0.4957, allocations: 151.6 MB / 1.017 GB, free: 2.891 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002966/0.4987, allocations: 2.108 MB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.4997, allocations: 0.6897 MB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.914e-05/0.4998, allocations: 4 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.5, allocations: 23.73 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.41e-05/0.5001, allocations: 31.77 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003536/0.5004, allocations: 143.9 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003419/0.5008, allocations: 371.2 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.5011, allocations: 214.6 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.5012, allocations: 119.5 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.5014, allocations: 135.4 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.5014, allocations: 24 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.196e-05/0.5015, allocations: 23.98 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.896e-05/0.5016, allocations: 71.69 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.5017, allocations: 135.2 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003388/0.5021, allocations: 382.8 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.5021, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5021, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.5021, allocations: 4 kB / 1.021 GB, free: 14.43 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.0008643/0.503, allocations: 0.5952 MB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.503, allocations: 12.03 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.984e-05/0.5031, allocations: 62.72 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.775e-05/0.5032, allocations: 32.56 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.5034, allocations: 277.7 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.383e-05/0.5035, allocations: 29.03 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.5035, allocations: 36.38 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006243/0.5042, allocations: 341 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.5042, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.5042, allocations: 11.94 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.5042, allocations: 8 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005778/0.5048, allocations: 258 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.5062, allocations: 0.955 MB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006125/0.5068, allocations: 270.9 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.5071, allocations: 120.8 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.5071, allocations: 4 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003752/0.5075, allocations: 183.7 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=32): time 1.863e-06/0.5075, allocations: 4 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=32): time 0.0007869/0.5083, allocations: 345.3 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.5083, allocations: 59.41 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.5085, allocations: 203.3 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.701e-05/0.5086, allocations: 41.7 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.5087, allocations: 156.5 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.5087, allocations: 78.98 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.5089, allocations: 94.11 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.509, allocations: 338.8 kB / 1.025 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.5093, allocations: 104.8 kB / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.5096, allocations: 165.5 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004656/0.51, allocations: 262.6 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.5101, allocations: 0 / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006938/0.5108, allocations: 378.5 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.5108, allocations: 35.11 kB / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.5108, allocations: 3.984 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.5108, allocations: 4 kB / 1.026 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.511, allocations: 43.91 kB / 1.026 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.511, allocations: 4 kB / 1.026 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.5113, allocations: 59.7 kB / 1.026 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.5113, allocations: 16 kB / 1.026 GB, free: 8.613 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.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.0001659/0.5115, allocations: 177.6 kB / 1.027 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.5116, allocations: 23.75 kB / 1.027 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006314/0.5122, allocations: 295.2 kB / 1.027 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5122, allocations: 3.938 kB / 1.027 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5122, allocations: 8 kB / 1.027 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.5122, allocations: 3.984 kB / 1.027 GB, free: 8.094 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.5133, allocations: 0.753 MB / 1.028 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.5133, allocations: 0 / 1.028 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.5135, allocations: 27.92 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.5135, allocations: 0 / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.5135, allocations: 15.92 kB / 1.028 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.5135, allocations: 0 / 1.028 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5135, allocations: 0 / 1.028 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005601/0.5141, allocations: 367.4 kB / 1.028 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.5142, allocations: 108.7 kB / 1.028 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.5142, allocations: 19.88 kB / 1.028 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.5145, allocations: 27.97 kB / 1.028 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.913e-05/0.5146, allocations: 43.88 kB / 1.028 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.5146, allocations: 8 kB / 1.028 GB, free: 6.645 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.273e-05/0.5147, allocations: 135.5 kB / 1.028 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5147, allocations: 0 / 1.028 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003207/0.515, allocations: 71.83 kB / 1.028 GB, free: 6.441 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.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.0008624/0.5159, allocations: 0.9212 MB / 1.029 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006434/0.5165, allocations: 335 kB / 1.03 GB, free: 5.156 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5166, allocations: 0 / 1.03 GB, free: 5.156 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.5169, allocations: 140.9 kB / 1.03 GB, free: 5.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.5173, allocations: 32.3 kB / 1.03 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003541/0.5208, allocations: 2.711 MB / 1.032 GB, free: 2.156 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.5211, allocations: 0.7564 MB / 1.033 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.5213, allocations: 26.28 kB / 1.033 GB, free: 1.344 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.5214, allocations: 87.39 kB / 1.033 GB, free: 1.258 MB / 0.7794 GB Notification: Performance of SimCode: time 4.51e-07/0.5214, allocations: 4 kB / 1.033 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0179/0.5393, allocations: 5.205 MB / 1.038 GB, free: 12.2 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/0.5396, allocations: 231.9 kB / 1.039 GB, free: 11.95 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.33, allocations: 2.391 kB / 1.039 GB, free: 11.95 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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