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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 169 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9973/0.9973, allocations: 177.1 MB / 204.5 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.203/2.203, allocations: 429.5 MB / 0.6743 GB, free: 3.938 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 0.8794 GB, free: 5.977 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.322e-05/2.473e-05, allocations: 7.219 kB / 0.8794 GB, free: 5.973 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001226/0.00125, allocations: 0.6114 MB / 0.88 GB, free: 5.383 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0013/0.002551, allocations: 1.316 MB / 0.8813 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.917e-05/0.00257, allocations: 1.219 kB / 0.8813 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.002587, allocations: 3.938 kB / 0.8813 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.763e-06/0.002594, allocations: 0 / 0.8813 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.002913, allocations: 72.12 kB / 0.8814 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 4.222e-05/0.002955, allocations: 4.906 kB / 0.8814 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.002992, allocations: 3.984 kB / 0.8814 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 2.724e-05/0.003019, allocations: 7.438 kB / 0.8814 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.198e-05/0.003061, allocations: 3.984 kB / 0.8814 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 9.788e-06/0.003071, allocations: 0 / 0.8814 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002288/0.003299, allocations: 103.9 kB / 0.8815 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.607e-06/0.003308, allocations: 0 / 0.8815 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.679e-06/0.003318, allocations: 0 / 0.8815 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.003436, allocations: 71.78 kB / 0.8816 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.003438, allocations: 0 / 0.8816 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.21e-07/0.003439, allocations: 4 kB / 0.8816 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.003443, allocations: 4.531 kB / 0.8816 GB, free: 3.785 MB / 0.8386 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.0002451/0.003688, allocations: 356.2 kB / 0.8819 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.003721, allocations: 9.562 kB / 0.8819 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.433e-05/0.003746, allocations: 0.9375 kB / 0.8819 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.905e-05/0.003805, allocations: 104.6 kB / 0.882 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.003816, allocations: 8.312 kB / 0.8821 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-06/0.00382, allocations: 4.375 kB / 0.8821 GB, free: 3.254 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.826e-05/0.003879, allocations: 26.27 kB / 0.8821 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.003885, allocations: 192 / 0.8821 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.638e-06/0.00389, allocations: 384 / 0.8821 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.003897, allocations: 7.922 kB / 0.8821 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.167e-06/0.003906, allocations: 4 kB / 0.8821 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.103e-05/0.003987, allocations: 93.25 kB / 0.8822 GB, free: 3.094 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.536e-05/0.004022, allocations: 31.03 kB / 0.8822 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.253e-05/0.004035, allocations: 11.69 kB / 0.8822 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002012/0.004236, allocations: 48.03 kB / 0.8823 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.004255, allocations: 33.39 kB / 0.8823 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.004256, allocations: 0 / 0.8823 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 9.773e-05/0.004354, allocations: 33.69 kB / 0.8823 GB, free: 2.906 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.004381, allocations: 55.41 kB / 0.8824 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.732e-05/0.004418, allocations: 142.2 kB / 0.8825 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.004428, allocations: 25.7 kB / 0.8826 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.753e-05/0.004455, allocations: 127 kB / 0.8827 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.004482, allocations: 8.297 kB / 0.8827 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.142e-05/0.004504, allocations: 23.31 kB / 0.8827 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.004608, allocations: 496.1 kB / 0.8832 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.771e-06/0.004614, allocations: 0 / 0.8832 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-06/0.004619, allocations: 0 / 0.8832 GB, free: 1.992 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.401e-05/0.004643, allocations: 19.67 kB / 0.8832 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.004645, allocations: 0 / 0.8832 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.869e-05/0.004683, allocations: 33.7 kB / 0.8832 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.004694, allocations: 4 kB / 0.8832 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-06/0.004697, allocations: 8.031 kB / 0.8832 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.424e-06/0.004704, allocations: 0 / 0.8832 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.931e-05/0.004734, allocations: 0 / 0.8832 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.013e-06/0.004736, allocations: 7.938 kB / 0.8832 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.806e-06/0.004744, allocations: 3.938 kB / 0.8832 GB, free: 1.906 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/0.004749, allocations: 0 / 0.8832 GB, free: 1.906 MB / 0.8386 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 5.527e-05/0.004804, allocations: 152.6 kB / 0.8834 GB, free: 1.746 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.26e-06/0.004809, allocations: 7.984 kB / 0.8834 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.634e-05/0.004876, allocations: 36.7 kB / 0.8834 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.004877, allocations: 0 / 0.8834 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-06/0.004879, allocations: 0 / 0.8834 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.004881, allocations: 0 / 0.8834 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.493e-05/0.004936, allocations: 105.2 kB / 0.8835 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.004938, allocations: 3.984 kB / 0.8835 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.356e-06/0.004946, allocations: 0 / 0.8835 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.22e-07/0.004947, allocations: 0 / 0.8835 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-06/0.00495, allocations: 0 / 0.8835 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.004951, allocations: 0 / 0.8835 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.004952, allocations: 4 kB / 0.8835 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.933e-05/0.005001, allocations: 76.34 kB / 0.8836 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-06/0.005007, allocations: 11.97 kB / 0.8836 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.43e-06/0.005013, allocations: 0 / 0.8836 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.827e-06/0.005016, allocations: 0 / 0.8836 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.077e-06/0.005026, allocations: 0 / 0.8836 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-06/0.005027, allocations: 0 / 0.8836 GB, free: 1.449 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.741e-05/0.005054, allocations: 119.2 kB / 0.8837 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.005054, allocations: 0 / 0.8837 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001325/0.005187, allocations: 11.94 kB / 0.8838 GB, free: 1.32 MB / 0.8386 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.0001203/0.005307, allocations: 115.3 kB / 0.8839 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 5.186e-05/0.005359, allocations: 15.62 kB / 0.8839 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.00536, allocations: 0 / 0.8839 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.432e-06/0.005367, allocations: 11.69 kB / 0.8839 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.738e-05/0.005454, allocations: 3.938 kB / 0.8839 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001301/0.005584, allocations: 91.88 kB / 0.884 GB, free: 1.039 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.559e-05/0.00561, allocations: 51.36 kB / 0.884 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.714e-05/0.005627, allocations: 4.125 kB / 0.884 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.261e-05/0.00566, allocations: 70.2 kB / 0.8841 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/0.00566, allocations: 0 / 0.8841 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of Templates: time 0.001761/0.007421, allocations: 468.5 kB / 0.8845 GB, free: 448 kB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.2709818640723825]