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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001177/0.001177, 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.001131/0.001131, allocations: 196.8 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.163/1.163, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.318/2.318, allocations: 461.9 MB / 0.7346 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.48 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2118, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002738/0.2145, allocations: 2.014 MB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009671/0.2155, allocations: 0.6977 MB / 1.056 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.789e-05/0.2156, allocations: 7.938 kB / 1.056 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.2157, allocations: 35.61 kB / 1.056 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.851e-05/0.2158, allocations: 39.59 kB / 1.056 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.2162, allocations: 159.8 kB / 1.056 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.2165, allocations: 399.3 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.2168, allocations: 252.1 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.217, allocations: 131.6 kB / 1.057 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.2171, allocations: 147.3 kB / 1.057 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.2172, allocations: 40 kB / 1.057 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.329e-05/0.2172, allocations: 44 kB / 1.057 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.659e-05/0.2173, allocations: 91.73 kB / 1.057 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.2174, allocations: 147.3 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.2178, allocations: 418.7 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2178, allocations: 4 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.2178, allocations: 0 / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.2178, allocations: 4 kB / 1.057 GB, free: 3.723 MB / 0.8106 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.0007446/0.2185, allocations: 0.5989 MB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.2186, allocations: 12.62 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.889e-05/0.2186, allocations: 62.72 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.814e-05/0.2187, allocations: 28.66 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.2189, allocations: 275.8 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/0.219, allocations: 33.02 kB / 1.058 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/0.219, allocations: 28.38 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005253/0.2196, allocations: 340.9 kB / 1.059 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.2196, allocations: 4 kB / 1.059 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.2196, allocations: 11.98 kB / 1.059 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.2196, allocations: 8 kB / 1.059 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004905/0.2201, allocations: 254.1 kB / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.2213, allocations: 0.9474 MB / 1.06 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005459/0.2218, allocations: 270.8 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.2221, allocations: 116.8 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.2221, allocations: 7.984 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003312/0.2224, allocations: 187 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=32): time 1.603e-06/0.2225, allocations: 0 / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of matching and sorting (n=32): time 0.000692/0.2232, allocations: 353.8 kB / 1.061 GB, free: 24 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.2232, allocations: 55.41 kB / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.2234, allocations: 211.3 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.2234, allocations: 45.64 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.2235, allocations: 148.5 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.282e-05/0.2236, allocations: 86.92 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.2237, allocations: 90.11 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.2238, allocations: 334.8 kB / 1.062 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.224, allocations: 104.8 kB / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002576/0.2243, allocations: 173.4 kB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.2247, allocations: 258.7 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2247, allocations: 0 / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005911/0.2253, allocations: 362.7 kB / 1.063 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.2253, allocations: 39.27 kB / 1.063 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2254, allocations: 8.141 kB / 1.063 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.2254, allocations: 4 kB / 1.063 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.2255, allocations: 39.91 kB / 1.063 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.2256, allocations: 7.938 kB / 1.063 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.2258, allocations: 55.64 kB / 1.063 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.2258, allocations: 16 kB / 1.063 GB, free: 13.92 MB / 0.8262 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.0001421/0.226, allocations: 177.7 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.226, allocations: 19.81 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005311/0.2265, allocations: 287.2 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2266, allocations: 4 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2266, allocations: 0 / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.2266, allocations: 15.98 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009338/0.2275, allocations: 0.7413 MB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2275, allocations: 4 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.2277, allocations: 31.91 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2277, allocations: 0 / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.2277, allocations: 11.94 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2277, allocations: 4 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2277, allocations: 0 / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005023/0.2282, allocations: 383.2 kB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.2283, allocations: 104.7 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/0.2283, allocations: 7.938 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.2285, allocations: 35.95 kB / 1.065 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.361e-05/0.2286, allocations: 39.95 kB / 1.065 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.2286, allocations: 8 kB / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.163e-05/0.2287, allocations: 131.2 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2287, allocations: 0 / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002851/0.229, allocations: 67.84 kB / 1.065 GB, free: 11.77 MB / 0.8262 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.0007627/0.2298, allocations: 0.9261 MB / 1.066 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006123/0.2304, allocations: 370.7 kB / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2304, allocations: 0 / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.2307, allocations: 139.8 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.231, allocations: 31.92 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.2338, allocations: 2.624 MB / 1.069 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.2341, allocations: 0.7564 MB / 1.069 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.295e-05/0.2342, allocations: 30.28 kB / 1.07 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.2343, allocations: 83.41 kB / 1.07 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2343, allocations: 0 / 1.07 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.895/2.129, allocations: 5.57 MB / 1.075 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.462/10.59, allocations: 1.375 kB / 1.075 GB, free: 1.211 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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