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.00709/0.00709, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.00131/0.00131, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7858/0.7858, allocations: 135.2 MB / 425.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 65.78 kB / 0.5856 GB, free: 21.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.1738, allocations: 80.93 MB / 0.6646 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.003301/0.1772, allocations: 2.027 MB / 0.6666 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008605/0.1781, allocations: 0.5337 MB / 0.6671 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.585e-05/0.1782, allocations: 4 kB / 0.6671 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002004/0.1784, allocations: 27.72 kB / 0.6671 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.676e-05/0.1785, allocations: 43.58 kB / 0.6672 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.1787, allocations: 55.86 kB / 0.6672 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.1789, allocations: 187.2 kB / 0.6674 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.1791, allocations: 62.33 kB / 0.6675 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1793, allocations: 83.69 kB / 0.6675 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.1794, allocations: 79.62 kB / 0.6676 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.1795, allocations: 16 kB / 0.6676 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.828e-05/0.1795, allocations: 16 kB / 0.6677 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.306e-05/0.1796, allocations: 31.91 kB / 0.6677 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.984e-05/0.1797, allocations: 83.53 kB / 0.6678 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.1799, allocations: 175.3 kB / 0.6679 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1799, allocations: 0 / 0.6679 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.214e-06/0.1799, allocations: 0 / 0.6679 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.1799, allocations: 0 / 0.6679 GB, free: 2.371 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.0008399/0.1807, allocations: 490.8 kB / 0.6684 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1808, allocations: 13.11 kB / 0.6684 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.1809, allocations: 16.75 kB / 0.6684 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.1811, allocations: 216 kB / 0.6686 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.161e-05/0.1812, allocations: 46.25 kB / 0.6687 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.428e-05/0.1812, allocations: 12.38 kB / 0.6687 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004038/0.1816, allocations: 159 kB / 0.6688 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1816, allocations: 3.938 kB / 0.6688 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.1817, allocations: 8 kB / 0.6689 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1817, allocations: 4 kB / 0.6689 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004923/0.1822, allocations: 143.9 kB / 0.669 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008806/0.1831, allocations: 0.523 MB / 0.6695 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004477/0.1835, allocations: 142.6 kB / 0.6696 GB, free: 464 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.1838, allocations: 72.81 kB / 0.6697 GB, free: 388 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.1838, allocations: 0 / 0.6697 GB, free: 388 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.1838, allocations: 38.56 kB / 0.6697 GB, free: 340 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=12): time 1.173e-06/0.1839, allocations: 4 kB / 0.6697 GB, free: 336 kB / 0.4981 GB Notification: Performance of matching and sorting (n=12): time 0.0007837/0.1846, allocations: 225.2 kB / 0.67 GB, free: 104 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.1847, allocations: 55.34 kB / 0.67 GB, free: 36 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.1849, allocations: 150.2 kB / 0.6702 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.1849, allocations: 29.7 kB / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 9.322e-05/0.185, allocations: 128.1 kB / 0.6703 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.185, allocations: 39.39 kB / 0.6703 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.607e-05/0.1851, allocations: 33.72 kB / 0.6704 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001917/0.1853, allocations: 322.8 kB / 0.6707 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.1855, allocations: 59.95 kB / 0.6707 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.1857, allocations: 93.33 kB / 0.6708 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.1862, allocations: 145.7 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1862, allocations: 3.938 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004693/0.1866, allocations: 189.3 kB / 0.6712 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1867, allocations: 4 kB / 0.6712 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1867, allocations: 0 / 0.6712 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.1867, allocations: 8.062 kB / 0.6712 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.1869, allocations: 35.97 kB / 0.6712 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.1869, allocations: 0 / 0.6712 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.1871, allocations: 31.81 kB / 0.6712 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.1871, allocations: 4 kB / 0.6712 GB, free: 14.73 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.0001114/0.1872, allocations: 133.7 kB / 0.6714 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.1872, allocations: 7.906 kB / 0.6714 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.914e-05/0.1873, allocations: 24.72 kB / 0.6714 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1874, allocations: 3.984 kB / 0.6714 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1874, allocations: 0 / 0.6714 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1874, allocations: 7.984 kB / 0.6714 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002669/0.1877, allocations: 237.4 kB / 0.6716 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1877, allocations: 3.984 kB / 0.6716 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.1879, allocations: 35.97 kB / 0.6717 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1879, allocations: 4 kB / 0.6717 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.1879, allocations: 4 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1879, allocations: 7.938 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1879, allocations: 0 / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007411/0.1886, allocations: 335.2 kB / 0.672 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.141e-05/0.1887, allocations: 92.89 kB / 0.6721 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.1887, allocations: 3.984 kB / 0.6721 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.1889, allocations: 19.98 kB / 0.6721 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.445e-05/0.189, allocations: 15.97 kB / 0.6721 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.189, allocations: 4 kB / 0.6721 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 8.078e-05/0.1891, allocations: 112.1 kB / 0.6722 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1891, allocations: 0 / 0.6722 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002469/0.1893, allocations: 32 kB / 0.6723 GB, free: 13.57 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.000106/0.1894, allocations: 107.2 kB / 0.6724 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005335/0.19, allocations: 144.3 kB / 0.6725 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.19, allocations: 0 / 0.6725 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.1902, allocations: 80.02 kB / 0.6726 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.1906, allocations: 20.14 kB / 0.6726 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007782/0.1914, allocations: 401 kB / 0.673 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.1917, allocations: 0.7158 MB / 0.6737 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.942e-05/0.1918, allocations: 8.562 kB / 0.6737 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.038e-05/0.1919, allocations: 15.42 kB / 0.6737 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1919, allocations: 0 / 0.6737 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of Templates: time 0.004565/0.1964, allocations: 1.6 MB / 0.6753 GB, free: 10.45 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)