Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.026/2.026, allocations: 391.2 MB / 407 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 187.4 kB / 499.1 MB, free: 4.621 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 0.7948 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009686/0.0009686, allocations: 106.6 kB / 0.9329 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001034, allocations: 49.88 kB / 1.081 GB, free: 218.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2066, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001614/0.2083, allocations: 0.6451 MB / 1.219 GB, free: 116.5 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.2095, allocations: 1.257 MB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.829e-06/0.2095, allocations: 0 / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.2096, allocations: 7.938 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 5.009e-06/0.2096, allocations: 0 / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.2099, allocations: 43.88 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 5.247e-05/0.21, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 4.481e-05/0.21, allocations: 4 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 1.298e-05/0.21, allocations: 4 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 3.676e-05/0.2101, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 7.344e-06/0.2101, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.2103, allocations: 103.8 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 8.396e-06/0.2103, allocations: 4 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 1.65e-05/0.2103, allocations: 3.938 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.000105/0.2104, allocations: 55.92 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2104, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of FrontEnd: time 8.22e-07/0.2104, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.407e-06/0.2105, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB 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.0002187/0.2107, allocations: 327.6 kB / 1.22 GB, free: 114.7 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.2107, allocations: 11.98 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.521e-05/0.2107, allocations: 0.9375 kB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.158e-05/0.2108, allocations: 168.3 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.2108, allocations: 4.375 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.357e-06/0.2108, allocations: 384 / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.669e-05/0.2109, allocations: 30.02 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.2109, allocations: 0 / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.2109, allocations: 0 / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.211, allocations: 4 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.697e-05/0.211, allocations: 0 / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.156e-05/0.2111, allocations: 149.7 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 3.124e-05/0.2111, allocations: 26.55 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.309e-05/0.2111, allocations: 4.859 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003814/0.2115, allocations: 0.5584 MB / 1.221 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.736e-05/0.2115, allocations: 42.5 kB / 1.221 GB, free: 113.4 MB / 0.823 GB Notification: Performance of pre-optimization done (n=1): time 1.243e-06/0.2115, allocations: 0 / 1.221 GB, free: 113.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=1): time 0.0001094/0.2117, allocations: 33.7 kB / 1.221 GB, free: 113.4 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.694e-05/0.2117, allocations: 51.41 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.545e-05/0.2117, allocations: 89.86 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 5.52e-06/0.2117, allocations: 29.64 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 9.958e-06/0.2117, allocations: 80.14 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.755e-05/0.2118, allocations: 7.906 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/0.2118, allocations: 13.7 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 3.764e-05/0.2118, allocations: 318.8 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.916e-06/0.2118, allocations: 4.125 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.5e-06/0.2119, allocations: 4 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.11e-05/0.2119, allocations: 4.859 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2119, allocations: 4 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.101e-05/0.2119, allocations: 29.7 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.212, allocations: 9.188 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.212, allocations: 0 / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.212, allocations: 3.984 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.003e-05/0.212, allocations: 12.03 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.212, allocations: 0 / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.024e-05/0.2121, allocations: 3.938 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-06/0.2121, allocations: 0 / 1.222 GB, free: 112.7 MB / 0.823 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 (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 4.043e-05/0.2121, allocations: 114.5 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-06/0.2121, allocations: 3.938 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.066e-05/0.2122, allocations: 36.81 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.2122, allocations: 4.031 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2122, allocations: 0 / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2122, allocations: 0 / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.507e-05/0.2123, allocations: 149.7 kB / 1.222 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.2123, allocations: 0 / 1.222 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.426e-05/0.2123, allocations: 0 / 1.222 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2123, allocations: 3.938 kB / 1.222 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.2123, allocations: 11.98 kB / 1.222 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2123, allocations: 0 / 1.222 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2123, allocations: 3.938 kB / 1.222 GB, free: 112.3 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.2125, allocations: 0.6044 MB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.68e-05/0.2125, allocations: 83.22 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-06/0.2125, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.428e-06/0.2125, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.017e-05/0.2125, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.2125, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of sorting global known variables: time 1.077e-05/0.2126, allocations: 79.36 kB / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of sort global known variables: time 8e-08/0.2126, allocations: 0 / 1.223 GB, free: 111.5 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003214/0.2129, allocations: 8 kB / 1.223 GB, free: 111.5 MB / 0.823 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 (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.0001246/0.213, allocations: 115.2 kB / 1.223 GB, free: 111.3 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 5.282e-05/0.2131, allocations: 11.94 kB / 1.223 GB, free: 111.3 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2131, allocations: 0 / 1.223 GB, free: 111.3 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 6.292e-06/0.2131, allocations: 4 kB / 1.223 GB, free: 111.3 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001102/0.2132, allocations: 0.9844 kB / 1.223 GB, free: 111.3 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001657/0.2134, allocations: 185.7 kB / 1.223 GB, free: 111.1 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.791e-05/0.2135, allocations: 0.6692 MB / 1.224 GB, free: 110.4 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 1.998e-05/0.2135, allocations: 4 kB / 1.224 GB, free: 110.4 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.426e-06/0.2135, allocations: 7.438 kB / 1.224 GB, free: 110.4 MB / 0.823 GB Notification: Performance of SimCode: time 1.91e-07/0.2135, allocations: 0 / 1.224 GB, free: 110.4 MB / 0.823 GB Notification: Performance of Templates: time 0.001678/0.2152, allocations: 300.7 kB / 1.224 GB, free: 110.1 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)