Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 101.2 kB / 16.27 MB, free: 6.418 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.001265/0.001265, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.297/1.297, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002451/0.002451, allocations: 297.4 kB / 291.3 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.129/1.129, allocations: 178.5 MB / 0.5079 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002646/0.002646, allocations: 91.86 kB / 0.6071 GB, free: 9.25 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1728, allocations: 89.15 MB / 0.6942 GB, free: 24 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.002866/0.1757, allocations: 1.466 MB / 0.6956 GB, free: 14.54 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009564/0.1766, allocations: 0.5463 MB / 0.6961 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.595e-05/0.1767, allocations: 7.938 kB / 0.6961 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.822e-05/0.1767, allocations: 3.938 kB / 0.6961 GB, free: 13.97 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.346e-05/0.1768, allocations: 7.938 kB / 0.6961 GB, free: 13.96 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.177, allocations: 55.81 kB / 0.6962 GB, free: 13.91 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.522e-05/0.1771, allocations: 27.86 kB / 0.6962 GB, free: 13.88 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.651e-05/0.1772, allocations: 4 kB / 0.6962 GB, free: 13.88 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.622e-05/0.1773, allocations: 15.92 kB / 0.6962 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.13e-05/0.1774, allocations: 15.92 kB / 0.6963 GB, free: 13.85 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.1774, allocations: 0 / 0.6963 GB, free: 13.85 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.1775, allocations: 51.95 kB / 0.6963 GB, free: 13.8 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.1775, allocations: 8 kB / 0.6963 GB, free: 13.79 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.838e-05/0.1776, allocations: 11.94 kB / 0.6963 GB, free: 13.78 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.1777, allocations: 71.83 kB / 0.6964 GB, free: 13.71 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1777, allocations: 0 / 0.6964 GB, free: 13.71 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1777, allocations: 3.938 kB / 0.6964 GB, free: 13.7 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.1778, allocations: 0 / 0.6964 GB, free: 13.7 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004366/0.1782, allocations: 343.7 kB / 0.6967 GB, free: 13.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1782, allocations: 15.97 kB / 0.6967 GB, free: 13.3 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.1783, allocations: 4.844 kB / 0.6967 GB, free: 13.3 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.1784, allocations: 172.3 kB / 0.6969 GB, free: 13.09 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1784, allocations: 4.375 kB / 0.6969 GB, free: 13.09 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.1784, allocations: 384 / 0.6969 GB, free: 13.09 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.1786, allocations: 46 kB / 0.697 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/0.1786, allocations: 0 / 0.697 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.1786, allocations: 0 / 0.697 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-06/0.1786, allocations: 4 kB / 0.697 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.615e-05/0.1787, allocations: 15.98 kB / 0.697 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003245/0.179, allocations: 268.8 kB / 0.6972 GB, free: 12.71 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.558e-05/0.1791, allocations: 30.56 kB / 0.6973 GB, free: 12.67 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.616e-05/0.1792, allocations: 12.92 kB / 0.6973 GB, free: 12.65 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008339/0.18, allocations: 481.4 kB / 0.6977 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.1801, allocations: 30.56 kB / 0.6978 GB, free: 12.05 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1801, allocations: 0 / 0.6978 GB, free: 12.05 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.000231/0.1803, allocations: 69.59 kB / 0.6978 GB, free: 11.98 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.1804, allocations: 55.41 kB / 0.6979 GB, free: 11.91 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.901e-05/0.1805, allocations: 106 kB / 0.698 GB, free: 11.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.1805, allocations: 29.7 kB / 0.698 GB, free: 11.76 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.713e-05/0.1805, allocations: 84.14 kB / 0.6981 GB, free: 11.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.1805, allocations: 7.906 kB / 0.6981 GB, free: 11.67 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.1806, allocations: 9.719 kB / 0.6981 GB, free: 11.65 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1807, allocations: 322.8 kB / 0.6984 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.156e-05/0.1808, allocations: 4 kB / 0.6984 GB, free: 11.32 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.672e-05/0.1808, allocations: 15.98 kB / 0.6984 GB, free: 11.31 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.264e-05/0.1809, allocations: 32.84 kB / 0.6985 GB, free: 11.27 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1809, allocations: 0 / 0.6985 GB, free: 11.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001197/0.181, allocations: 53.62 kB / 0.6985 GB, free: 11.21 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.1811, allocations: 7.938 kB / 0.6985 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1811, allocations: 0 / 0.6985 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.1811, allocations: 4 kB / 0.6985 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.709e-05/0.1812, allocations: 7.984 kB / 0.6985 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1812, allocations: 320 / 0.6985 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.022e-05/0.1812, allocations: 4.031 kB / 0.6985 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.1812, allocations: 0 / 0.6985 GB, free: 11.19 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.365e-05/0.1813, allocations: 121.7 kB / 0.6987 GB, free: 11.06 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.1813, allocations: 3.906 kB / 0.6987 GB, free: 11.06 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001605/0.1815, allocations: 65.12 kB / 0.6987 GB, free: 10.99 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1815, allocations: 4 kB / 0.6987 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1815, allocations: 0 / 0.6987 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.1815, allocations: 4.031 kB / 0.6987 GB, free: 10.98 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.1817, allocations: 165.6 kB / 0.6989 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1817, allocations: 0 / 0.6989 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.239e-05/0.1818, allocations: 11.98 kB / 0.6989 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1818, allocations: 4 kB / 0.6989 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.1818, allocations: 0 / 0.6989 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1818, allocations: 0 / 0.6989 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1818, allocations: 0 / 0.6989 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001724/0.182, allocations: 159.5 kB / 0.6991 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.529e-05/0.182, allocations: 85 kB / 0.6991 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.182, allocations: 3.938 kB / 0.6991 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.673e-05/0.1821, allocations: 0 / 0.6991 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.032e-05/0.1821, allocations: 4 kB / 0.6991 GB, free: 10.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-06/0.1822, allocations: 0 / 0.6991 GB, free: 10.47 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.272e-05/0.1822, allocations: 91.27 kB / 0.6992 GB, free: 10.38 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1822, allocations: 0 / 0.6992 GB, free: 10.38 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002313/0.1824, allocations: 16 kB / 0.6992 GB, free: 10.37 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001566/0.1826, allocations: 115.2 kB / 0.6994 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001237/0.1827, allocations: 19.98 kB / 0.6994 GB, free: 10.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1828, allocations: 4 kB / 0.6994 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.859e-05/0.1828, allocations: 15.98 kB / 0.6994 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.183, allocations: 7.875 kB / 0.6994 GB, free: 10.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.1833, allocations: 160.3 kB / 0.6996 GB, free: 10.01 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1836, allocations: 0.6768 MB / 0.7002 GB, free: 9.309 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.81e-05/0.1837, allocations: 15.44 kB / 0.7002 GB, free: 9.293 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.1837, allocations: 3.938 kB / 0.7002 GB, free: 9.289 MB / 0.545 GB Notification: Performance of Templates: time 0.002247/0.1859, allocations: 0.8142 MB / 0.701 GB, free: 8.473 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)