Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008869/0.0008869, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 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.0008994/0.0008994, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8721/0.8721, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.697/1.697, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 0.9506 GB, free: 3.438 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.458e-05/1.623e-05, allocations: 2.281 kB / 0.9506 GB, free: 3.434 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001036/0.001052, allocations: 0.5871 MB / 0.9511 GB, free: 2.844 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.00226, allocations: 1.272 MB / 0.9524 GB, free: 1.555 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.537e-05/0.002275, allocations: 0 / 0.9524 GB, free: 1.555 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 1.536e-05/0.002291, allocations: 0 / 0.9524 GB, free: 1.555 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.002297, allocations: 4 kB / 0.9524 GB, free: 1.551 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003325/0.00263, allocations: 71.62 kB / 0.9524 GB, free: 1.48 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 4.254e-05/0.002672, allocations: 8 kB / 0.9525 GB, free: 1.473 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.222e-05/0.002715, allocations: 7.984 kB / 0.9525 GB, free: 1.465 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.002741, allocations: 0 / 0.9525 GB, free: 1.465 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.391e-05/0.002785, allocations: 7.984 kB / 0.9525 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.002796, allocations: 0 / 0.9525 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.003036, allocations: 103.8 kB / 0.9526 GB, free: 1.355 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 8.706e-06/0.003044, allocations: 0 / 0.9526 GB, free: 1.355 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.555e-05/0.00306, allocations: 4 kB / 0.9526 GB, free: 1.352 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.003194, allocations: 75.78 kB / 0.9526 GB, free: 1.277 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.003195, allocations: 0 / 0.9526 GB, free: 1.277 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.132e-06/0.003197, allocations: 0 / 0.9526 GB, free: 1.277 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.088e-06/0.003201, allocations: 7.938 kB / 0.9526 GB, free: 1.27 MB / 0.9011 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.0002468/0.003447, allocations: 250.3 kB / 0.9529 GB, free: 0.9961 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.003484, allocations: 11.97 kB / 0.9529 GB, free: 0.9844 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.102e-05/0.003515, allocations: 34.75 kB / 0.9529 GB, free: 0.9414 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.325e-05/0.003538, allocations: 4.938 kB / 0.9529 GB, free: 0.9375 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.603e-05/0.003594, allocations: 101.8 kB / 0.953 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.003605, allocations: 384 / 0.953 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-06/0.003611, allocations: 384 / 0.953 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.061e-05/0.003702, allocations: 34.25 kB / 0.9531 GB, free: 0.7734 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.003709, allocations: 192 / 0.9531 GB, free: 0.7734 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.003718, allocations: 8.125 kB / 0.9531 GB, free: 0.7656 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.003723, allocations: 0 / 0.9531 GB, free: 0.7656 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.066e-05/0.003744, allocations: 7.938 kB / 0.9531 GB, free: 0.7578 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001099/0.003854, allocations: 116.7 kB / 0.9532 GB, free: 0.6016 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 3.861e-05/0.003892, allocations: 22.61 kB / 0.9532 GB, free: 0.5703 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.471e-05/0.003907, allocations: 4.859 kB / 0.9532 GB, free: 0.5625 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002522/0.004159, allocations: 44 kB / 0.9533 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.004178, allocations: 34.56 kB / 0.9533 GB, free: 488 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.004179, allocations: 4 kB / 0.9533 GB, free: 484 kB / 0.9011 GB Notification: Performance of matching and sorting (n=1): time 0.0001223/0.004301, allocations: 41.56 kB / 0.9533 GB, free: 436 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.004326, allocations: 51.41 kB / 0.9534 GB, free: 372 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.508e-05/0.004351, allocations: 89.86 kB / 0.9535 GB, free: 272 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.004359, allocations: 25.7 kB / 0.9535 GB, free: 240 kB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 1.839e-05/0.004377, allocations: 84.14 kB / 0.9536 GB, free: 152 kB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.004401, allocations: 4 kB / 0.9536 GB, free: 148 kB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.216e-05/0.004423, allocations: 9.719 kB / 0.9536 GB, free: 132 kB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.191e-05/0.004505, allocations: 314.8 kB / 0.9539 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-06/0.004514, allocations: 4.125 kB / 0.9539 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.332e-06/0.00452, allocations: 8 kB / 0.9539 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.168e-05/0.004542, allocations: 8.859 kB / 0.9539 GB, free: 15.79 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.004544, allocations: 0 / 0.9539 GB, free: 15.79 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1) (initialization): time 3.34e-05/0.004577, allocations: 37.64 kB / 0.9539 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.004589, allocations: 4 kB / 0.954 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.004594, allocations: 4 kB / 0.954 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.004604, allocations: 3.938 kB / 0.954 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.916e-05/0.004643, allocations: 3.984 kB / 0.954 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.004648, allocations: 96 / 0.954 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.324e-06/0.004655, allocations: 4 kB / 0.954 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.004662, allocations: 7.938 kB / 0.954 GB, free: 15.72 MB / 0.9167 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.613e-05/0.004708, allocations: 105.8 kB / 0.9541 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-06/0.004711, allocations: 0 / 0.9541 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.661e-05/0.004778, allocations: 44.64 kB / 0.9541 GB, free: 15.56 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.004781, allocations: 11.86 kB / 0.9541 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.004785, allocations: 0 / 0.9541 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.004788, allocations: 0 / 0.9541 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.377e-05/0.004842, allocations: 116.8 kB / 0.9542 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.004842, allocations: 0 / 0.9542 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.504e-06/0.00485, allocations: 4 kB / 0.9542 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.004851, allocations: 0 / 0.9542 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.004856, allocations: 0 / 0.9542 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.004858, allocations: 3.938 kB / 0.9542 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.004859, allocations: 0 / 0.9542 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.145e-05/0.0049, allocations: 57.16 kB / 0.9543 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-06/0.004905, allocations: 4 kB / 0.9543 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-06/0.004914, allocations: 4 kB / 0.9543 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.35e-06/0.004919, allocations: 7.969 kB / 0.9543 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.00493, allocations: 0 / 0.9543 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-06/0.004931, allocations: 0 / 0.9543 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.174e-05/0.004953, allocations: 83.22 kB / 0.9544 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5.1e-08/0.004953, allocations: 0 / 0.9544 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001388/0.005092, allocations: 15.92 kB / 0.9544 GB, free: 15.2 MB / 0.9167 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.0002591/0.005351, allocations: 0.5969 MB / 0.955 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 5.463e-05/0.005406, allocations: 4 kB / 0.955 GB, free: 14.56 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.005407, allocations: 96 / 0.955 GB, free: 14.56 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.17e-06/0.005412, allocations: 11.94 kB / 0.955 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.29e-05/0.005505, allocations: 6.75 kB / 0.955 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002212/0.005726, allocations: 122.4 kB / 0.9551 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.895e-05/0.005755, allocations: 51.36 kB / 0.9552 GB, free: 14.32 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 1.736e-05/0.005773, allocations: 11.92 kB / 0.9552 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005052/0.006278, allocations: 8.5 kB / 0.9552 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of SimCode: time 7.51e-07/0.006279, allocations: 0 / 0.9552 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.02012, allocations: 1.768 MB / 0.9569 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.835/6.855, allocations: 9.094 kB / 0.9569 GB, free: 12.65 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.971502832137048]