Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006046/0.006046, allocations: 98.83 kB / 15.73 MB, free: 6.051 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.001219/0.00122, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.638/1.638, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.6566/0.6566, allocations: 95.48 MB / 365.4 MB, free: 9.773 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.001718/0.001718, allocations: 66.09 kB / 0.5036 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.1699, allocations: 69.09 MB / 0.5711 GB, free: 8.348 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004565/0.1746, allocations: 2.971 MB / 0.574 GB, free: 5.352 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.1768, allocations: 0.9828 MB / 0.5749 GB, free: 4.359 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004991/0.1773, allocations: 11.94 kB / 0.5749 GB, free: 4.348 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003756/0.1777, allocations: 71.27 kB / 0.575 GB, free: 4.277 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003755/0.1781, allocations: 95.17 kB / 0.5751 GB, free: 4.184 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007954/0.1789, allocations: 218.6 kB / 0.5753 GB, free: 3.973 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009475/0.1799, allocations: 0.4953 MB / 0.5758 GB, free: 3.473 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005811/0.1805, allocations: 217.7 kB / 0.576 GB, free: 3.254 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.181, allocations: 183.2 kB / 0.5762 GB, free: 3.074 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004254/0.1814, allocations: 195 kB / 0.5764 GB, free: 2.883 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1815, allocations: 48 kB / 0.5764 GB, free: 2.836 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.48e-05/0.1816, allocations: 51.94 kB / 0.5764 GB, free: 2.785 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1818, allocations: 95.62 kB / 0.5765 GB, free: 2.691 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002819/0.1821, allocations: 210.8 kB / 0.5767 GB, free: 2.484 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007878/0.1829, allocations: 0.5216 MB / 0.5773 GB, free: 1.961 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.1829, allocations: 0 / 0.5773 GB, free: 1.961 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1829, allocations: 0 / 0.5773 GB, free: 1.961 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1829, allocations: 0 / 0.5773 GB, free: 1.961 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001283/0.1842, allocations: 0.7283 MB / 0.578 GB, free: 1.184 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.1843, allocations: 15.98 kB / 0.578 GB, free: 1.168 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.1844, allocations: 52.31 kB / 0.578 GB, free: 1.117 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006428/0.185, allocations: 394 kB / 0.5784 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.1851, allocations: 25.03 kB / 0.5784 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.008e-05/0.1851, allocations: 28.38 kB / 0.5785 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005674/0.1857, allocations: 364.8 kB / 0.5788 GB, free: 268 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.1857, allocations: 3.938 kB / 0.5788 GB, free: 264 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.1858, allocations: 16 kB / 0.5788 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.1858, allocations: 8 kB / 0.5788 GB, free: 240 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004852/0.1863, allocations: 242.5 kB / 0.5791 GB, free: 0 / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.1879, allocations: 1.182 MB / 0.5802 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006055/0.1885, allocations: 254.8 kB / 0.5805 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.1888, allocations: 112.8 kB / 0.5806 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.1888, allocations: 8.375 kB / 0.5806 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/0.1889, allocations: 42.5 kB / 0.5806 GB, free: 14.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=22): time 3.136e-06/0.1889, allocations: 0 / 0.5806 GB, free: 14.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008115/0.1897, allocations: 330.8 kB / 0.5809 GB, free: 13.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.1898, allocations: 136.5 kB / 0.5811 GB, free: 13.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004464/0.1903, allocations: 365.7 kB / 0.5814 GB, free: 13.45 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.1903, allocations: 29.7 kB / 0.5814 GB, free: 13.42 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.1906, allocations: 220.3 kB / 0.5816 GB, free: 13.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.682e-05/0.1907, allocations: 82.83 kB / 0.5817 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.1908, allocations: 49.94 kB / 0.5818 GB, free: 13.06 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.191, allocations: 346.8 kB / 0.5821 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.1912, allocations: 93.75 kB / 0.5822 GB, free: 12.62 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.1915, allocations: 146.9 kB / 0.5823 GB, free: 12.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.1919, allocations: 215.2 kB / 0.5825 GB, free: 12.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1919, allocations: 0 / 0.5825 GB, free: 12.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004925/0.1924, allocations: 292.9 kB / 0.5828 GB, free: 11.94 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.1924, allocations: 4.938 kB / 0.5828 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1924, allocations: 4 kB / 0.5828 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.1924, allocations: 4.031 kB / 0.5828 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.1927, allocations: 56.06 kB / 0.5829 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.1927, allocations: 3.938 kB / 0.5829 GB, free: 11.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.1929, allocations: 35.73 kB / 0.5829 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.1929, allocations: 8 kB / 0.5829 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002512/0.1932, allocations: 200.1 kB / 0.5831 GB, free: 11.62 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001813/0.1934, allocations: 134 kB / 0.5832 GB, free: 11.47 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000289/0.1937, allocations: 183.3 kB / 0.5834 GB, free: 11.28 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.483e-06/0.1937, allocations: 3.938 kB / 0.5834 GB, free: 11.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=28) (initialization_lambda0): time 0.0004422/0.1941, allocations: 261.2 kB / 0.5837 GB, free: 11.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.1941, allocations: 4 kB / 0.5837 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1941, allocations: 4 kB / 0.5837 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.586e-06/0.1941, allocations: 0 / 0.5837 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.1943, allocations: 47.91 kB / 0.5837 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.1944, allocations: 0 / 0.5837 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.1945, allocations: 35.73 kB / 0.5838 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.1946, allocations: 12 kB / 0.5838 GB, free: 10.91 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: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001371/0.1947, allocations: 200.6 kB / 0.584 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.95e-05/0.1948, allocations: 35.61 kB / 0.584 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.195, allocations: 43.47 kB / 0.584 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.195, allocations: 0 / 0.584 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.195, allocations: 3.938 kB / 0.584 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.195, allocations: 7.938 kB / 0.5841 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005091/0.1955, allocations: 421.2 kB / 0.5845 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1955, allocations: 0 / 0.5845 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.1957, allocations: 43.91 kB / 0.5845 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1958, allocations: 8 kB / 0.5845 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.1958, allocations: 4 kB / 0.5845 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1958, allocations: 0 / 0.5845 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1958, allocations: 0 / 0.5845 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00074/0.1966, allocations: 473.7 kB / 0.585 GB, free: 9.629 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.1967, allocations: 136.6 kB / 0.5851 GB, free: 9.477 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.356e-05/0.1968, allocations: 12 kB / 0.5851 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.197, allocations: 27.97 kB / 0.5851 GB, free: 9.438 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.88e-05/0.197, allocations: 19.91 kB / 0.5851 GB, free: 9.418 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.1971, allocations: 11.94 kB / 0.5852 GB, free: 9.406 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002693/0.1973, allocations: 255.2 kB / 0.5854 GB, free: 9.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1973, allocations: 0 / 0.5854 GB, free: 9.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004808/0.1978, allocations: 127.5 kB / 0.5855 GB, free: 9.035 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (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 (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.0001319/0.198, allocations: 103.2 kB / 0.5856 GB, free: 8.926 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006913/0.1987, allocations: 335.6 kB / 0.5859 GB, free: 8.598 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1987, allocations: 0 / 0.5859 GB, free: 8.598 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.1989, allocations: 116.2 kB / 0.5861 GB, free: 8.484 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.1994, allocations: 81.67 kB / 0.5861 GB, free: 8.414 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.2009, allocations: 0.7198 MB / 0.5868 GB, free: 7.664 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.2013, allocations: 0.799 MB / 0.5876 GB, free: 6.84 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001721/0.2015, allocations: 38.95 kB / 0.5877 GB, free: 6.805 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-05/0.2016, allocations: 27.42 kB / 0.5877 GB, free: 6.781 MB / 462.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2016, allocations: 0 / 0.5877 GB, free: 6.781 MB / 462.1 MB Notification: Performance of Templates: time 0.008464/0.2101, allocations: 3.707 MB / 0.5913 GB, free: 3.098 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)