Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.423/1.423, allocations: 249.3 MB / 261.8 MB, free: 5.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 184.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 205.1 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008643/0.0008643, allocations: 98.16 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.649e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2262, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7519/0.9782, allocations: 135.1 MB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.9786, allocations: 100.5 kB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01204/0.9906, allocations: 4.706 MB / 1.028 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9907, allocations: 0 / 1.028 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.623e-05/0.9907, allocations: 8 kB / 1.028 GB, free: 11.57 MB / 0.6511 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.000749/0.9914, allocations: 0.5438 MB / 1.029 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.9915, allocations: 8.031 kB / 1.029 GB, free: 11 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.859e-05/0.9916, allocations: 27.72 kB / 1.029 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003216/0.9919, allocations: 275.1 kB / 1.029 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.992, allocations: 27.28 kB / 1.029 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.092e-05/0.992, allocations: 30.5 kB / 1.029 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005198/0.9925, allocations: 311.4 kB / 1.03 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.9926, allocations: 3.938 kB / 1.03 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.9926, allocations: 13.31 kB / 1.03 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.9926, allocations: 15.95 kB / 1.03 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003555/0.993, allocations: 215.5 kB / 1.03 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.9943, allocations: 0.9415 MB / 1.031 GB, free: 9.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004216/0.9948, allocations: 230.3 kB / 1.031 GB, free: 9.34 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.995, allocations: 110.4 kB / 1.031 GB, free: 9.266 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.995, allocations: 8 kB / 1.031 GB, free: 9.258 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.9953, allocations: 158.3 kB / 1.031 GB, free: 9.129 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=32): time 1.573e-06/0.9953, allocations: 0 / 1.031 GB, free: 9.129 MB / 0.6511 GB Notification: Performance of matching and sorting (n=32): time 0.0004347/0.9957, allocations: 234.4 kB / 1.031 GB, free: 8.941 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.9958, allocations: 58.84 kB / 1.032 GB, free: 8.875 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.9959, allocations: 182.8 kB / 1.032 GB, free: 8.711 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.996, allocations: 40.7 kB / 1.032 GB, free: 8.672 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.9961, allocations: 161.2 kB / 1.032 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.552e-05/0.9962, allocations: 77.39 kB / 1.032 GB, free: 8.465 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.9962, allocations: 11.44 kB / 1.032 GB, free: 8.461 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9963, allocations: 333.5 kB / 1.032 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.9965, allocations: 87 kB / 1.032 GB, free: 8.086 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.9967, allocations: 146 kB / 1.033 GB, free: 7.969 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.9969, allocations: 131.5 kB / 1.033 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.9969, allocations: 0 / 1.033 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004562/0.9973, allocations: 320.9 kB / 1.033 GB, free: 7.605 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.9974, allocations: 37.22 kB / 1.033 GB, free: 7.566 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.9974, allocations: 8 kB / 1.033 GB, free: 7.559 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.9974, allocations: 7.938 kB / 1.033 GB, free: 7.551 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.9976, allocations: 39.91 kB / 1.033 GB, free: 7.512 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.709e-05/0.9977, allocations: 11.89 kB / 1.033 GB, free: 7.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.9979, allocations: 50.44 kB / 1.033 GB, free: 7.457 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.683e-05/0.9979, allocations: 15.31 kB / 1.033 GB, free: 7.445 MB / 0.6511 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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.9981, allocations: 145.2 kB / 1.033 GB, free: 7.305 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.141e-05/0.9981, allocations: 19.72 kB / 1.033 GB, free: 7.285 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004315/0.9985, allocations: 265.4 kB / 1.034 GB, free: 7.098 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.9986, allocations: 7.938 kB / 1.034 GB, free: 7.09 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.9986, allocations: 4 kB / 1.034 GB, free: 7.086 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.9986, allocations: 7.938 kB / 1.034 GB, free: 7.078 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008406/0.9994, allocations: 0.7114 MB / 1.034 GB, free: 6.453 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.9994, allocations: 0 / 1.034 GB, free: 6.453 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.9996, allocations: 31.36 kB / 1.034 GB, free: 6.426 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.9996, allocations: 11.95 kB / 1.034 GB, free: 6.414 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.9996, allocations: 7.859 kB / 1.034 GB, free: 6.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.9996, allocations: 4 kB / 1.034 GB, free: 6.406 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.9996, allocations: 0 / 1.034 GB, free: 6.406 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/1, allocations: 339 kB / 1.035 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.705e-05/1, allocations: 96.81 kB / 1.035 GB, free: 6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/1, allocations: 11.58 kB / 1.035 GB, free: 5.992 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/1, allocations: 38.47 kB / 1.035 GB, free: 5.961 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/1, allocations: 38.69 kB / 1.035 GB, free: 5.93 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/1, allocations: 15.67 kB / 1.035 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.985e-05/1.001, allocations: 125.8 kB / 1.035 GB, free: 5.809 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.001, allocations: 0 / 1.035 GB, free: 5.809 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002857/1.001, allocations: 62.62 kB / 1.035 GB, free: 5.758 MB / 0.6511 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.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001969/1.001, allocations: 133.1 kB / 1.035 GB, free: 5.621 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004438/1.002, allocations: 296.2 kB / 1.035 GB, free: 5.391 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.002, allocations: 0 / 1.035 GB, free: 5.391 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001939/1.002, allocations: 128 kB / 1.036 GB, free: 5.297 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/1.002, allocations: 31.11 kB / 1.036 GB, free: 5.277 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006256/1.003, allocations: 324.7 kB / 1.036 GB, free: 4.992 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/1.003, allocations: 0.7642 MB / 1.037 GB, free: 4.199 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001222/1.003, allocations: 30 kB / 1.037 GB, free: 4.172 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.995e-05/1.003, allocations: 27.25 kB / 1.037 GB, free: 4.148 MB / 0.6511 GB Notification: Performance of SimCode: time 4.01e-07/1.003, allocations: 0 / 1.037 GB, free: 4.148 MB / 0.6511 GB Notification: Performance of Templates: time 0.006179/1.009, allocations: 2.675 MB / 1.039 GB, free: 1.508 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches