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.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_latest_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.007126/0.007126, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001676/0.001676, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.853/2.853, allocations: 469.4 MB / 0.7421 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 59.91 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3179, allocations: 159.1 MB / 1.22 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.0019/0.3198, allocations: 0.5835 MB / 1.22 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.3214, allocations: 1.254 MB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.333e-05/0.3215, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.103e-05/0.3215, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.3215, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.3219, allocations: 67.73 kB / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 3.978e-05/0.3219, allocations: 4 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.46e-05/0.322, allocations: 0 / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.199e-05/0.322, allocations: 4 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.811e-05/0.322, allocations: 7.938 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.3221, allocations: 0 / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.3223, allocations: 103.8 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.828e-06/0.3223, allocations: 4 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.3224, allocations: 0 / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.3225, allocations: 51.88 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3225, allocations: 0 / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of FrontEnd: time 9.31e-07/0.3225, allocations: 0 / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.3225, allocations: 0 / 1.222 GB, free: 12.54 MB / 0.9825 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.0002984/0.3228, allocations: 331.4 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.3229, allocations: 8.031 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.372e-05/0.3229, allocations: 30.75 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.072e-05/0.3229, allocations: 0.9375 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.323, allocations: 160.4 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3231, allocations: 384 / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-06/0.3231, allocations: 4.375 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.535e-05/0.3232, allocations: 37.81 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.3232, allocations: 0 / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.741e-06/0.3232, allocations: 4 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3232, allocations: 0 / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.442e-05/0.3232, allocations: 7.938 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001389/0.3234, allocations: 145.6 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 3.398e-05/0.3234, allocations: 18.61 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.557e-05/0.3234, allocations: 12.86 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005432/0.324, allocations: 0.5661 MB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.324, allocations: 34.5 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.324, allocations: 0 / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001176/0.3241, allocations: 41.64 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.3242, allocations: 55.39 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.355e-05/0.3242, allocations: 89.86 kB / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.3242, allocations: 25.7 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.208e-05/0.3243, allocations: 84.27 kB / 1.223 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.3243, allocations: 0 / 1.223 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.3243, allocations: 13.72 kB / 1.223 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3244, allocations: 310.8 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-06/0.3245, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-06/0.3245, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.44e-05/0.3245, allocations: 12.86 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3245, allocations: 4.062 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.538e-05/0.3246, allocations: 41.62 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.3246, allocations: 7.938 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.3246, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.3246, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.504e-05/0.3247, allocations: 4 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.3247, allocations: 4 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.133e-05/0.3247, allocations: 0 / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.3247, allocations: 0 / 1.224 GB, free: 10.15 MB / 0.9825 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 6.835e-05/0.3248, allocations: 111.3 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.3248, allocations: 7.938 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.842e-05/0.3249, allocations: 44.75 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3249, allocations: 0 / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3249, allocations: 0 / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.3249, allocations: 0 / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.915e-05/0.325, allocations: 149.7 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.325, allocations: 0 / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.658e-05/0.325, allocations: 0 / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.3251, allocations: 7.969 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.3251, allocations: 0 / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3251, allocations: 3.938 kB / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3251, allocations: 4 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.417e-05/0.3251, allocations: 53.14 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.415e-05/0.3252, allocations: 85.03 kB / 1.224 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.017e-05/0.3252, allocations: 3.984 kB / 1.224 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.3252, allocations: 8.031 kB / 1.224 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.167e-06/0.3252, allocations: 3.938 kB / 1.224 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.3252, allocations: 0 / 1.224 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.879e-05/0.3253, allocations: 79.22 kB / 1.224 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3253, allocations: 0 / 1.224 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002021/0.3255, allocations: 4 kB / 1.224 GB, free: 9.496 MB / 0.9825 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.0004014/0.3259, allocations: 0.6085 MB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 6.889e-05/0.326, allocations: 8 kB / 1.225 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.326, allocations: 3.938 kB / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.903e-06/0.326, allocations: 0 / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.3261, allocations: 7.984 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002553/0.3264, allocations: 106.5 kB / 1.225 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.3266, allocations: 0.673 MB / 1.226 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.023e-05/0.3266, allocations: 3.984 kB / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.681e-05/0.3267, allocations: 11.42 kB / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of SimCode: time 5.21e-07/0.3267, allocations: 4 kB / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01404/0.3407, allocations: 1.032 MB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/7.937, allocations: 13 kB / 1.227 GB, free: 7.039 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches