Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001686/0.001686, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 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.002175/0.002175, allocations: 218.4 kB / 23.04 MB, free: 5.074 MB / 14.72 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 1.535/1.535, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.227/3.227, allocations: 0.49 GB / 0.7959 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 64.61 kB / 1.155 GB, free: 25.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.403, allocations: 176.1 MB / 1.327 GB, free: 1.938 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001648/0.4047, allocations: 0.5865 MB / 1.327 GB, free: 1.355 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001725/0.4064, allocations: 1.343 MB / 1.329 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.676e-05/0.4064, allocations: 0 / 1.329 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.539e-05/0.4064, allocations: 0 / 1.329 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.4064, allocations: 3.938 kB / 1.329 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.4068, allocations: 87.66 kB / 1.329 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 3.621e-05/0.4068, allocations: 4 kB / 1.329 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.433e-05/0.4069, allocations: 0 / 1.329 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 1.126e-05/0.4069, allocations: 0 / 1.329 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 3.722e-05/0.4069, allocations: 4 kB / 1.329 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.392e-06/0.4069, allocations: 0 / 1.329 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002843/0.4072, allocations: 107.9 kB / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.4072, allocations: 0 / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 1.551e-05/0.4072, allocations: 4 kB / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.4074, allocations: 71.59 kB / 1.329 GB, free: 15.72 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.4074, allocations: 4 kB / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4074, allocations: 0 / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.4074, allocations: 0 / 1.329 GB, free: 15.71 MB / 1.029 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.0002853/0.4077, allocations: 250.3 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.4077, allocations: 8.031 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.365e-05/0.4077, allocations: 4.188 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.743e-05/0.4077, allocations: 34.75 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.872e-05/0.4077, allocations: 0.9375 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.263e-05/0.4078, allocations: 118.5 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.292e-06/0.4078, allocations: 384 / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.4078, allocations: 384 / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.068e-05/0.4079, allocations: 29.64 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.4079, allocations: 4 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-06/0.4079, allocations: 0 / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.4079, allocations: 0 / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.57e-05/0.408, allocations: 0 / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001266/0.4081, allocations: 120.8 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 4.266e-05/0.4081, allocations: 26.5 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.457e-05/0.4081, allocations: 4.859 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002925/0.4084, allocations: 43.97 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.4085, allocations: 34.56 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.4085, allocations: 4 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001174/0.4086, allocations: 33.7 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.4086, allocations: 55.39 kB / 1.33 GB, free: 14.81 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.608e-05/0.4087, allocations: 93.86 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.4087, allocations: 25.7 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.11e-05/0.4087, allocations: 80.14 kB / 1.33 GB, free: 14.59 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.531e-05/0.4087, allocations: 11.89 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.4088, allocations: 9.719 kB / 1.33 GB, free: 14.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4089, allocations: 315 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.206e-05/0.4089, allocations: 4 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.74e-06/0.4089, allocations: 7.875 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.891e-05/0.4089, allocations: 12.86 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4089, allocations: 0 / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.472e-05/0.409, allocations: 37.62 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.409, allocations: 4 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-06/0.409, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.409, allocations: 8.094 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.689e-05/0.4091, allocations: 0 / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.4091, allocations: 7.922 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.032e-05/0.4091, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-06/0.4091, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 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 7.628e-05/0.4092, allocations: 110.4 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.707e-06/0.4092, allocations: 3.938 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.459e-05/0.4093, allocations: 44.69 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.4093, allocations: 0 / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.4093, allocations: 0 / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.4093, allocations: 4 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.024e-05/0.4094, allocations: 112.8 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.4094, allocations: 3.984 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.743e-05/0.4094, allocations: 7.938 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.4094, allocations: 0 / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.039e-06/0.4094, allocations: 0 / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.4094, allocations: 4 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.4094, allocations: 0 / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.861e-05/0.4095, allocations: 65.11 kB / 1.331 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-06/0.4095, allocations: 7.922 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.027e-06/0.4095, allocations: 0 / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.448e-06/0.4095, allocations: 0 / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.177e-05/0.4095, allocations: 0 / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.4095, allocations: 4 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of sorting global known variables: time 2.988e-05/0.4095, allocations: 75.28 kB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4095, allocations: 4.031 kB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000201/0.4097, allocations: 7.938 kB / 1.331 GB, free: 13.63 MB / 1.029 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.0004501/0.4102, allocations: 0.6162 MB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 6.34e-05/0.4102, allocations: 4 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4102, allocations: 4.094 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.953e-06/0.4103, allocations: 0 / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.4104, allocations: 5.406 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002846/0.4107, allocations: 106.5 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.411, allocations: 0.6845 MB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.798e-05/0.411, allocations: 0 / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.765e-05/0.411, allocations: 11.5 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.411, allocations: 3.938 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02212/0.4331, allocations: 1.259 MB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.6, allocations: 7.938 kB / 1.333 GB, free: 10.98 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.538321619969793]