Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.58/2.58, allocations: 287.9 MB / 302.9 MB, free: 8.277 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001417/0.001417, allocations: 179.4 kB / 371.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.4 MB / 0.6301 GB, free: 10.44 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001006/0.001005, allocations: 90.55 kB / 0.7434 GB, free: 6.457 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004608/0.0004611, allocations: 11 kB / 0.8662 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1629, allocations: 115.3 MB / 0.9787 GB, free: 28.24 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002948/0.1659, allocations: 2.489 MB / 0.9812 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001727/0.1677, allocations: 0.8898 MB / 0.982 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002735/0.168, allocations: 11.94 kB / 0.982 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 7.602e-05/0.1681, allocations: 27.66 kB / 0.9821 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003978/0.1685, allocations: 103.6 kB / 0.9822 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004593/0.169, allocations: 171.3 kB / 0.9823 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004016/0.1694, allocations: 304 kB / 0.9826 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002726/0.1697, allocations: 145 kB / 0.9828 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.1699, allocations: 139.3 kB / 0.9829 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.1701, allocations: 127.2 kB / 0.983 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.1702, allocations: 12 kB / 0.983 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.274e-05/0.1702, allocations: 12 kB / 0.983 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.665e-05/0.1703, allocations: 55.69 kB / 0.9831 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.613e-05/0.1703, allocations: 89.52 kB / 0.9832 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.1707, allocations: 367.2 kB / 0.9835 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.82e-06/0.1707, allocations: 4 kB / 0.9835 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.002e-06/0.1707, allocations: 0 / 0.9835 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.767e-06/0.1707, allocations: 0 / 0.9835 GB, free: 23.3 MB / 0.6198 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.0009702/0.1717, allocations: 0.6428 MB / 0.9842 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1717, allocations: 12.02 kB / 0.9842 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.367e-05/0.1718, allocations: 47.44 kB / 0.9842 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005605/0.1724, allocations: 383.3 kB / 0.9846 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.1725, allocations: 24.66 kB / 0.9846 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.1725, allocations: 28 kB / 0.9846 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.1732, allocations: 341.1 kB / 0.985 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1732, allocations: 0 / 0.985 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.1732, allocations: 12 kB / 0.985 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.1733, allocations: 4 kB / 0.985 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005753/0.1739, allocations: 222.1 kB / 0.9852 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.1755, allocations: 1.198 MB / 0.9864 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/0.1762, allocations: 235.3 kB / 0.9866 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.1762, allocations: 4.188 kB / 0.9866 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.1762, allocations: 34.75 kB / 0.9866 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 2.747e-06/0.1762, allocations: 0 / 0.9866 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.0007915/0.177, allocations: 295.9 kB / 0.9869 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.1771, allocations: 110.8 kB / 0.987 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003784/0.1775, allocations: 341.6 kB / 0.9873 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.1775, allocations: 29.7 kB / 0.9874 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.1777, allocations: 224.1 kB / 0.9876 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.391e-05/0.1778, allocations: 86.83 kB / 0.9877 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.589e-05/0.1778, allocations: 7.938 kB / 0.9877 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.728e-05/0.1779, allocations: 342.8 kB / 0.988 GB, free: 18.46 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.1781, allocations: 75.95 kB / 0.9881 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000257/0.1784, allocations: 143.7 kB / 0.9882 GB, free: 18.22 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.1786, allocations: 85.11 kB / 0.9883 GB, free: 18.14 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1787, allocations: 4 kB / 0.9883 GB, free: 18.13 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006279/0.1793, allocations: 279.3 kB / 0.9886 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1793, allocations: 9.438 kB / 0.9886 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.91e-06/0.1794, allocations: 4 kB / 0.9886 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1794, allocations: 0 / 0.9886 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/0.1797, allocations: 63.91 kB / 0.9886 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1797, allocations: 7.953 kB / 0.9886 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.18, allocations: 39.67 kB / 0.9887 GB, free: 17.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.56e-05/0.18, allocations: 15.98 kB / 0.9887 GB, free: 17.72 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0001817/0.1802, allocations: 161.8 kB / 0.9888 GB, free: 17.55 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.334e-05/0.1803, allocations: 31.62 kB / 0.9889 GB, free: 17.52 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.462e-05/0.1804, allocations: 39.36 kB / 0.9889 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.326e-06/0.1804, allocations: 4 kB / 0.9889 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/0.1804, allocations: 0 / 0.9889 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.1804, allocations: 3.953 kB / 0.9889 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.1809, allocations: 393.2 kB / 0.9893 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.013e-06/0.1809, allocations: 0 / 0.9893 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002856/0.1812, allocations: 47.91 kB / 0.9893 GB, free: 16.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.1812, allocations: 0 / 0.9893 GB, free: 16.99 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.1812, allocations: 8 kB / 0.9893 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.378e-06/0.1813, allocations: 0 / 0.9893 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.319e-06/0.1813, allocations: 0 / 0.9893 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008004/0.1821, allocations: 440.4 kB / 0.9898 GB, free: 16.54 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.1822, allocations: 120.7 kB / 0.9899 GB, free: 16.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.1823, allocations: 8 kB / 0.9899 GB, free: 16.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.1825, allocations: 19.98 kB / 0.9899 GB, free: 16.38 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.945e-05/0.1826, allocations: 19.97 kB / 0.9899 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.1826, allocations: 12.05 kB / 0.9899 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002665/0.1829, allocations: 239.1 kB / 0.9902 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.92e-07/0.1829, allocations: 3.938 kB / 0.9902 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004319/0.1834, allocations: 71.69 kB / 0.9902 GB, free: 16.04 MB / 0.6198 GB 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 (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.0001006/0.1835, allocations: 103.2 kB / 0.9903 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005467/0.184, allocations: 210 kB / 0.9905 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.601e-06/0.1841, allocations: 0 / 0.9905 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.1843, allocations: 103.9 kB / 0.9906 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.1848, allocations: 69.64 kB / 0.9907 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.1862, allocations: 0.8296 MB / 0.9915 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.1865, allocations: 0.7992 MB / 0.9923 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002066/0.1867, allocations: 38.97 kB / 0.9923 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.981e-05/0.1868, allocations: 31.42 kB / 0.9924 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of SimCode: time 1.761e-06/0.1868, allocations: 0 / 0.9924 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of Templates: time 0.008332/0.1952, allocations: 2.846 MB / 0.9951 GB, free: 10.99 MB / 0.6198 GB