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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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.001262/0.001262, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001224/0.001224, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.263/1.263, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.435/2.435, allocations: 461.8 MB / 0.7342 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 64.69 kB / 0.8985 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2247, allocations: 157.4 MB / 1.052 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003108/0.2279, allocations: 2.106 MB / 1.054 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.229, allocations: 0.709 MB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2292, allocations: 4 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.2293, allocations: 19.73 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.965e-05/0.2294, allocations: 27.78 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003829/0.2298, allocations: 143.9 kB / 1.055 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003588/0.2302, allocations: 367.3 kB / 1.055 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003021/0.2305, allocations: 218.1 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.2306, allocations: 115.6 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.2308, allocations: 131.4 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.697e-05/0.2309, allocations: 20 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.167e-05/0.231, allocations: 28 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.147e-05/0.231, allocations: 71.67 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2312, allocations: 131.3 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.2315, allocations: 386.8 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2315, allocations: 3.938 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.91e-07/0.2315, allocations: 0 / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.709e-06/0.2315, allocations: 0 / 1.057 GB, free: 3.805 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.0008843/0.2324, allocations: 0.6029 MB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.2325, allocations: 11.97 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.2325, allocations: 66.72 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.06e-05/0.2326, allocations: 28.66 kB / 1.057 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.2329, allocations: 275.8 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.2329, allocations: 28.97 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.233, allocations: 36.38 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006075/0.2336, allocations: 333 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.2336, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.2337, allocations: 15.98 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2337, allocations: 8 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005565/0.2342, allocations: 258 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.2356, allocations: 0.9474 MB / 1.059 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005945/0.2362, allocations: 272.6 kB / 1.059 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.2364, allocations: 124.8 kB / 1.059 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.2365, allocations: 4 kB / 1.059 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003811/0.2369, allocations: 187.2 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=32): time 1.793e-06/0.2369, allocations: 0 / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of matching and sorting (n=32): time 0.0007814/0.2377, allocations: 349.8 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.2377, allocations: 63.39 kB / 1.06 GB, free: 24 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.2379, allocations: 203.3 kB / 1.06 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.2379, allocations: 41.69 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.335e-05/0.238, allocations: 156.5 kB / 1.06 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.601e-05/0.2381, allocations: 78.94 kB / 1.06 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.2382, allocations: 86.11 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2383, allocations: 342.8 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.2386, allocations: 104.8 kB / 1.061 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.2389, allocations: 169.5 kB / 1.061 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004567/0.2394, allocations: 262.6 kB / 1.061 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2394, allocations: 4 kB / 1.061 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006795/0.2401, allocations: 370.5 kB / 1.062 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.2401, allocations: 29.86 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2401, allocations: 11.98 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.2401, allocations: 4 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.2403, allocations: 43.91 kB / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.2404, allocations: 0 / 1.062 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/0.2406, allocations: 51.66 kB / 1.062 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.2407, allocations: 12 kB / 1.062 GB, free: 14 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.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.000166/0.2408, allocations: 181.7 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.2409, allocations: 19.75 kB / 1.062 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005941/0.2415, allocations: 292.4 kB / 1.062 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.2415, allocations: 7.984 kB / 1.062 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2415, allocations: 4 kB / 1.062 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2415, allocations: 0 / 1.062 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.2426, allocations: 0.7596 MB / 1.063 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2426, allocations: 0 / 1.063 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.2427, allocations: 31.86 kB / 1.063 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.2428, allocations: 7.922 kB / 1.063 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.2428, allocations: 19.92 kB / 1.063 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2428, allocations: 0 / 1.063 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2428, allocations: 0 / 1.063 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005439/0.2433, allocations: 363.2 kB / 1.064 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.872e-05/0.2434, allocations: 100.8 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.2434, allocations: 7.938 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.2437, allocations: 43.95 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.2438, allocations: 43.89 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.2438, allocations: 4 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.236e-05/0.2439, allocations: 135.7 kB / 1.064 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2439, allocations: 4 kB / 1.064 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003245/0.2443, allocations: 71.78 kB / 1.064 GB, free: 11.82 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.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.000856/0.2451, allocations: 0.9173 MB / 1.065 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006072/0.2457, allocations: 348.1 kB / 1.065 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2458, allocations: 0 / 1.065 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000274/0.246, allocations: 139.8 kB / 1.065 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.2464, allocations: 31.98 kB / 1.065 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.2496, allocations: 2.709 MB / 1.068 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.2499, allocations: 0.7603 MB / 1.069 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001143/0.2501, allocations: 30.28 kB / 1.069 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.2502, allocations: 86.53 kB / 1.069 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2502, allocations: 0 / 1.069 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9802/1.23, allocations: 5.198 MB / 1.074 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/1.231, allocations: 236.4 kB / 1.074 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/2.946, allocations: 0 / 1.074 GB, free: 1.336 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