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.001531/0.001531, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001148/0.001148, allocations: 169 kB / 23.02 MB, free: 1.547 MB / 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.9396/0.9396, allocations: 177.1 MB / 203.4 MB, free: 5.625 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.072/2.072, allocations: 429.5 MB / 0.6732 GB, free: 4.055 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.643e-06/1.643e-06, allocations: 0 / 0.8782 GB, free: 6.25 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.383e-05/2.547e-05, allocations: 5.266 kB / 0.8782 GB, free: 6.246 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001228/0.001254, allocations: 0.6118 MB / 0.8788 GB, free: 5.652 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.002529, allocations: 1.324 MB / 0.8801 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.598e-05/0.002545, allocations: 1.062 kB / 0.8801 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.828e-05/0.002563, allocations: 3.938 kB / 0.8801 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.372e-06/0.002569, allocations: 0 / 0.8801 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003437/0.002913, allocations: 76.67 kB / 0.8802 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 4.001e-05/0.002953, allocations: 0 / 0.8802 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.075e-05/0.002984, allocations: 0.5312 kB / 0.8802 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 2.193e-05/0.003006, allocations: 4.594 kB / 0.8802 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.418e-05/0.00304, allocations: 0 / 0.8802 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.00305, allocations: 1.031 kB / 0.8802 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002244/0.003275, allocations: 115.8 kB / 0.8803 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.604e-06/0.003283, allocations: 0.625 kB / 0.8803 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.318e-05/0.003296, allocations: 0 / 0.8803 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.003415, allocations: 68.7 kB / 0.8804 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.003418, allocations: 4 kB / 0.8804 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.61e-07/0.003419, allocations: 0 / 0.8804 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.003423, allocations: 5.062 kB / 0.8804 GB, free: 4.047 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.0002533/0.003676, allocations: 348.2 kB / 0.8807 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.003711, allocations: 13.56 kB / 0.8807 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.218e-05/0.003743, allocations: 0.9375 kB / 0.8807 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.611e-05/0.0038, allocations: 112.5 kB / 0.8808 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.003809, allocations: 384 / 0.8808 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.043e-06/0.003816, allocations: 5.344 kB / 0.8808 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.093e-05/0.003887, allocations: 30.27 kB / 0.8809 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.003894, allocations: 192 / 0.8809 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.003901, allocations: 1.125 kB / 0.8809 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.003909, allocations: 3.938 kB / 0.8809 GB, free: 3.48 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.245e-05/0.003922, allocations: 4.656 kB / 0.8809 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.208e-05/0.004014, allocations: 108.1 kB / 0.881 GB, free: 3.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.77e-05/0.004052, allocations: 35.02 kB / 0.881 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.004068, allocations: 7.688 kB / 0.881 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002325/0.0043, allocations: 44.03 kB / 0.8811 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.00432, allocations: 33.39 kB / 0.8811 GB, free: 3.195 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.004321, allocations: 0 / 0.8811 GB, free: 3.195 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001082/0.004429, allocations: 41.64 kB / 0.8811 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/0.004454, allocations: 59.34 kB / 0.8812 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.054e-05/0.004495, allocations: 146.2 kB / 0.8813 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.045e-06/0.004503, allocations: 25.7 kB / 0.8814 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.87e-05/0.004531, allocations: 130.8 kB / 0.8815 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.004555, allocations: 4.297 kB / 0.8815 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.239e-05/0.004577, allocations: 19.38 kB / 0.8815 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.004676, allocations: 492.1 kB / 0.882 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.815e-06/0.004684, allocations: 0 / 0.882 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.851e-06/0.00469, allocations: 4.125 kB / 0.882 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.355e-05/0.004713, allocations: 15.75 kB / 0.882 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.004715, allocations: 0 / 0.882 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.98e-05/0.004755, allocations: 37.69 kB / 0.882 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.004766, allocations: 4 kB / 0.882 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.004769, allocations: 0 / 0.882 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.00478, allocations: 0 / 0.882 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.02e-05/0.00482, allocations: 7.938 kB / 0.882 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.004825, allocations: 3.938 kB / 0.882 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.135e-06/0.004834, allocations: 0 / 0.882 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-06/0.004838, allocations: 32 / 0.882 GB, free: 2.152 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.337e-05/0.004891, allocations: 156.6 kB / 0.8822 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.779e-06/0.004896, allocations: 4 kB / 0.8822 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.043e-05/0.004966, allocations: 40.69 kB / 0.8822 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.004968, allocations: 0 / 0.8822 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.004971, allocations: 4 kB / 0.8822 GB, free: 1.934 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.004974, allocations: 3.938 kB / 0.8822 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.888e-05/0.005023, allocations: 108.6 kB / 0.8823 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.005024, allocations: 0 / 0.8823 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.274e-06/0.005032, allocations: 4.031 kB / 0.8823 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.005033, allocations: 0 / 0.8823 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.00504, allocations: 7.984 kB / 0.8824 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.005041, allocations: 0 / 0.8824 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.005043, allocations: 0 / 0.8824 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.494e-05/0.005087, allocations: 76.33 kB / 0.8824 GB, free: 1.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-06/0.005092, allocations: 3.984 kB / 0.8824 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.124e-06/0.005099, allocations: 0 / 0.8824 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.018e-06/0.005103, allocations: 3.938 kB / 0.8824 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.005115, allocations: 3.984 kB / 0.8824 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.005118, allocations: 8.031 kB / 0.8824 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.532e-05/0.005143, allocations: 123.1 kB / 0.8826 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.005143, allocations: 0 / 0.8826 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001311/0.005275, allocations: 11.94 kB / 0.8826 GB, free: 1.527 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.0001135/0.005388, allocations: 111.2 kB / 0.8827 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 6.84e-05/0.005456, allocations: 15.62 kB / 0.8827 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.005458, allocations: 4 kB / 0.8827 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.931e-06/0.005464, allocations: 7.688 kB / 0.8827 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.758e-05/0.005551, allocations: 4.125 kB / 0.8827 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.005706, allocations: 83.95 kB / 0.8828 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.671e-05/0.005732, allocations: 55.34 kB / 0.8828 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.597e-05/0.005748, allocations: 4 kB / 0.8828 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.3e-05/0.005761, allocations: 8.5 kB / 0.8829 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of SimCode: time 4.51e-07/0.005762, allocations: 0 / 0.8829 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of Templates: time 0.002012/0.007773, allocations: 455.5 kB / 0.8833 GB, free: 0.7305 MB / 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.163558078929782]