Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.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_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") translateModel(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001286/0.001286, allocations: 191 kB / 16.14 MB, free: 6.688 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.362/1.362, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7353/0.7353, allocations: 132.2 MB / 422.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 60.12 kB / 0.5011 GB, free: 9.219 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.1844, allocations: 80.21 MB / 0.5794 GB, free: 9.238 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.003726/0.1881, allocations: 2.093 MB / 0.5815 GB, free: 7.133 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.1892, allocations: 0.5181 MB / 0.582 GB, free: 6.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1893, allocations: 0 / 0.582 GB, free: 6.609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.1895, allocations: 19.86 kB / 0.582 GB, free: 6.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.1896, allocations: 35.69 kB / 0.582 GB, free: 6.555 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.1899, allocations: 47.89 kB / 0.5821 GB, free: 6.508 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.1902, allocations: 183.2 kB / 0.5822 GB, free: 6.328 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.1903, allocations: 61.89 kB / 0.5823 GB, free: 6.266 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.1905, allocations: 67.7 kB / 0.5824 GB, free: 6.199 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.1906, allocations: 83.62 kB / 0.5824 GB, free: 6.117 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.1907, allocations: 11.94 kB / 0.5825 GB, free: 6.105 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.943e-05/0.1907, allocations: 12 kB / 0.5825 GB, free: 6.094 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.29e-05/0.1907, allocations: 31.89 kB / 0.5825 GB, free: 6.062 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.12e-05/0.1908, allocations: 75.59 kB / 0.5826 GB, free: 5.988 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.1911, allocations: 163.6 kB / 0.5827 GB, free: 5.828 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1911, allocations: 0 / 0.5827 GB, free: 5.828 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1911, allocations: 0 / 0.5827 GB, free: 5.828 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1911, allocations: 0 / 0.5827 GB, free: 5.828 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.0008553/0.1919, allocations: 486.8 kB / 0.5832 GB, free: 5.305 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.192, allocations: 12.03 kB / 0.5832 GB, free: 5.293 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.588e-05/0.192, allocations: 20.66 kB / 0.5832 GB, free: 5.273 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.1923, allocations: 215.2 kB / 0.5834 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.1924, allocations: 42.25 kB / 0.5835 GB, free: 4.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/0.1925, allocations: 12.38 kB / 0.5835 GB, free: 4.969 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004007/0.1929, allocations: 161.7 kB / 0.5836 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1929, allocations: 4 kB / 0.5836 GB, free: 4.801 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.1929, allocations: 11.92 kB / 0.5836 GB, free: 4.789 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1929, allocations: 4 kB / 0.5836 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004879/0.1934, allocations: 143.8 kB / 0.5838 GB, free: 4.645 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008466/0.1943, allocations: 0.5347 MB / 0.5843 GB, free: 4.047 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004225/0.1947, allocations: 130.6 kB / 0.5844 GB, free: 3.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.195, allocations: 84.8 kB / 0.5845 GB, free: 3.824 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.195, allocations: 4 kB / 0.5845 GB, free: 3.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.195, allocations: 30.56 kB / 0.5845 GB, free: 3.781 MB / 494.1 MB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.195, allocations: 0 / 0.5845 GB, free: 3.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007417/0.1958, allocations: 221.4 kB / 0.5848 GB, free: 3.559 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.1958, allocations: 51.41 kB / 0.5848 GB, free: 3.496 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.196, allocations: 152.4 kB / 0.585 GB, free: 3.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.196, allocations: 33.7 kB / 0.585 GB, free: 3.301 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.408e-05/0.1961, allocations: 124 kB / 0.5851 GB, free: 3.172 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.1961, allocations: 47.39 kB / 0.5851 GB, free: 3.125 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.1962, allocations: 25.72 kB / 0.5852 GB, free: 3.094 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1963, allocations: 330.8 kB / 0.5855 GB, free: 2.762 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.1965, allocations: 63.94 kB / 0.5855 GB, free: 2.699 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.1968, allocations: 78.52 kB / 0.5856 GB, free: 2.613 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003991/0.1972, allocations: 145.2 kB / 0.5858 GB, free: 2.465 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1972, allocations: 3.938 kB / 0.5858 GB, free: 2.461 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004809/0.1977, allocations: 181.4 kB / 0.5859 GB, free: 2.277 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.1977, allocations: 11.98 kB / 0.586 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1977, allocations: 3.938 kB / 0.586 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1977, allocations: 0 / 0.586 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.1979, allocations: 39.97 kB / 0.586 GB, free: 2.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.198, allocations: 3.938 kB / 0.586 GB, free: 2.219 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.1981, allocations: 35.88 kB / 0.586 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.1982, allocations: 8 kB / 0.586 GB, free: 2.176 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.0001069/0.1983, allocations: 128.3 kB / 0.5862 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.1983, allocations: 15.81 kB / 0.5862 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.544e-05/0.1984, allocations: 16.72 kB / 0.5862 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1984, allocations: 0 / 0.5862 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1984, allocations: 0 / 0.5862 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1984, allocations: 3.984 kB / 0.5862 GB, free: 2.008 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.1987, allocations: 241.5 kB / 0.5864 GB, free: 1.723 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1988, allocations: 7.922 kB / 0.5864 GB, free: 1.715 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.199, allocations: 35.97 kB / 0.5865 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.199, allocations: 0 / 0.5865 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.199, allocations: 0 / 0.5865 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.199, allocations: 4 kB / 0.5865 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.199, allocations: 0 / 0.5865 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007725/0.1998, allocations: 339.1 kB / 0.5868 GB, free: 1.328 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.089e-05/0.1999, allocations: 92.98 kB / 0.5869 GB, free: 1.219 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.1999, allocations: 7.984 kB / 0.5869 GB, free: 1.211 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.2001, allocations: 20.05 kB / 0.5869 GB, free: 1.191 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.849e-05/0.2002, allocations: 15.97 kB / 0.5869 GB, free: 1.176 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.2002, allocations: 4 kB / 0.5869 GB, free: 1.172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.771e-05/0.2003, allocations: 115.2 kB / 0.587 GB, free: 1.059 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2003, allocations: 0 / 0.587 GB, free: 1.059 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.2006, allocations: 35.91 kB / 0.5871 GB, free: 1.023 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.0001117/0.2007, allocations: 99.25 kB / 0.5872 GB, free: 0.918 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004873/0.2012, allocations: 143.8 kB / 0.5873 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2012, allocations: 0 / 0.5873 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.2014, allocations: 79.88 kB / 0.5874 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.2018, allocations: 16.06 kB / 0.5874 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008519/0.2026, allocations: 462.8 kB / 0.5878 GB, free: 208 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.203, allocations: 0.716 MB / 0.5885 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.107e-05/0.2031, allocations: 12.55 kB / 0.5885 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.235e-05/0.2032, allocations: 11.44 kB / 0.5886 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of SimCode: time 3.01e-07/0.2032, allocations: 0 / 0.5886 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of Templates: time 0.004059/0.2072, allocations: 1.362 MB / 0.5899 GB, free: 14.09 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.makefile (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & ./IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1)