Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001623/0.001624, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002048/0.002048, allocations: 195.1 kB / 16.14 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7449/0.7449, allocations: 132.2 MB / 422.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 67.81 kB / 0.5011 GB, free: 9.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1723, allocations: 80.21 MB / 0.5794 GB, free: 9.258 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003313/0.1757, allocations: 2.085 MB / 0.5815 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000867/0.1766, allocations: 0.5221 MB / 0.582 GB, free: 6.629 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.399e-05/0.1767, allocations: 0 / 0.582 GB, free: 6.629 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.1768, allocations: 19.86 kB / 0.582 GB, free: 6.609 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.1769, allocations: 43.62 kB / 0.582 GB, free: 6.566 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.1772, allocations: 39.97 kB / 0.5821 GB, free: 6.527 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.1774, allocations: 179.2 kB / 0.5822 GB, free: 6.352 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.1776, allocations: 61.83 kB / 0.5823 GB, free: 6.289 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.1777, allocations: 67.77 kB / 0.5824 GB, free: 6.223 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.1778, allocations: 79.67 kB / 0.5824 GB, free: 6.145 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.1779, allocations: 15.94 kB / 0.5825 GB, free: 6.129 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.009e-05/0.1779, allocations: 12 kB / 0.5825 GB, free: 6.117 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.178, allocations: 31.84 kB / 0.5825 GB, free: 6.086 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.875e-05/0.178, allocations: 75.59 kB / 0.5826 GB, free: 6.012 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.1782, allocations: 163.6 kB / 0.5827 GB, free: 5.852 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1782, allocations: 0 / 0.5827 GB, free: 5.852 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1782, allocations: 0 / 0.5827 GB, free: 5.852 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1783, allocations: 0 / 0.5827 GB, free: 5.852 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000859/0.1791, allocations: 490.8 kB / 0.5832 GB, free: 5.324 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.1792, allocations: 8.031 kB / 0.5832 GB, free: 5.316 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.86e-05/0.1792, allocations: 28.59 kB / 0.5832 GB, free: 5.289 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.1795, allocations: 211.3 kB / 0.5834 GB, free: 5.047 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.673e-05/0.1795, allocations: 42.27 kB / 0.5835 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.1796, allocations: 12.38 kB / 0.5835 GB, free: 4.988 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004129/0.18, allocations: 165.6 kB / 0.5836 GB, free: 4.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.18, allocations: 0 / 0.5836 GB, free: 4.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.18, allocations: 8 kB / 0.5836 GB, free: 4.812 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1801, allocations: 4 kB / 0.5836 GB, free: 4.809 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004775/0.1805, allocations: 143.9 kB / 0.5838 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007937/0.1813, allocations: 0.5269 MB / 0.5843 GB, free: 4.078 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004487/0.1818, allocations: 138.5 kB / 0.5844 GB, free: 3.934 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.182, allocations: 76.81 kB / 0.5845 GB, free: 3.855 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.1821, allocations: 3.984 kB / 0.5845 GB, free: 3.852 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.1821, allocations: 38.56 kB / 0.5845 GB, free: 3.805 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.1821, allocations: 0 / 0.5845 GB, free: 3.805 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007513/0.1829, allocations: 221.4 kB / 0.5848 GB, free: 3.582 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.1829, allocations: 51.41 kB / 0.5848 GB, free: 3.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.1831, allocations: 152.4 kB / 0.585 GB, free: 3.363 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.1831, allocations: 25.7 kB / 0.585 GB, free: 3.332 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.906e-05/0.1832, allocations: 136 kB / 0.5851 GB, free: 3.191 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.094e-05/0.1832, allocations: 47.38 kB / 0.5852 GB, free: 3.145 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.1833, allocations: 29.72 kB / 0.5852 GB, free: 3.109 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1834, allocations: 326.8 kB / 0.5855 GB, free: 2.781 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.1836, allocations: 59.94 kB / 0.5855 GB, free: 2.723 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.1839, allocations: 82.52 kB / 0.5856 GB, free: 2.633 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.1843, allocations: 149.4 kB / 0.5858 GB, free: 2.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1843, allocations: 3.938 kB / 0.5858 GB, free: 2.477 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000459/0.1847, allocations: 185.4 kB / 0.586 GB, free: 2.289 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1848, allocations: 4 kB / 0.586 GB, free: 2.285 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1848, allocations: 4 kB / 0.586 GB, free: 2.281 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1848, allocations: 0 / 0.586 GB, free: 2.281 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.185, allocations: 39.91 kB / 0.586 GB, free: 2.242 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.185, allocations: 3.938 kB / 0.586 GB, free: 2.238 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.1852, allocations: 39.88 kB / 0.586 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.1852, allocations: 4 kB / 0.586 GB, free: 2.195 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (con.y_boolean,$PRE.con.y_boolean) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001773/0.1854, allocations: 124.4 kB / 0.5862 GB, free: 2.066 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.899e-05/0.1854, allocations: 15.81 kB / 0.5862 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.81e-05/0.1855, allocations: 16.72 kB / 0.5862 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1855, allocations: 4 kB / 0.5862 GB, free: 2.031 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.1855, allocations: 7.984 kB / 0.5862 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1855, allocations: 0 / 0.5862 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.1858, allocations: 237.5 kB / 0.5864 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.1858, allocations: 4 kB / 0.5864 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.186, allocations: 35.91 kB / 0.5865 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.186, allocations: 0 / 0.5865 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.186, allocations: 4 kB / 0.5865 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.186, allocations: 0 / 0.5865 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.186, allocations: 4 kB / 0.5865 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008168/0.1868, allocations: 339.1 kB / 0.5868 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.908e-05/0.1869, allocations: 92.97 kB / 0.5869 GB, free: 1.238 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.187, allocations: 0 / 0.5869 GB, free: 1.238 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.1871, allocations: 19.98 kB / 0.5869 GB, free: 1.219 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.613e-05/0.1872, allocations: 16.03 kB / 0.5869 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.1872, allocations: 8 kB / 0.5869 GB, free: 1.195 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.244e-05/0.1873, allocations: 111.2 kB / 0.587 GB, free: 1.086 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1873, allocations: 3.938 kB / 0.587 GB, free: 1.082 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.1876, allocations: 35.91 kB / 0.5871 GB, free: 1.047 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0001145/0.1877, allocations: 95.25 kB / 0.5872 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004695/0.1882, allocations: 147.8 kB / 0.5873 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1882, allocations: 0 / 0.5873 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.1884, allocations: 75.88 kB / 0.5874 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004667/0.1889, allocations: 20.06 kB / 0.5874 GB, free: 0.707 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008972/0.1898, allocations: 454.9 kB / 0.5878 GB, free: 240 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.1901, allocations: 0.7238 MB / 0.5885 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.55e-05/0.1902, allocations: 12.55 kB / 0.5885 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.1903, allocations: 15.38 kB / 0.5886 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.1903, allocations: 0 / 0.5886 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of Templates: time 0.004048/0.1943, allocations: 1.362 MB / 0.5899 GB, free: 14.11 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)