Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 111.3 kB / 15.24 MB, free: 0.6484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 204.5 kB / 16.15 MB, free: 6.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.2 MB / 0.6643 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 76.03 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5831/0.5845, allocations: 140.4 MB / 0.9491 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001593/0.5861, allocations: 0.6422 MB / 0.9497 GB, free: 8.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.5873, allocations: 1.261 MB / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.528e-06/0.5874, allocations: 0 / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.5874, allocations: 0 / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.919e-06/0.5874, allocations: 0 / 0.9509 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.5877, allocations: 48.98 kB / 0.951 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.244e-05/0.5877, allocations: 1.219 kB / 0.951 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.59e-05/0.5878, allocations: 5.156 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.311e-05/0.5878, allocations: 1.25 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.504e-05/0.5878, allocations: 1.219 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.656e-06/0.5878, allocations: 0 / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.588, allocations: 102.6 kB / 0.9511 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.854e-06/0.5881, allocations: 0 / 0.9511 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.499e-05/0.5881, allocations: 1.344 kB / 0.9511 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.5882, allocations: 55.5 kB / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.5882, allocations: 1.5 kB / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.31e-07/0.5882, allocations: 0 / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.5882, allocations: 4 kB / 0.9511 GB, free: 7.641 MB / 0.7169 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.0002103/0.5884, allocations: 321.7 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.5885, allocations: 9.844 kB / 0.9515 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.058e-05/0.5885, allocations: 30.75 kB / 0.9515 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.844e-05/0.5885, allocations: 0.9375 kB / 0.9515 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.51e-05/0.5886, allocations: 164.4 kB / 0.9516 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-06/0.5886, allocations: 9.719 kB / 0.9516 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.383e-06/0.5886, allocations: 4.359 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.042e-05/0.5887, allocations: 36.77 kB / 0.9517 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.5887, allocations: 0 / 0.9517 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.021e-06/0.5887, allocations: 0 / 0.9517 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.5887, allocations: 0 / 0.9517 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.665e-05/0.5887, allocations: 2.656 kB / 0.9517 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.497e-05/0.5888, allocations: 143.1 kB / 0.9518 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.894e-05/0.5888, allocations: 23.95 kB / 0.9519 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.285e-05/0.5888, allocations: 10.25 kB / 0.9519 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003761/0.5892, allocations: 0.5596 MB / 0.9524 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/0.5893, allocations: 34.5 kB / 0.9524 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.031e-06/0.5893, allocations: 0 / 0.9524 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001019/0.5894, allocations: 47.66 kB / 0.9525 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.577e-05/0.5894, allocations: 51.41 kB / 0.9525 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.365e-05/0.5894, allocations: 93.98 kB / 0.9526 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.789e-06/0.5894, allocations: 27.36 kB / 0.9526 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.296e-06/0.5894, allocations: 80.14 kB / 0.9527 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.779e-05/0.5895, allocations: 0 / 0.9527 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.172e-05/0.5895, allocations: 12.19 kB / 0.9527 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.279e-05/0.5895, allocations: 314.8 kB / 0.953 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-06/0.5895, allocations: 9.156 kB / 0.953 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.53e-06/0.5895, allocations: 1.094 kB / 0.953 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.324e-05/0.5896, allocations: 16.84 kB / 0.9531 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.5896, allocations: 0 / 0.9531 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.049e-05/0.5896, allocations: 31.61 kB / 0.9531 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.5896, allocations: 9.094 kB / 0.9531 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.5896, allocations: 0 / 0.9531 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.5897, allocations: 0 / 0.9531 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.598e-05/0.5897, allocations: 2.094 kB / 0.9531 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.5897, allocations: 0 / 0.9531 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.246e-05/0.5897, allocations: 5.406 kB / 0.9531 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-06/0.5897, allocations: 3.938 kB / 0.9531 GB, free: 5.332 MB / 0.7169 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 3.515e-05/0.5898, allocations: 115.7 kB / 0.9532 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-06/0.5898, allocations: 3.938 kB / 0.9532 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.089e-05/0.5899, allocations: 41.39 kB / 0.9533 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.5899, allocations: 0 / 0.9533 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.5899, allocations: 0 / 0.9533 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.5899, allocations: 1.156 kB / 0.9533 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.298e-05/0.5899, allocations: 147.2 kB / 0.9534 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5899, allocations: 4 kB / 0.9534 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.345e-05/0.5899, allocations: 1.25 kB / 0.9534 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.59, allocations: 5.188 kB / 0.9534 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-06/0.59, allocations: 0 / 0.9534 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.59, allocations: 0 / 0.9534 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.59, allocations: 1.656 kB / 0.9534 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.35e-05/0.59, allocations: 62.88 kB / 0.9535 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.161e-05/0.59, allocations: 85.08 kB / 0.9536 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.067e-06/0.5901, allocations: 1.469 kB / 0.9536 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.977e-06/0.5901, allocations: 0 / 0.9536 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.328e-06/0.5901, allocations: 1.562 kB / 0.9536 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.5901, allocations: 0 / 0.9536 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.478e-06/0.5901, allocations: 75.28 kB / 0.9536 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5901, allocations: 0 / 0.9536 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001964/0.5903, allocations: 5.688 kB / 0.9536 GB, free: 4.719 MB / 0.7169 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.0002159/0.5905, allocations: 0.6223 MB / 0.9542 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.19e-05/0.5906, allocations: 8.125 kB / 0.9543 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.5906, allocations: 0 / 0.9543 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.432e-06/0.5906, allocations: 1.375 kB / 0.9543 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.5907, allocations: 2.75 kB / 0.9543 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002224/0.591, allocations: 111.2 kB / 0.9544 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.173e-05/0.591, allocations: 0.6744 MB / 0.955 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.979e-05/0.5911, allocations: 1.406 kB / 0.955 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.17e-05/0.5911, allocations: 11.44 kB / 0.955 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.5911, allocations: 0 / 0.955 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1503/0.7414, allocations: 0.8988 MB / 0.9559 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/0.7416, allocations: 216.9 kB / 0.9561 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/2.324, allocations: 0 / 0.9561 GB, free: 2.496 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches