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.001026/0.001026, allocations: 103 kB / 16.35 MB, free: 5.824 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.0009562/0.0009562, allocations: 193.9 kB / 17.3 MB, free: 5.48 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.231/1.231, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001885/0.001885, allocations: 289.2 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8802/0.8802, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001714, allocations: 95.41 kB / 0.5967 GB, free: 14.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1529, allocations: 86.97 MB / 0.6816 GB, free: 7.508 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.00243/0.1554, allocations: 1.462 MB / 0.683 GB, free: 6.031 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007783/0.1562, allocations: 0.554 MB / 0.6836 GB, free: 5.469 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.758e-05/0.1562, allocations: 0 / 0.6836 GB, free: 5.469 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.522e-05/0.1562, allocations: 3.938 kB / 0.6836 GB, free: 5.465 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.53e-05/0.1563, allocations: 7.938 kB / 0.6836 GB, free: 5.457 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.1565, allocations: 55.81 kB / 0.6836 GB, free: 5.402 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.177e-05/0.1566, allocations: 31.86 kB / 0.6837 GB, free: 5.371 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.519e-05/0.1567, allocations: 7.984 kB / 0.6837 GB, free: 5.363 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.812e-05/0.1568, allocations: 11.94 kB / 0.6837 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.475e-05/0.1568, allocations: 15.92 kB / 0.6837 GB, free: 5.336 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.1568, allocations: 4 kB / 0.6837 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.1569, allocations: 51.95 kB / 0.6837 GB, free: 5.281 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.526e-05/0.157, allocations: 19.92 kB / 0.6838 GB, free: 5.262 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.157, allocations: 7.922 kB / 0.6838 GB, free: 5.254 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.1571, allocations: 67.8 kB / 0.6838 GB, free: 5.188 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1571, allocations: 0 / 0.6838 GB, free: 5.188 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1571, allocations: 0 / 0.6838 GB, free: 5.188 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.1571, allocations: 0 / 0.6838 GB, free: 5.188 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.0003542/0.1575, allocations: 343.5 kB / 0.6842 GB, free: 4.805 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.1575, allocations: 8.031 kB / 0.6842 GB, free: 4.797 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.498e-05/0.1576, allocations: 0.9375 kB / 0.6842 GB, free: 4.797 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.591e-05/0.1577, allocations: 180.2 kB / 0.6843 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.1577, allocations: 384 / 0.6843 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.1577, allocations: 4.375 kB / 0.6843 GB, free: 4.578 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.1578, allocations: 49.94 kB / 0.6844 GB, free: 4.523 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1578, allocations: 3.938 kB / 0.6844 GB, free: 4.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.1579, allocations: 3.938 kB / 0.6844 GB, free: 4.516 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1579, allocations: 0 / 0.6844 GB, free: 4.516 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.7e-05/0.1579, allocations: 19.98 kB / 0.6844 GB, free: 4.496 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002765/0.1582, allocations: 252.9 kB / 0.6847 GB, free: 4.199 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.699e-05/0.1583, allocations: 34.56 kB / 0.6847 GB, free: 4.156 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.483e-05/0.1584, allocations: 16.91 kB / 0.6847 GB, free: 4.137 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007134/0.1591, allocations: 477.4 kB / 0.6852 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.1591, allocations: 38.5 kB / 0.6852 GB, free: 3.531 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1591, allocations: 0 / 0.6852 GB, free: 3.531 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.00021/0.1593, allocations: 65.58 kB / 0.6853 GB, free: 3.461 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.1594, allocations: 51.41 kB / 0.6853 GB, free: 3.398 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.107e-05/0.1595, allocations: 110 kB / 0.6854 GB, free: 3.281 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.038e-05/0.1595, allocations: 29.7 kB / 0.6854 GB, free: 3.246 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.1595, allocations: 84.14 kB / 0.6855 GB, free: 3.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.1595, allocations: 12.66 kB / 0.6855 GB, free: 3.148 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.1596, allocations: 17.7 kB / 0.6856 GB, free: 3.125 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.419e-05/0.1597, allocations: 310.8 kB / 0.6858 GB, free: 2.812 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.209e-05/0.1597, allocations: 8 kB / 0.6859 GB, free: 2.805 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.27e-05/0.1597, allocations: 15.92 kB / 0.6859 GB, free: 2.789 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.881e-05/0.1598, allocations: 32.84 kB / 0.6859 GB, free: 2.754 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1598, allocations: 0 / 0.6859 GB, free: 2.754 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001031/0.1599, allocations: 53.69 kB / 0.686 GB, free: 2.695 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.16, allocations: 8 kB / 0.686 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.16, allocations: 0 / 0.686 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.16, allocations: 4 kB / 0.686 GB, free: 2.684 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.309e-05/0.1601, allocations: 7.984 kB / 0.686 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1601, allocations: 0 / 0.686 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.891e-05/0.1601, allocations: 4.031 kB / 0.686 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-06/0.1601, allocations: 4 kB / 0.686 GB, free: 2.668 MB / 494.1 MB 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 5.987e-05/0.1602, allocations: 109.8 kB / 0.6861 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.1602, allocations: 11.84 kB / 0.6861 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.1604, allocations: 61.2 kB / 0.6862 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1604, allocations: 0 / 0.6862 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1604, allocations: 0 / 0.6862 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1604, allocations: 11.95 kB / 0.6862 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.1605, allocations: 161.6 kB / 0.6863 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1605, allocations: 0 / 0.6863 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.144e-05/0.1606, allocations: 7.984 kB / 0.6863 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1606, allocations: 0 / 0.6863 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.1606, allocations: 0 / 0.6863 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1606, allocations: 0 / 0.6863 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1606, allocations: 3.938 kB / 0.6863 GB, free: 2.242 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.1608, allocations: 163.4 kB / 0.6865 GB, free: 2.066 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.1608, allocations: 85 kB / 0.6866 GB, free: 1.965 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.1608, allocations: 0 / 0.6866 GB, free: 1.965 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.821e-05/0.1609, allocations: 4 kB / 0.6866 GB, free: 1.961 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.582e-05/0.1609, allocations: 0 / 0.6866 GB, free: 1.961 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.1609, allocations: 0 / 0.6866 GB, free: 1.961 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.077e-05/0.161, allocations: 91.27 kB / 0.6867 GB, free: 1.871 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.161, allocations: 0 / 0.6867 GB, free: 1.871 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002214/0.1612, allocations: 16 kB / 0.6867 GB, free: 1.855 MB / 494.1 MB 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.0001492/0.1614, allocations: 123.2 kB / 0.6868 GB, free: 1.727 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001179/0.1615, allocations: 23.98 kB / 0.6868 GB, free: 1.703 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.1615, allocations: 0 / 0.6868 GB, free: 1.703 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.088e-05/0.1615, allocations: 15.92 kB / 0.6868 GB, free: 1.688 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.1618, allocations: 7.938 kB / 0.6868 GB, free: 1.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002489/0.162, allocations: 122.9 kB / 0.687 GB, free: 1.535 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.1622, allocations: 0.6807 MB / 0.6876 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.848e-05/0.1622, allocations: 0.5469 kB / 0.6876 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.614e-05/0.1623, allocations: 7.438 kB / 0.6876 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1623, allocations: 0 / 0.6876 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of Templates: time 0.002576/0.1648, allocations: 0.6787 MB / 0.6883 GB, free: 148 kB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)