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.001352/0.001352, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001302/0.001302, allocations: 192.7 kB / 16.25 MB, free: 6.633 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.45/1.45, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002579/0.002579, allocations: 294.8 kB / 290.4 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.08/1.08, allocations: 178.6 MB / 0.507 GB, free: 4.703 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002697/0.002697, allocations: 96.22 kB / 0.6059 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1662, allocations: 89.16 MB / 0.693 GB, free: 4.715 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.00279/0.169, allocations: 1.518 MB / 0.6945 GB, free: 3.191 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009648/0.17, allocations: 0.5563 MB / 0.695 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.214e-05/0.17, allocations: 0 / 0.695 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.138e-05/0.1701, allocations: 0.6562 kB / 0.695 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.099e-05/0.1701, allocations: 11.92 kB / 0.695 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.1704, allocations: 38.38 kB / 0.695 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.717e-05/0.1705, allocations: 27.86 kB / 0.6951 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.667e-05/0.1706, allocations: 11.94 kB / 0.6951 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.781e-05/0.1707, allocations: 15.97 kB / 0.6951 GB, free: 2.527 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.516e-05/0.1708, allocations: 17.67 kB / 0.6951 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.1708, allocations: 0 / 0.6951 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1709, allocations: 51.97 kB / 0.6952 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.76e-05/0.1709, allocations: 11.92 kB / 0.6952 GB, free: 2.449 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.804e-05/0.171, allocations: 12.59 kB / 0.6952 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.1711, allocations: 63.8 kB / 0.6953 GB, free: 2.375 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1711, allocations: 1.719 kB / 0.6953 GB, free: 2.375 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1711, allocations: 4 kB / 0.6953 GB, free: 2.371 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1712, allocations: 0 / 0.6953 GB, free: 2.371 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005082/0.1717, allocations: 351.7 kB / 0.6956 GB, free: 1.98 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1717, allocations: 8.031 kB / 0.6956 GB, free: 1.973 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.298e-05/0.1718, allocations: 8.844 kB / 0.6956 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.1719, allocations: 176.2 kB / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1719, allocations: 384 / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.1719, allocations: 384 / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.1721, allocations: 49.98 kB / 0.6958 GB, free: 1.699 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1721, allocations: 0 / 0.6958 GB, free: 1.699 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.1721, allocations: 3.938 kB / 0.6958 GB, free: 1.695 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1721, allocations: 0 / 0.6958 GB, free: 1.695 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.201e-05/0.1722, allocations: 31.91 kB / 0.6959 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003552/0.1726, allocations: 252.9 kB / 0.6961 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.1727, allocations: 30.56 kB / 0.6961 GB, free: 1.328 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.055e-05/0.1728, allocations: 20.91 kB / 0.6962 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009033/0.1737, allocations: 477.4 kB / 0.6966 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.1737, allocations: 34.55 kB / 0.6966 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.1737, allocations: 0 / 0.6966 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002719/0.174, allocations: 61.72 kB / 0.6967 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.1741, allocations: 51.41 kB / 0.6967 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.1742, allocations: 113.8 kB / 0.6969 GB, free: 464 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.1742, allocations: 25.7 kB / 0.6969 GB, free: 432 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.691e-05/0.1743, allocations: 84.12 kB / 0.697 GB, free: 344 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.1743, allocations: 11.91 kB / 0.697 GB, free: 332 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.1743, allocations: 9.719 kB / 0.697 GB, free: 316 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1745, allocations: 310.8 kB / 0.6973 GB, free: 16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.86e-05/0.1746, allocations: 24.02 kB / 0.6973 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.192e-05/0.1746, allocations: 4 kB / 0.6973 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.902e-05/0.1747, allocations: 32.78 kB / 0.6973 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1747, allocations: 7.938 kB / 0.6973 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001291/0.1749, allocations: 57.58 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1749, allocations: 4 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.1749, allocations: 4.031 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1749, allocations: 4 kB / 0.6974 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.35e-05/0.175, allocations: 4 kB / 0.6974 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.175, allocations: 4 kB / 0.6974 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.419e-05/0.1751, allocations: 3.984 kB / 0.6974 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.1751, allocations: 0 / 0.6974 GB, free: 15.84 MB / 0.4981 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.545e-05/0.1752, allocations: 113.8 kB / 0.6975 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.335e-05/0.1752, allocations: 0 / 0.6975 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.1754, allocations: 69.14 kB / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.1754, allocations: 0 / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1754, allocations: 4 kB / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1754, allocations: 0 / 0.6976 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.1756, allocations: 161.6 kB / 0.6978 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1756, allocations: 3.938 kB / 0.6978 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.441e-05/0.1757, allocations: 8 kB / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1757, allocations: 0 / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1757, allocations: 4 kB / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1757, allocations: 0 / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1757, allocations: 4.344 kB / 0.6978 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001831/0.1759, allocations: 155.3 kB / 0.6979 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.1759, allocations: 81.11 kB / 0.698 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.176, allocations: 0 / 0.698 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.036e-05/0.176, allocations: 0 / 0.698 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.1761, allocations: 11.98 kB / 0.698 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.1761, allocations: 0 / 0.698 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.948e-05/0.1761, allocations: 87.3 kB / 0.6981 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1761, allocations: 0 / 0.6981 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002424/0.1764, allocations: 19.98 kB / 0.6981 GB, free: 15.03 MB / 0.4981 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.0001825/0.1766, allocations: 117.5 kB / 0.6982 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001333/0.1767, allocations: 23.97 kB / 0.6982 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1767, allocations: 0 / 0.6982 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.017e-05/0.1768, allocations: 16 kB / 0.6983 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.177, allocations: 13.5 kB / 0.6983 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003364/0.1773, allocations: 126.7 kB / 0.6984 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.1777, allocations: 0.6768 MB / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.603e-05/0.1777, allocations: 4 kB / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.187e-05/0.1778, allocations: 11.48 kB / 0.6991 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1778, allocations: 4 kB / 0.6991 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of Templates: time 0.003116/0.1809, allocations: 0.6604 MB / 0.6997 GB, free: 13.32 MB / 0.4981 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)