Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009215/0.009215, allocations: 102.5 kB / 15.73 MB, free: 5.539 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.001485/0.001485, allocations: 190.3 kB / 16.67 MB, free: 5.477 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.654/1.654, allocations: 205.1 MB / 222.5 MB, free: 4.461 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6534/0.6534, allocations: 95.48 MB / 365.4 MB, free: 9.738 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 72.44 kB / 0.5036 GB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.169, allocations: 69.09 MB / 0.5711 GB, free: 8.305 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.00539/0.1745, allocations: 3.127 MB / 0.5741 GB, free: 5.152 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.177, allocations: 1.025 MB / 0.5751 GB, free: 4.117 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005631/0.1776, allocations: 15.94 kB / 0.5751 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003665/0.178, allocations: 75.19 kB / 0.5752 GB, free: 4.027 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004306/0.1784, allocations: 95.11 kB / 0.5753 GB, free: 3.934 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007468/0.1792, allocations: 239.7 kB / 0.5755 GB, free: 3.699 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008092/0.18, allocations: 0.5543 MB / 0.5761 GB, free: 3.141 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004903/0.1805, allocations: 263.5 kB / 0.5763 GB, free: 2.875 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003157/0.1808, allocations: 203.1 kB / 0.5765 GB, free: 2.676 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.1811, allocations: 222.8 kB / 0.5767 GB, free: 2.457 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.197e-05/0.1812, allocations: 56 kB / 0.5768 GB, free: 2.402 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.308e-05/0.1812, allocations: 56 kB / 0.5768 GB, free: 2.348 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-05/0.1813, allocations: 115.5 kB / 0.5769 GB, free: 2.234 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.1815, allocations: 254.6 kB / 0.5772 GB, free: 1.984 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006085/0.1822, allocations: 0.5956 MB / 0.5778 GB, free: 1.387 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1822, allocations: 0 / 0.5778 GB, free: 1.387 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1822, allocations: 0 / 0.5778 GB, free: 1.387 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.1822, allocations: 0 / 0.5778 GB, free: 1.387 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.00117/0.1834, allocations: 0.7733 MB / 0.5785 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1834, allocations: 15.98 kB / 0.5785 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.1835, allocations: 56.28 kB / 0.5786 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006036/0.1841, allocations: 409.9 kB / 0.579 GB, free: 56 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/0.1842, allocations: 33.31 kB / 0.579 GB, free: 20 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.1843, allocations: 44.42 kB / 0.5791 GB, free: 15.97 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006807/0.185, allocations: 421 kB / 0.5795 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.185, allocations: 4 kB / 0.5795 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.034e-05/0.185, allocations: 15.98 kB / 0.5795 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1851, allocations: 12 kB / 0.5795 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005832/0.1856, allocations: 291.9 kB / 0.5798 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.1875, allocations: 1.312 MB / 0.581 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007368/0.1883, allocations: 351.9 kB / 0.5814 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.1886, allocations: 136.8 kB / 0.5815 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.307e-05/0.1886, allocations: 4 kB / 0.5815 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003823/0.189, allocations: 190 kB / 0.5817 GB, free: 13.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=33): time 2.845e-06/0.189, allocations: 0 / 0.5817 GB, free: 13.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.0008964/0.1899, allocations: 418.5 kB / 0.5821 GB, free: 12.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.1901, allocations: 110.8 kB / 0.5822 GB, free: 12.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004717/0.1905, allocations: 377.6 kB / 0.5826 GB, free: 12.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.821e-05/0.1906, allocations: 33.7 kB / 0.5826 GB, free: 12.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.1908, allocations: 248.4 kB / 0.5828 GB, free: 11.95 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.1909, allocations: 98.55 kB / 0.5829 GB, free: 11.85 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.1911, allocations: 73.69 kB / 0.583 GB, free: 11.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1912, allocations: 350.7 kB / 0.5833 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/0.1915, allocations: 116.8 kB / 0.5834 GB, free: 11.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.1918, allocations: 182.5 kB / 0.5836 GB, free: 11.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004952/0.1923, allocations: 257.9 kB / 0.5839 GB, free: 10.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1924, allocations: 0 / 0.5839 GB, free: 10.85 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006256/0.193, allocations: 354.3 kB / 0.5842 GB, free: 10.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.193, allocations: 4 kB / 0.5842 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.193, allocations: 0 / 0.5842 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.1931, allocations: 4 kB / 0.5842 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.1934, allocations: 67.89 kB / 0.5843 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1934, allocations: 4.094 kB / 0.5843 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.1936, allocations: 39.67 kB / 0.5843 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.1937, allocations: 12 kB / 0.5843 GB, free: 10.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003209/0.194, allocations: 224.1 kB / 0.5845 GB, free: 10.14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000255/0.1942, allocations: 161.5 kB / 0.5847 GB, free: 9.969 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003757/0.1946, allocations: 235.6 kB / 0.5849 GB, free: 9.727 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.507e-06/0.1946, allocations: 4 kB / 0.5849 GB, free: 9.723 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0005514/0.1952, allocations: 336.8 kB / 0.5852 GB, free: 9.387 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1952, allocations: 4 kB / 0.5852 GB, free: 9.383 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-06/0.1952, allocations: 8.031 kB / 0.5853 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.599e-06/0.1952, allocations: 4 kB / 0.5853 GB, free: 9.371 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.1955, allocations: 59.84 kB / 0.5853 GB, free: 9.312 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.1955, allocations: 4 kB / 0.5853 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.1958, allocations: 31.83 kB / 0.5853 GB, free: 9.277 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.1958, allocations: 12 kB / 0.5854 GB, free: 9.266 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 (con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,con.greaterEqualThreshold.y,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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.000183/0.196, allocations: 204 kB / 0.5856 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.689e-05/0.1961, allocations: 43.44 kB / 0.5856 GB, free: 9.016 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.1962, allocations: 52.28 kB / 0.5856 GB, free: 8.965 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1962, allocations: 4 kB / 0.5856 GB, free: 8.961 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1962, allocations: 0 / 0.5856 GB, free: 8.961 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1962, allocations: 0 / 0.5856 GB, free: 8.961 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.1976, allocations: 0.8694 MB / 0.5865 GB, free: 8.031 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1976, allocations: 0 / 0.5865 GB, free: 8.031 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.1979, allocations: 51.91 kB / 0.5865 GB, free: 7.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.1979, allocations: 4 kB / 0.5866 GB, free: 7.977 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.1979, allocations: 8 kB / 0.5866 GB, free: 7.969 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.1979, allocations: 0 / 0.5866 GB, free: 7.969 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1979, allocations: 3.938 kB / 0.5866 GB, free: 7.965 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009582/0.1989, allocations: 0.559 MB / 0.5871 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.1991, allocations: 152.6 kB / 0.5873 GB, free: 7.223 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.048e-05/0.1992, allocations: 12 kB / 0.5873 GB, free: 7.211 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.1994, allocations: 15.98 kB / 0.5873 GB, free: 7.195 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/0.1995, allocations: 27.91 kB / 0.5873 GB, free: 7.168 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.202e-05/0.1995, allocations: 15.98 kB / 0.5873 GB, free: 7.152 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003011/0.1998, allocations: 255.2 kB / 0.5876 GB, free: 6.906 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1998, allocations: 0 / 0.5876 GB, free: 6.906 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005337/0.2004, allocations: 155.4 kB / 0.5877 GB, free: 6.754 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001512/0.2005, allocations: 118.2 kB / 0.5878 GB, free: 6.633 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009501/0.2015, allocations: 431.8 kB / 0.5882 GB, free: 6.211 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.2015, allocations: 0 / 0.5882 GB, free: 6.211 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.2018, allocations: 144.2 kB / 0.5884 GB, free: 6.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006342/0.2024, allocations: 88.02 kB / 0.5885 GB, free: 5.988 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.2042, allocations: 0.8247 MB / 0.5893 GB, free: 5.133 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.2047, allocations: 0.8236 MB / 0.5901 GB, free: 4.277 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002222/0.2049, allocations: 43.25 kB / 0.5901 GB, free: 4.234 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.205, allocations: 39.36 kB / 0.5901 GB, free: 4.199 MB / 462.1 MB Notification: Performance of SimCode: time 3.71e-07/0.205, allocations: 3.938 kB / 0.5902 GB, free: 4.195 MB / 462.1 MB Notification: Performance of Templates: time 0.009633/0.2147, allocations: 4.165 MB / 0.5942 GB, free: 56 kB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)