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.004661/0.004662, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.001087/0.001087, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002056/0.002056, allocations: 287.1 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9334/0.9334, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 99.84 kB / 0.6815 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1646, allocations: 86.98 MB / 0.7664 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.002396/0.167, allocations: 1.465 MB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009101/0.168, allocations: 0.5546 MB / 0.7684 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.837e-05/0.168, allocations: 0 / 0.7684 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.1681, allocations: 3.938 kB / 0.7684 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.239e-05/0.1681, allocations: 3.938 kB / 0.7684 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.1684, allocations: 51.81 kB / 0.7684 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.352e-05/0.1685, allocations: 31.88 kB / 0.7685 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.996e-05/0.1685, allocations: 11.98 kB / 0.7685 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.139e-05/0.1686, allocations: 4 kB / 0.7685 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.005e-05/0.1687, allocations: 15.92 kB / 0.7685 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.1687, allocations: 4 kB / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.1688, allocations: 51.94 kB / 0.7685 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.1688, allocations: 7.938 kB / 0.7685 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.424e-05/0.1689, allocations: 15.88 kB / 0.7686 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.169, allocations: 71.73 kB / 0.7686 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.169, allocations: 4 kB / 0.7686 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.169, allocations: 0 / 0.7686 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.89e-06/0.169, allocations: 0 / 0.7686 GB, free: 6.141 MB / 0.5606 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.0003658/0.1694, allocations: 351.4 kB / 0.769 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.1695, allocations: 8.031 kB / 0.769 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.1695, allocations: 0.9375 kB / 0.769 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.1696, allocations: 176.2 kB / 0.7691 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.1696, allocations: 4.359 kB / 0.7691 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.1696, allocations: 384 / 0.7691 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.1697, allocations: 50 kB / 0.7692 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.1698, allocations: 4 kB / 0.7692 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.1698, allocations: 0 / 0.7692 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.1698, allocations: 0 / 0.7692 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.48e-05/0.1699, allocations: 23.92 kB / 0.7692 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002888/0.1702, allocations: 256.8 kB / 0.7695 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.602e-05/0.1703, allocations: 34.56 kB / 0.7695 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.258e-05/0.1703, allocations: 12.92 kB / 0.7695 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007309/0.171, allocations: 477.4 kB / 0.77 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.1711, allocations: 42.56 kB / 0.77 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1711, allocations: 0 / 0.77 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0002184/0.1713, allocations: 65.61 kB / 0.7701 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.1713, allocations: 51.41 kB / 0.7701 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.936e-05/0.1714, allocations: 109.8 kB / 0.7702 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.1714, allocations: 25.7 kB / 0.7702 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.167e-05/0.1715, allocations: 88.05 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.525e-05/0.1715, allocations: 8.125 kB / 0.7703 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/0.1715, allocations: 13.72 kB / 0.7704 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1717, allocations: 314.8 kB / 0.7707 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.909e-05/0.1717, allocations: 8 kB / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.346e-05/0.1717, allocations: 11.98 kB / 0.7707 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.674e-05/0.1718, allocations: 36.72 kB / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1718, allocations: 4.062 kB / 0.7707 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001081/0.1719, allocations: 53.59 kB / 0.7708 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.172, allocations: 8 kB / 0.7708 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.172, allocations: 0 / 0.7708 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.172, allocations: 0 / 0.7708 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.568e-05/0.1721, allocations: 11.98 kB / 0.7708 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1721, allocations: 0 / 0.7708 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.733e-05/0.1721, allocations: 0 / 0.7708 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.1721, allocations: 4 kB / 0.7708 GB, free: 3.617 MB / 0.5606 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 6.756e-05/0.1722, allocations: 118.4 kB / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.397e-05/0.1722, allocations: 4 kB / 0.7709 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.1724, allocations: 65.14 kB / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1724, allocations: 0 / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1724, allocations: 0 / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1724, allocations: 0 / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.1725, allocations: 165.6 kB / 0.7711 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1725, allocations: 0 / 0.7711 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.806e-05/0.1726, allocations: 8.031 kB / 0.7711 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1726, allocations: 3.984 kB / 0.7711 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1726, allocations: 7.938 kB / 0.7711 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.1726, allocations: 0 / 0.7711 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1726, allocations: 0 / 0.7711 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/0.1728, allocations: 155.3 kB / 0.7713 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.03e-05/0.1728, allocations: 77.11 kB / 0.7714 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.1728, allocations: 8.016 kB / 0.7714 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.791e-05/0.1729, allocations: 4 kB / 0.7714 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.682e-05/0.1729, allocations: 4 kB / 0.7714 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1729, allocations: 0 / 0.7714 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.637e-05/0.173, allocations: 87.27 kB / 0.7715 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.173, allocations: 0 / 0.7715 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002268/0.1732, allocations: 23.94 kB / 0.7715 GB, free: 2.801 MB / 0.5606 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.00016/0.1734, allocations: 114 kB / 0.7716 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001237/0.1735, allocations: 27.98 kB / 0.7716 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1735, allocations: 0 / 0.7716 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.904e-05/0.1736, allocations: 11.94 kB / 0.7716 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.1738, allocations: 11.92 kB / 0.7716 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002698/0.1741, allocations: 122.6 kB / 0.7718 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.1743, allocations: 0.6769 MB / 0.7724 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.258e-05/0.1743, allocations: 11.98 kB / 0.7724 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.823e-05/0.1744, allocations: 7.438 kB / 0.7724 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.1744, allocations: 0 / 0.7724 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of Templates: time 0.002597/0.177, allocations: 0.6861 MB / 0.7731 GB, free: 1.078 MB / 0.5606 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)