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.0007953/0.0007955, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.006966/0.006966, allocations: 172.1 kB / 16.26 MB, free: 6.613 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.319/1.319, allocations: 223.3 MB / 240.3 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.001682/0.001682, allocations: 267 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9152/0.9152, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004569/0.0004569, allocations: 18.91 kB / 0.5987 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.164, allocations: 88.55 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0005292/0.1646, allocations: 311.3 kB / 0.6854 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.1659, allocations: 1.244 MB / 0.6867 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.95e-06/0.1659, allocations: 0 / 0.6867 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.923e-06/0.1659, allocations: 0 / 0.6867 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.675e-06/0.1659, allocations: 0 / 0.6867 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.1661, allocations: 58.8 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 1.723e-05/0.1661, allocations: 0 / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 1.945e-05/0.1662, allocations: 0 / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.888e-06/0.1662, allocations: 3.984 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.133e-05/0.1662, allocations: 4 kB / 0.6867 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.959e-06/0.1662, allocations: 3.938 kB / 0.6867 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.1664, allocations: 93.33 kB / 0.6868 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.581e-06/0.1664, allocations: 4 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.76e-05/0.1664, allocations: 25.7 kB / 0.6868 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.604e-05/0.1665, allocations: 51.94 kB / 0.6869 GB, free: 13.24 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.1665, allocations: 0.625 kB / 0.6869 GB, free: 13.24 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.62e-07/0.1665, allocations: 0 / 0.6869 GB, free: 13.24 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.004e-06/0.1665, allocations: 4.656 kB / 0.6869 GB, free: 13.24 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.0001992/0.1667, allocations: 325.9 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.2e-05/0.1668, allocations: 8.031 kB / 0.6872 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.24e-05/0.1668, allocations: 4.938 kB / 0.6872 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.891e-05/0.1669, allocations: 160.4 kB / 0.6874 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-06/0.1669, allocations: 384 / 0.6874 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-06/0.1669, allocations: 4.859 kB / 0.6874 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.754e-05/0.1669, allocations: 34.55 kB / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.649e-06/0.167, allocations: 8.656 kB / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-06/0.167, allocations: 0 / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-06/0.167, allocations: 0.8125 kB / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.173e-05/0.167, allocations: 3.984 kB / 0.6874 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001025/0.1671, allocations: 146.6 kB / 0.6876 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.257e-05/0.1671, allocations: 19.27 kB / 0.6876 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.649e-05/0.1671, allocations: 13.41 kB / 0.6876 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005138/0.1677, allocations: 0.5695 MB / 0.6881 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.1677, allocations: 34.5 kB / 0.6882 GB, free: 11.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1677, allocations: 3.938 kB / 0.6882 GB, free: 11.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 7.616e-05/0.1678, allocations: 37.69 kB / 0.6882 GB, free: 11.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.1678, allocations: 52 kB / 0.6883 GB, free: 11.53 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.896e-05/0.1679, allocations: 90.58 kB / 0.6884 GB, free: 11.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.699e-06/0.1679, allocations: 26.2 kB / 0.6884 GB, free: 11.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.351e-05/0.1679, allocations: 82.05 kB / 0.6885 GB, free: 11.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.328e-05/0.1679, allocations: 4.219 kB / 0.6885 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/0.1679, allocations: 9.719 kB / 0.6885 GB, free: 11.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.786e-05/0.168, allocations: 314.8 kB / 0.6888 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.736e-06/0.1681, allocations: 4.125 kB / 0.6888 GB, free: 10.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.977e-06/0.1681, allocations: 7.938 kB / 0.6888 GB, free: 10.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.617e-05/0.1681, allocations: 8.859 kB / 0.6888 GB, free: 10.96 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1681, allocations: 3.984 kB / 0.6888 GB, free: 10.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.473e-05/0.1681, allocations: 29.7 kB / 0.6888 GB, free: 10.92 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.1682, allocations: 7.938 kB / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-06/0.1682, allocations: 4 kB / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.809e-06/0.1682, allocations: 0 / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.285e-05/0.1682, allocations: 0 / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-06/0.1682, allocations: 4.094 kB / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.756e-06/0.1682, allocations: 0 / 0.6888 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.1682, allocations: 4 kB / 0.6888 GB, free: 10.9 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.328e-05/0.1683, allocations: 115.1 kB / 0.689 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-06/0.1683, allocations: 7.922 kB / 0.689 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.256e-05/0.1684, allocations: 36.73 kB / 0.689 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1684, allocations: 4 kB / 0.689 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.1684, allocations: 7.969 kB / 0.689 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-06/0.1684, allocations: 0 / 0.689 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.335e-05/0.1685, allocations: 149.7 kB / 0.6891 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1685, allocations: 0 / 0.6891 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.552e-05/0.1685, allocations: 4 kB / 0.6892 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.1685, allocations: 3.938 kB / 0.6892 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-06/0.1686, allocations: 0 / 0.6892 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.1686, allocations: 0 / 0.6892 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1686, allocations: 0 / 0.6892 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.716e-05/0.1686, allocations: 65.06 kB / 0.6892 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.73e-05/0.1687, allocations: 77.11 kB / 0.6893 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.959e-06/0.1687, allocations: 7.875 kB / 0.6893 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-06/0.1687, allocations: 0 / 0.6893 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.1e-05/0.1687, allocations: 0 / 0.6893 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-06/0.1687, allocations: 4 kB / 0.6893 GB, free: 10.33 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.324e-05/0.1688, allocations: 79.28 kB / 0.6894 GB, free: 10.25 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1688, allocations: 0 / 0.6894 GB, free: 10.25 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001762/0.1689, allocations: 8.031 kB / 0.6894 GB, free: 10.24 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 (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.0001338/0.1691, allocations: 111.2 kB / 0.6895 GB, free: 10.12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 4.4e-05/0.1691, allocations: 4 kB / 0.6895 GB, free: 10.12 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1691, allocations: 0 / 0.6895 GB, free: 10.12 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.264e-06/0.1691, allocations: 3.938 kB / 0.6895 GB, free: 10.11 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.1693, allocations: 4 kB / 0.6895 GB, free: 10.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001299/0.1694, allocations: 74.89 kB / 0.6896 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.1696, allocations: 0.677 MB / 0.6902 GB, free: 9.309 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.062e-05/0.1697, allocations: 4 kB / 0.6902 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.127e-05/0.1697, allocations: 7.438 kB / 0.6902 GB, free: 9.297 MB / 494.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1697, allocations: 0 / 0.6902 GB, free: 9.297 MB / 494.1 MB Notification: Performance of Templates: time 0.001905/0.1716, allocations: 299.2 kB / 0.6905 GB, free: 9.008 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)