Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.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.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008028/0.0008028, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0008252/0.0008252, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.3 MB / 240 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001645/0.001645, allocations: 274.8 kB / 291.4 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9299/0.9299, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004366/0.0004367, allocations: 23.53 kB / 0.598 GB, free: 28.41 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.1658, allocations: 88.54 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0007332/0.1666, allocations: 307.3 kB / 0.6848 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.168, allocations: 1.212 MB / 0.686 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.19e-05/0.168, allocations: 0.875 kB / 0.686 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.104e-05/0.168, allocations: 0 / 0.686 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.1681, allocations: 0 / 0.686 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.1683, allocations: 44.64 kB / 0.686 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.658e-05/0.1684, allocations: 1.156 kB / 0.686 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.246e-05/0.1684, allocations: 3.984 kB / 0.686 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.526e-05/0.1685, allocations: 7.938 kB / 0.686 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.671e-05/0.1685, allocations: 2.312 kB / 0.686 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.837e-06/0.1685, allocations: 3.938 kB / 0.686 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.1687, allocations: 95.89 kB / 0.6861 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-06/0.1688, allocations: 0 / 0.6861 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.171e-05/0.1688, allocations: 25.7 kB / 0.6862 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.13e-05/0.1689, allocations: 34.67 kB / 0.6862 GB, free: 13.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1689, allocations: 0 / 0.6862 GB, free: 13.72 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1689, allocations: 4 kB / 0.6862 GB, free: 13.72 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.1689, allocations: 0 / 0.6862 GB, free: 13.72 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000306/0.1692, allocations: 327.4 kB / 0.6865 GB, free: 13.35 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1693, allocations: 8.031 kB / 0.6865 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.318e-05/0.1693, allocations: 0 / 0.6865 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.848e-05/0.1694, allocations: 164.6 kB / 0.6867 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.1694, allocations: 0 / 0.6867 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.1694, allocations: 4 kB / 0.6867 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.505e-05/0.1695, allocations: 34.12 kB / 0.6867 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1695, allocations: 0.6562 kB / 0.6867 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.1695, allocations: 0 / 0.6867 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1696, allocations: 0.5312 kB / 0.6867 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.91e-05/0.1696, allocations: 10 kB / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.1697, allocations: 149.6 kB / 0.6869 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.481e-05/0.1698, allocations: 18.61 kB / 0.6869 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.343e-05/0.1698, allocations: 5.578 kB / 0.6869 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005352/0.1703, allocations: 0.5681 MB / 0.6874 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.1704, allocations: 35.16 kB / 0.6875 GB, free: 12.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 2.945e-06/0.1704, allocations: 3.984 kB / 0.6875 GB, free: 12.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001256/0.1705, allocations: 37.16 kB / 0.6875 GB, free: 12.08 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.1705, allocations: 51.41 kB / 0.6876 GB, free: 12.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.999e-05/0.1706, allocations: 89.86 kB / 0.6876 GB, free: 11.92 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.1706, allocations: 25.7 kB / 0.6877 GB, free: 11.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.423e-05/0.1706, allocations: 84.14 kB / 0.6877 GB, free: 11.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.1707, allocations: 8.219 kB / 0.6878 GB, free: 11.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-06/0.1707, allocations: 0 / 0.6878 GB, free: 11.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1708, allocations: 315.7 kB / 0.6881 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.536e-06/0.1708, allocations: 0.6562 kB / 0.6881 GB, free: 11.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.1708, allocations: 4 kB / 0.6881 GB, free: 11.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.651e-05/0.1708, allocations: 0.7188 kB / 0.6881 GB, free: 11.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1708, allocations: 0.8438 kB / 0.6881 GB, free: 11.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.49e-05/0.1709, allocations: 37.62 kB / 0.6881 GB, free: 11.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.1709, allocations: 8.625 kB / 0.6881 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1709, allocations: 2.062 kB / 0.6881 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1709, allocations: 3.938 kB / 0.6881 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.894e-05/0.171, allocations: 0 / 0.6881 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.171, allocations: 0 / 0.6881 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.322e-05/0.171, allocations: 4 kB / 0.6881 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.171, allocations: 0 / 0.6881 GB, free: 11.42 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.464e-05/0.1711, allocations: 118.7 kB / 0.6882 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.521e-06/0.1711, allocations: 0 / 0.6882 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.779e-05/0.1712, allocations: 48.66 kB / 0.6883 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1712, allocations: 0 / 0.6883 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1712, allocations: 0 / 0.6883 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1712, allocations: 0 / 0.6883 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.391e-05/0.1713, allocations: 149.6 kB / 0.6884 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1713, allocations: 4.031 kB / 0.6884 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.655e-05/0.1714, allocations: 4 kB / 0.6884 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1714, allocations: 3.938 kB / 0.6884 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.1714, allocations: 4 kB / 0.6884 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1714, allocations: 0 / 0.6884 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1714, allocations: 4 kB / 0.6884 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.956e-05/0.1715, allocations: 53.14 kB / 0.6885 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.401e-05/0.1715, allocations: 85.05 kB / 0.6886 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.205e-06/0.1715, allocations: 4.031 kB / 0.6886 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.021e-05/0.1715, allocations: 0 / 0.6886 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.598e-05/0.1715, allocations: 3.938 kB / 0.6886 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.1716, allocations: 4 kB / 0.6886 GB, free: 10.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.1716, allocations: 79.28 kB / 0.6887 GB, free: 10.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1716, allocations: 0 / 0.6887 GB, free: 10.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002006/0.1718, allocations: 4 kB / 0.6887 GB, free: 10.76 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001431/0.172, allocations: 107.2 kB / 0.6888 GB, free: 10.64 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.475e-05/0.172, allocations: 8 kB / 0.6888 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.172, allocations: 0 / 0.6888 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.971e-06/0.172, allocations: 0 / 0.6888 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.1722, allocations: 4 kB / 0.6888 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001573/0.1723, allocations: 70.77 kB / 0.6888 GB, free: 10.54 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.1725, allocations: 0.6731 MB / 0.6895 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.277e-05/0.1726, allocations: 16.06 kB / 0.6895 GB, free: 9.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.12e-05/0.1726, allocations: 7.438 kB / 0.6895 GB, free: 9.812 MB / 494.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1726, allocations: 0 / 0.6895 GB, free: 9.812 MB / 494.1 MB Notification: Performance of Templates: time 0.002061/0.1747, allocations: 295.9 kB / 0.6898 GB, free: 9.523 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)