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.001542/0.001542, 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.001855/0.001855, allocations: 192.6 kB / 16.25 MB, free: 6.629 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.318/1.318, allocations: 222.9 MB / 239.9 MB, free: 4.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002059/0.002058, allocations: 282.8 kB / 290.4 MB, free: 2.094 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.931/0.931, allocations: 169.2 MB / 0.4978 GB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002629/0.002629, allocations: 101.4 kB / 0.5947 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1743, allocations: 86.98 MB / 0.6796 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.002444/0.1768, allocations: 0.638 MB / 0.6803 GB, free: 376 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.1788, allocations: 1.249 MB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.576e-05/0.1788, allocations: 0 / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.803e-05/0.1789, allocations: 0.7188 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.69e-06/0.1789, allocations: 3.938 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004762/0.1794, allocations: 53.92 kB / 0.6815 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.501e-05/0.1794, allocations: 4 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.1795, allocations: 11.92 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.533e-05/0.1795, allocations: 0 / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.915e-05/0.1796, allocations: 0.6562 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.1796, allocations: 0 / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.1798, allocations: 99.89 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.839e-06/0.1799, allocations: 0 / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.312e-05/0.1799, allocations: 0 / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.18, allocations: 51.94 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1801, allocations: 0 / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1801, allocations: 4 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1801, allocations: 0 / 0.6817 GB, free: 14.88 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.0003917/0.1805, allocations: 323.6 kB / 0.682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.1805, allocations: 8.031 kB / 0.682 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.403e-05/0.1806, allocations: 8.938 kB / 0.682 GB, free: 14.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.1807, allocations: 168.3 kB / 0.6822 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.1807, allocations: 384 / 0.6822 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.1807, allocations: 384 / 0.6822 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.984e-05/0.1808, allocations: 34 kB / 0.6822 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1809, allocations: 7.938 kB / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.1809, allocations: 3.938 kB / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1809, allocations: 0 / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.097e-05/0.1809, allocations: 0 / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.1811, allocations: 153.7 kB / 0.6824 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.893e-05/0.1812, allocations: 22.55 kB / 0.6824 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.148e-05/0.1812, allocations: 4.859 kB / 0.6824 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006155/0.1818, allocations: 0.5662 MB / 0.683 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.1818, allocations: 38.5 kB / 0.683 GB, free: 13.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1819, allocations: 4 kB / 0.683 GB, free: 13.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001649/0.182, allocations: 29.7 kB / 0.683 GB, free: 13.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.1821, allocations: 51.41 kB / 0.6831 GB, free: 13.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.569e-05/0.1821, allocations: 89.86 kB / 0.6832 GB, free: 13.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.1822, allocations: 25.7 kB / 0.6832 GB, free: 13.04 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.308e-05/0.1822, allocations: 88.08 kB / 0.6833 GB, free: 12.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/0.1823, allocations: 4.219 kB / 0.6833 GB, free: 12.94 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/0.1823, allocations: 13.72 kB / 0.6833 GB, free: 12.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1825, allocations: 319 kB / 0.6836 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.45e-05/0.1825, allocations: 4 kB / 0.6836 GB, free: 12.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-06/0.1825, allocations: 0 / 0.6836 GB, free: 12.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.094e-05/0.1825, allocations: 8.859 kB / 0.6836 GB, free: 12.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1825, allocations: 0 / 0.6836 GB, free: 12.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.684e-05/0.1826, allocations: 33.7 kB / 0.6836 GB, free: 12.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1826, allocations: 7.938 kB / 0.6836 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1826, allocations: 96 / 0.6836 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1827, allocations: 8 kB / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.525e-05/0.1827, allocations: 3.938 kB / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.1827, allocations: 3.984 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.279e-05/0.1828, allocations: 0 / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.1828, allocations: 0 / 0.6837 GB, free: 12.52 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 9.319e-05/0.1829, allocations: 111.2 kB / 0.6838 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.106e-05/0.1829, allocations: 3.938 kB / 0.6838 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.183, allocations: 40.73 kB / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.183, allocations: 0 / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.183, allocations: 7.984 kB / 0.6838 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.183, allocations: 0 / 0.6838 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.1832, allocations: 149.7 kB / 0.684 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1832, allocations: 3.938 kB / 0.684 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.717e-05/0.1832, allocations: 0 / 0.684 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.1832, allocations: 7.938 kB / 0.684 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.1833, allocations: 0 / 0.684 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1833, allocations: 0 / 0.684 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1833, allocations: 11.91 kB / 0.684 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.638e-05/0.1834, allocations: 61.12 kB / 0.684 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.078e-05/0.1835, allocations: 77.11 kB / 0.6841 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1835, allocations: 3.938 kB / 0.6841 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-06/0.1835, allocations: 0 / 0.6841 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.1835, allocations: 0 / 0.6841 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.1835, allocations: 0 / 0.6841 GB, free: 11.95 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.685e-05/0.1836, allocations: 79.31 kB / 0.6842 GB, free: 11.88 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1836, allocations: 0 / 0.6842 GB, free: 11.88 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002016/0.1838, allocations: 11.98 kB / 0.6842 GB, free: 11.86 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.0002459/0.184, allocations: 107.2 kB / 0.6843 GB, free: 11.75 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.088e-05/0.1841, allocations: 7.938 kB / 0.6843 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1841, allocations: 0 / 0.6843 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.633e-06/0.1841, allocations: 0 / 0.6843 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001438/0.1843, allocations: 5.891 kB / 0.6843 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001907/0.1845, allocations: 81.19 kB / 0.6844 GB, free: 11.63 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.1848, allocations: 0.669 MB / 0.6851 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.305e-05/0.1848, allocations: 4 kB / 0.6851 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.553e-05/0.1848, allocations: 7.438 kB / 0.6851 GB, free: 10.93 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1848, allocations: 0 / 0.6851 GB, free: 10.93 MB / 494.1 MB Notification: Performance of Templates: time 0.002503/0.1873, allocations: 308.5 kB / 0.6854 GB, free: 10.62 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)