Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.01076/0.01076, allocations: 101 kB / 15.87 MB, free: 5.871 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.001837/0.001838, allocations: 192.1 kB / 16.79 MB, free: 5.816 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.392/1.392, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9922/0.9922, allocations: 135.1 MB / 425.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 64.34 kB / 0.5053 GB, free: 5.75 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1793, allocations: 80.92 MB / 0.5843 GB, free: 5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003371/0.1827, allocations: 2.077 MB / 0.5864 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008295/0.1836, allocations: 0.5182 MB / 0.5869 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.655e-05/0.1837, allocations: 4 kB / 0.5869 GB, free: 2.375 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.1838, allocations: 15.84 kB / 0.5869 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.467e-05/0.184, allocations: 35.64 kB / 0.5869 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001971/0.1842, allocations: 47.94 kB / 0.587 GB, free: 2.277 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.1844, allocations: 187.2 kB / 0.5871 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.1845, allocations: 69.84 kB / 0.5872 GB, free: 2.023 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.1847, allocations: 63.78 kB / 0.5873 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.1848, allocations: 83.61 kB / 0.5874 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.1848, allocations: 15.94 kB / 0.5874 GB, free: 1.863 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.834e-05/0.1849, allocations: 8 kB / 0.5874 GB, free: 1.855 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.91e-05/0.1849, allocations: 23.92 kB / 0.5874 GB, free: 1.832 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.161e-05/0.185, allocations: 83.52 kB / 0.5875 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.1852, allocations: 124 kB / 0.5876 GB, free: 1.629 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1852, allocations: 0 / 0.5876 GB, free: 1.629 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1852, allocations: 0 / 0.5876 GB, free: 1.629 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1852, allocations: 4 kB / 0.5876 GB, free: 1.625 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.0008006/0.186, allocations: 485.1 kB / 0.5881 GB, free: 1.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.186, allocations: 12.03 kB / 0.5881 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.1861, allocations: 24.64 kB / 0.5881 GB, free: 1.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.1863, allocations: 212.7 kB / 0.5883 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.772e-05/0.1864, allocations: 42.27 kB / 0.5883 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.1865, allocations: 12.38 kB / 0.5884 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004148/0.1869, allocations: 161.6 kB / 0.5885 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1869, allocations: 7.906 kB / 0.5885 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1869, allocations: 4 kB / 0.5885 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.187, allocations: 4 kB / 0.5885 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004909/0.1874, allocations: 139.9 kB / 0.5887 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008224/0.1883, allocations: 0.5308 MB / 0.5892 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.1887, allocations: 142.5 kB / 0.5893 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.189, allocations: 76.81 kB / 0.5894 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.189, allocations: 4 kB / 0.5894 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.189, allocations: 34.55 kB / 0.5894 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.263e-06/0.189, allocations: 0 / 0.5894 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007221/0.1898, allocations: 221.3 kB / 0.5896 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.1898, allocations: 55.39 kB / 0.5897 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.1899, allocations: 149.8 kB / 0.5898 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.19, allocations: 33.69 kB / 0.5899 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.19, allocations: 124.2 kB / 0.59 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.168e-05/0.1901, allocations: 51.3 kB / 0.59 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.1902, allocations: 29.7 kB / 0.5901 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.1903, allocations: 326.8 kB / 0.5904 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.1905, allocations: 55.95 kB / 0.5904 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.1907, allocations: 90.52 kB / 0.5905 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003931/0.1911, allocations: 142.2 kB / 0.5906 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1912, allocations: 3.938 kB / 0.5906 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004677/0.1916, allocations: 189.4 kB / 0.5908 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1917, allocations: 8 kB / 0.5908 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1917, allocations: 0 / 0.5908 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1917, allocations: 0 / 0.5908 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.1919, allocations: 39.91 kB / 0.5909 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1919, allocations: 8 kB / 0.5909 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000156/0.1921, allocations: 31.81 kB / 0.5909 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.1921, allocations: 8 kB / 0.5909 GB, free: 13.97 MB / 0.4981 GB 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.000109/0.1922, allocations: 122.3 kB / 0.591 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.1923, allocations: 15.81 kB / 0.5911 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.83e-05/0.1923, allocations: 20.7 kB / 0.5911 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.1923, allocations: 7.984 kB / 0.5911 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1924, allocations: 0 / 0.5911 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.1924, allocations: 0 / 0.5911 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002642/0.1926, allocations: 245.5 kB / 0.5913 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1926, allocations: 0 / 0.5913 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.1928, allocations: 39.91 kB / 0.5913 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1929, allocations: 0 / 0.5913 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.1929, allocations: 0 / 0.5913 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1929, allocations: 4 kB / 0.5914 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1929, allocations: 0 / 0.5914 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000726/0.1936, allocations: 347.1 kB / 0.5917 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.1937, allocations: 88.98 kB / 0.5918 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.1937, allocations: 64 / 0.5918 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.1939, allocations: 23.97 kB / 0.5918 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.431e-05/0.1939, allocations: 11.98 kB / 0.5918 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.194, allocations: 4 kB / 0.5918 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.511e-05/0.1941, allocations: 115.2 kB / 0.5919 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1941, allocations: 0 / 0.5919 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000275/0.1943, allocations: 35.91 kB / 0.592 GB, free: 12.82 MB / 0.4981 GB 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 9.472e-05/0.1944, allocations: 103.2 kB / 0.5921 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004866/0.1949, allocations: 147.3 kB / 0.5922 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1949, allocations: 0 / 0.5922 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.1952, allocations: 80 kB / 0.5923 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.1956, allocations: 26.73 kB / 0.5923 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008099/0.1964, allocations: 468.9 kB / 0.5927 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.1967, allocations: 0.7121 MB / 0.5934 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.432e-05/0.1967, allocations: 19.42 kB / 0.5935 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1968, allocations: 4 kB / 0.5935 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of Templates: time 0.003357/0.2001, allocations: 1.798 MB / 0.5952 GB, free: 9.414 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.makefile (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & ./IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1)