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.006278/0.006278, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001293/0.001293, allocations: 192 kB / 16.67 MB, free: 5.969 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8179/0.8179, allocations: 135.1 MB / 425.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.00119, allocations: 58.56 kB / 0.5856 GB, free: 21.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1793, allocations: 80.93 MB / 0.6646 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003354/0.1827, allocations: 2.032 MB / 0.6666 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009077/0.1836, allocations: 0.5297 MB / 0.6671 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.759e-05/0.1837, allocations: 4 kB / 0.6671 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.1839, allocations: 27.72 kB / 0.6671 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.184, allocations: 39.58 kB / 0.6672 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002921/0.1843, allocations: 59.91 kB / 0.6672 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.1845, allocations: 187.2 kB / 0.6674 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.1848, allocations: 72.19 kB / 0.6675 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.1849, allocations: 67.78 kB / 0.6675 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.185, allocations: 83.62 kB / 0.6676 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.1851, allocations: 16 kB / 0.6676 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.746e-05/0.1851, allocations: 12 kB / 0.6676 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.593e-05/0.1852, allocations: 39.89 kB / 0.6677 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.398e-05/0.1853, allocations: 83.53 kB / 0.6678 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.1855, allocations: 175.2 kB / 0.6679 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1855, allocations: 0 / 0.6679 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.253e-06/0.1855, allocations: 0 / 0.6679 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.1855, allocations: 0 / 0.6679 GB, free: 2.379 MB / 0.4981 GB 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.0007822/0.1863, allocations: 494.6 kB / 0.6684 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.1864, allocations: 9.109 kB / 0.6684 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.523e-05/0.1864, allocations: 32.73 kB / 0.6684 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.1866, allocations: 212.1 kB / 0.6686 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.924e-05/0.1867, allocations: 42.25 kB / 0.6687 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.1868, allocations: 16.38 kB / 0.6687 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004032/0.1872, allocations: 159 kB / 0.6689 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1872, allocations: 0 / 0.6689 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.1872, allocations: 4 kB / 0.6689 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1872, allocations: 4 kB / 0.6689 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004958/0.1877, allocations: 143.9 kB / 0.669 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008261/0.1886, allocations: 0.5347 MB / 0.6695 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004524/0.189, allocations: 142.6 kB / 0.6697 GB, free: 456 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.1893, allocations: 72.75 kB / 0.6697 GB, free: 380 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.1893, allocations: 7.984 kB / 0.6697 GB, free: 372 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.1893, allocations: 38.55 kB / 0.6698 GB, free: 324 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.1894, allocations: 0 / 0.6698 GB, free: 324 kB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007265/0.1901, allocations: 213.5 kB / 0.67 GB, free: 104 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.1901, allocations: 63.39 kB / 0.67 GB, free: 28 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.1903, allocations: 142.3 kB / 0.6702 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.1903, allocations: 33.7 kB / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.195e-05/0.1904, allocations: 132.2 kB / 0.6703 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.1904, allocations: 39.62 kB / 0.6704 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/0.1905, allocations: 29.7 kB / 0.6704 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1906, allocations: 326.8 kB / 0.6707 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.1909, allocations: 63.89 kB / 0.6708 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.1911, allocations: 88.34 kB / 0.6708 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.1915, allocations: 137.4 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1915, allocations: 3.938 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004874/0.192, allocations: 193.4 kB / 0.6712 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.192, allocations: 13.94 kB / 0.6712 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1921, allocations: 0 / 0.6712 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1921, allocations: 0 / 0.6712 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.1923, allocations: 39.91 kB / 0.6712 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1923, allocations: 4 kB / 0.6712 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.1924, allocations: 31.86 kB / 0.6713 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.1925, allocations: 4 kB / 0.6713 GB, free: 14.71 MB / 0.5137 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.0001141/0.1926, allocations: 133.7 kB / 0.6714 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.783e-05/0.1926, allocations: 15.91 kB / 0.6714 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.711e-05/0.1927, allocations: 20.7 kB / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1927, allocations: 0 / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1927, allocations: 0 / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1927, allocations: 0 / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002743/0.193, allocations: 245.5 kB / 0.6717 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.193, allocations: 7.938 kB / 0.6717 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001905/0.1932, allocations: 31.97 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1932, allocations: 4 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1932, allocations: 0 / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1932, allocations: 4 kB / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1932, allocations: 0 / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007576/0.194, allocations: 347.1 kB / 0.672 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.938e-05/0.1941, allocations: 96.97 kB / 0.6721 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.1941, allocations: 0 / 0.6721 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.1943, allocations: 19.98 kB / 0.6721 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.1943, allocations: 11.97 kB / 0.6722 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.1943, allocations: 8 kB / 0.6722 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.332e-05/0.1944, allocations: 112.1 kB / 0.6723 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1944, allocations: 4.062 kB / 0.6723 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000264/0.1947, allocations: 32 kB / 0.6723 GB, free: 13.55 MB / 0.5137 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 0.0001033/0.1948, allocations: 95.25 kB / 0.6724 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004902/0.1953, allocations: 140.4 kB / 0.6725 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1953, allocations: 8.125 kB / 0.6725 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.1955, allocations: 79.81 kB / 0.6726 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.1959, allocations: 16.16 kB / 0.6726 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008167/0.1967, allocations: 404.7 kB / 0.673 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.197, allocations: 0.7197 MB / 0.6737 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.547e-05/0.1971, allocations: 8.547 kB / 0.6737 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.1972, allocations: 15.44 kB / 0.6737 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.1972, allocations: 4 kB / 0.6737 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of Templates: time 0.00438/0.2016, allocations: 1.587 MB / 0.6753 GB, free: 10.44 MB / 0.5137 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)