Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, 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.001434/0.001434, allocations: 194.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.667/1.667, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 64.31 kB / 0.6715 GB, free: 26.38 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1817, allocations: 114.6 MB / 0.7834 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003289/0.1851, allocations: 2.016 MB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1862, allocations: 0.7334 MB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.735e-05/0.1863, allocations: 4 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.1865, allocations: 35.59 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.564e-05/0.1865, allocations: 39.59 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.1869, allocations: 159.8 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.1873, allocations: 407.2 kB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003199/0.1877, allocations: 248.1 kB / 0.7869 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.1878, allocations: 135.6 kB / 0.787 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.188, allocations: 147.3 kB / 0.7872 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.188, allocations: 40 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.491e-05/0.1881, allocations: 48 kB / 0.7873 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.651e-05/0.1882, allocations: 83.75 kB / 0.7873 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.1884, allocations: 151.2 kB / 0.7875 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.1887, allocations: 410.8 kB / 0.7879 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1888, allocations: 0 / 0.7879 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1888, allocations: 0 / 0.7879 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.656e-06/0.1888, allocations: 4 kB / 0.7879 GB, free: 8.844 MB / 0.6075 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.0008484/0.1896, allocations: 0.6028 MB / 0.7885 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.719e-05/0.1897, allocations: 8.031 kB / 0.7885 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.079e-05/0.1897, allocations: 32.56 kB / 0.7885 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.19, allocations: 270.7 kB / 0.7888 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.221e-05/0.1901, allocations: 29.02 kB / 0.7888 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.1901, allocations: 32.38 kB / 0.7888 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005962/0.1907, allocations: 345.1 kB / 0.7892 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1907, allocations: 0 / 0.7892 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.1908, allocations: 11.98 kB / 0.7892 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1908, allocations: 11.94 kB / 0.7892 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000549/0.1914, allocations: 246.1 kB / 0.7894 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.1927, allocations: 0.959 MB / 0.7904 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.1933, allocations: 269.3 kB / 0.7906 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.1936, allocations: 124.8 kB / 0.7907 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.1936, allocations: 11.94 kB / 0.7907 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003912/0.194, allocations: 183.2 kB / 0.7909 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=32): time 1.623e-06/0.194, allocations: 0 / 0.7909 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of matching and sorting (n=32): time 0.0008253/0.1949, allocations: 351.6 kB / 0.7913 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.1949, allocations: 55.41 kB / 0.7913 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.1951, allocations: 199.3 kB / 0.7915 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/0.1952, allocations: 45.7 kB / 0.7915 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.1953, allocations: 148.6 kB / 0.7917 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.766e-05/0.1954, allocations: 90.84 kB / 0.7918 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001977/0.1956, allocations: 86.11 kB / 0.7918 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1957, allocations: 338.8 kB / 0.7922 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000266/0.196, allocations: 108.8 kB / 0.7923 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.1963, allocations: 169.2 kB / 0.7924 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000471/0.1968, allocations: 258.7 kB / 0.7927 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1968, allocations: 4 kB / 0.7927 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006761/0.1974, allocations: 370.8 kB / 0.793 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.1975, allocations: 37.7 kB / 0.7931 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.1975, allocations: 0 / 0.7931 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1975, allocations: 4 kB / 0.7931 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.1977, allocations: 39.91 kB / 0.7931 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.1977, allocations: 4.156 kB / 0.7931 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.198, allocations: 63.58 kB / 0.7932 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.198, allocations: 16 kB / 0.7932 GB, free: 3.113 MB / 0.6075 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.0001736/0.1982, allocations: 174.3 kB / 0.7934 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/0.1983, allocations: 27.72 kB / 0.7934 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005987/0.1989, allocations: 288.6 kB / 0.7937 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1989, allocations: 4 kB / 0.7937 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1989, allocations: 0 / 0.7937 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1989, allocations: 7.984 kB / 0.7937 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.1999, allocations: 0.7442 MB / 0.7944 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.2, allocations: 4 kB / 0.7944 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.2001, allocations: 31.91 kB / 0.7944 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2001, allocations: 0 / 0.7944 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.2001, allocations: 4 kB / 0.7944 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2001, allocations: 7.938 kB / 0.7944 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2002, allocations: 0 / 0.7944 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005574/0.2007, allocations: 382.9 kB / 0.7948 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.2008, allocations: 104.8 kB / 0.7949 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.2008, allocations: 4 kB / 0.7949 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.2011, allocations: 39.88 kB / 0.795 GB, free: 1.207 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.98e-05/0.2012, allocations: 43.95 kB / 0.795 GB, free: 1.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.2012, allocations: 12 kB / 0.795 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.564e-05/0.2013, allocations: 139.7 kB / 0.7951 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2013, allocations: 0 / 0.7951 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003205/0.2016, allocations: 71.84 kB / 0.7952 GB, free: 0.9453 MB / 0.6075 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.0001881/0.2018, allocations: 125.4 kB / 0.7953 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007324/0.2026, allocations: 343.1 kB / 0.7957 GB, free: 472 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2026, allocations: 0 / 0.7957 GB, free: 472 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002699/0.2029, allocations: 139.8 kB / 0.7958 GB, free: 332 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.2032, allocations: 31.97 kB / 0.7958 GB, free: 300 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008224/0.204, allocations: 461.4 kB / 0.7963 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.2044, allocations: 0.7641 MB / 0.797 GB, free: 15.03 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001094/0.2045, allocations: 34.28 kB / 0.797 GB, free: 15 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.766e-05/0.2046, allocations: 27.44 kB / 0.7971 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.2046, allocations: 0 / 0.7971 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of Templates: time 0.006205/0.2108, allocations: 3.099 MB / 0.8001 GB, free: 11.88 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)