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.007601/0.007601, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001293/0.001294, allocations: 189.5 kB / 16.67 MB, free: 5.973 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.673/1.673, allocations: 205.1 MB / 222.6 MB, free: 4.359 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.6509/0.6509, allocations: 95.49 MB / 365.4 MB, free: 9.699 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: 67.91 kB / 0.5036 GB, free: 13.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.164, allocations: 69.08 MB / 0.5711 GB, free: 8.445 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004806/0.1689, allocations: 3.138 MB / 0.5741 GB, free: 5.281 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.171, allocations: 1.029 MB / 0.5751 GB, free: 4.242 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004193/0.1715, allocations: 11.94 kB / 0.5751 GB, free: 4.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.1718, allocations: 75.19 kB / 0.5752 GB, free: 4.156 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.1721, allocations: 103.1 kB / 0.5753 GB, free: 4.055 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006974/0.1728, allocations: 247.6 kB / 0.5755 GB, free: 3.812 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007925/0.1736, allocations: 0.5544 MB / 0.5761 GB, free: 3.254 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004639/0.1741, allocations: 255.5 kB / 0.5763 GB, free: 2.996 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003407/0.1744, allocations: 207.1 kB / 0.5765 GB, free: 2.793 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003216/0.1748, allocations: 222.8 kB / 0.5767 GB, free: 2.574 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1749, allocations: 59.94 kB / 0.5768 GB, free: 2.516 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.344e-05/0.175, allocations: 56 kB / 0.5769 GB, free: 2.461 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.1751, allocations: 107.6 kB / 0.577 GB, free: 2.355 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002742/0.1754, allocations: 254.6 kB / 0.5772 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006876/0.1761, allocations: 0.5995 MB / 0.5778 GB, free: 1.504 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1761, allocations: 4 kB / 0.5778 GB, free: 1.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1761, allocations: 0 / 0.5778 GB, free: 1.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.994e-05/0.1761, allocations: 0 / 0.5778 GB, free: 1.5 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.001435/0.1776, allocations: 0.7733 MB / 0.5785 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.1776, allocations: 15.98 kB / 0.5786 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.1777, allocations: 56.28 kB / 0.5786 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006443/0.1784, allocations: 406 kB / 0.579 GB, free: 176 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/0.1785, allocations: 33.36 kB / 0.579 GB, free: 140 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-05/0.1786, allocations: 40.38 kB / 0.5791 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.1797, allocations: 421 kB / 0.5795 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.1797, allocations: 0 / 0.5795 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.1798, allocations: 16 kB / 0.5795 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.1798, allocations: 12 kB / 0.5795 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008607/0.1807, allocations: 303.7 kB / 0.5798 GB, free: 15.34 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.1827, allocations: 1.312 MB / 0.5811 GB, free: 13.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.1835, allocations: 343.2 kB / 0.5814 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.1838, allocations: 140.8 kB / 0.5815 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.1838, allocations: 4 kB / 0.5815 GB, free: 13.47 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003426/0.1842, allocations: 189.5 kB / 0.5817 GB, free: 13.28 MB / 462.1 MB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.1842, allocations: 0 / 0.5817 GB, free: 13.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.000886/0.1851, allocations: 422.4 kB / 0.5821 GB, free: 12.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.1852, allocations: 106.8 kB / 0.5822 GB, free: 12.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004156/0.1856, allocations: 377.6 kB / 0.5826 GB, free: 12.35 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.766e-05/0.1856, allocations: 37.7 kB / 0.5826 GB, free: 12.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.1858, allocations: 244.4 kB / 0.5828 GB, free: 12.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.179e-05/0.1859, allocations: 106.5 kB / 0.5829 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.1861, allocations: 65.7 kB / 0.583 GB, free: 11.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1862, allocations: 354.7 kB / 0.5834 GB, free: 11.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.1865, allocations: 116.8 kB / 0.5835 GB, free: 11.42 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/0.1867, allocations: 178.6 kB / 0.5836 GB, free: 11.23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004704/0.1872, allocations: 253.9 kB / 0.5839 GB, free: 10.97 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1872, allocations: 4.031 kB / 0.5839 GB, free: 10.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006377/0.1879, allocations: 358.2 kB / 0.5842 GB, free: 10.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1879, allocations: 4 kB / 0.5842 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1879, allocations: 0 / 0.5842 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.188, allocations: 4 kB / 0.5842 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.1882, allocations: 59.91 kB / 0.5843 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1883, allocations: 3.984 kB / 0.5843 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.1885, allocations: 47.77 kB / 0.5843 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.1885, allocations: 8 kB / 0.5843 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003042/0.1888, allocations: 224.1 kB / 0.5846 GB, free: 10.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002238/0.189, allocations: 157.6 kB / 0.5847 GB, free: 10.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003627/0.1894, allocations: 235.6 kB / 0.5849 GB, free: 9.848 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.1894, allocations: 0 / 0.5849 GB, free: 9.848 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0005414/0.19, allocations: 340.8 kB / 0.5853 GB, free: 9.508 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.19, allocations: 5.094 kB / 0.5853 GB, free: 9.504 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.19, allocations: 0 / 0.5853 GB, free: 9.504 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.405e-06/0.19, allocations: 12.03 kB / 0.5853 GB, free: 9.492 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002349/0.1903, allocations: 63.84 kB / 0.5853 GB, free: 9.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.1903, allocations: 7.984 kB / 0.5853 GB, free: 9.422 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.1905, allocations: 31.83 kB / 0.5854 GB, free: 9.391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.1905, allocations: 12 kB / 0.5854 GB, free: 9.379 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.0001649/0.1907, allocations: 208 kB / 0.5856 GB, free: 9.168 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.1907, allocations: 43.44 kB / 0.5856 GB, free: 9.125 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.501e-05/0.1908, allocations: 48.23 kB / 0.5857 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1909, allocations: 4 kB / 0.5857 GB, free: 9.074 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.1909, allocations: 3.984 kB / 0.5857 GB, free: 9.07 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1909, allocations: 0 / 0.5857 GB, free: 9.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.1921, allocations: 0.8655 MB / 0.5865 GB, free: 8.145 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1921, allocations: 3.984 kB / 0.5865 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.1923, allocations: 51.92 kB / 0.5866 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.1924, allocations: 7.984 kB / 0.5866 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.1924, allocations: 8 kB / 0.5866 GB, free: 8.074 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1924, allocations: 0 / 0.5866 GB, free: 8.074 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1924, allocations: 3.938 kB / 0.5866 GB, free: 8.07 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/0.1933, allocations: 0.5435 MB / 0.5871 GB, free: 7.512 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.1934, allocations: 152.5 kB / 0.5873 GB, free: 7.344 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.939e-05/0.1935, allocations: 8 kB / 0.5873 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.1937, allocations: 19.97 kB / 0.5873 GB, free: 7.316 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.318e-05/0.1938, allocations: 27.91 kB / 0.5873 GB, free: 7.289 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.1938, allocations: 12 kB / 0.5873 GB, free: 7.277 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.1941, allocations: 259.2 kB / 0.5876 GB, free: 7.027 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1941, allocations: 0 / 0.5876 GB, free: 7.027 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004914/0.1946, allocations: 155.4 kB / 0.5877 GB, free: 6.875 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.0001316/0.1947, allocations: 111.2 kB / 0.5878 GB, free: 6.758 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000861/0.1956, allocations: 435.8 kB / 0.5883 GB, free: 6.332 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1956, allocations: 0 / 0.5883 GB, free: 6.332 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002705/0.1959, allocations: 148.2 kB / 0.5884 GB, free: 6.188 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/0.1964, allocations: 93.53 kB / 0.5885 GB, free: 6.105 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.198, allocations: 0.813 MB / 0.5893 GB, free: 5.262 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.1984, allocations: 0.8352 MB / 0.5901 GB, free: 4.395 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.1986, allocations: 43.25 kB / 0.5901 GB, free: 4.352 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.625e-05/0.1987, allocations: 27.44 kB / 0.5902 GB, free: 4.328 MB / 462.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1987, allocations: 7.938 kB / 0.5902 GB, free: 4.32 MB / 462.1 MB Notification: Performance of Templates: time 0.009223/0.2079, allocations: 4.238 MB / 0.5943 GB, free: 112 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)