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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001458/0.001458, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.636/2.636, allocations: 469.4 MB / 0.742 GB, free: 7.758 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 71.42 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.291, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001927/0.2929, allocations: 0.584 MB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001562/0.2945, allocations: 1.257 MB / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.695e-05/0.2946, allocations: 0 / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.497e-05/0.2946, allocations: 0 / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.2946, allocations: 0 / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.295, allocations: 63.75 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.957e-05/0.2951, allocations: 7.984 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.578e-05/0.2951, allocations: 3.984 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.567e-05/0.2952, allocations: 3.938 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.639e-05/0.2952, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.996e-06/0.2952, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.2955, allocations: 103.9 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.2955, allocations: 0 / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.841e-05/0.2955, allocations: 0 / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.2957, allocations: 51.94 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2957, allocations: 4 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.995e-06/0.2957, allocations: 3.984 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.2957, allocations: 0 / 1.066 GB, free: 12.43 MB / 0.8262 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.0002933/0.296, allocations: 315.6 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.296, allocations: 12.03 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.43e-05/0.2961, allocations: 38.73 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.55e-05/0.2961, allocations: 4.938 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.375e-05/0.2962, allocations: 164.4 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.2962, allocations: 4.312 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-06/0.2962, allocations: 384 / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.589e-05/0.2963, allocations: 33.83 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.2963, allocations: 0 / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.2963, allocations: 0 / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2963, allocations: 0 / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.145e-05/0.2964, allocations: 3.938 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001178/0.2965, allocations: 153.7 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.961e-05/0.2965, allocations: 22.52 kB / 1.066 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.803e-05/0.2966, allocations: 8.953 kB / 1.066 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005178/0.2971, allocations: 0.5583 MB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.2971, allocations: 38.5 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.2971, allocations: 3.938 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001278/0.2973, allocations: 33.7 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.2973, allocations: 55.41 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.089e-05/0.2973, allocations: 89.86 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.2974, allocations: 25.7 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.03e-05/0.2974, allocations: 80.14 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.2974, allocations: 0 / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.83e-05/0.2974, allocations: 17.83 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.643e-05/0.2975, allocations: 318.8 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-06/0.2976, allocations: 3.938 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.6e-06/0.2976, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.645e-05/0.2976, allocations: 8.859 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.2976, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.445e-05/0.2977, allocations: 29.7 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2977, allocations: 12.03 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2977, allocations: 4 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.2977, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.726e-05/0.2978, allocations: 3.984 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.2978, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.608e-05/0.2978, allocations: 7.906 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.2978, allocations: 7.922 kB / 1.068 GB, free: 10.04 MB / 0.8262 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.238e-05/0.2979, allocations: 109.8 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.2979, allocations: 3.938 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.005e-05/0.298, allocations: 45.09 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.298, allocations: 0 / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.298, allocations: 0 / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.298, allocations: 0 / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.472e-05/0.2981, allocations: 141.7 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2981, allocations: 0 / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.964e-05/0.2981, allocations: 4 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2981, allocations: 7.875 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.2981, allocations: 0 / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.2982, allocations: 8.016 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2982, allocations: 4 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.73e-05/0.2982, allocations: 61.08 kB / 1.068 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.2983, allocations: 84.98 kB / 1.068 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.2983, allocations: 3.984 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.087e-06/0.2983, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.2983, allocations: 3.984 kB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.145e-06/0.2983, allocations: 8.031 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.439e-05/0.2984, allocations: 75.28 kB / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2984, allocations: 0 / 1.068 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002035/0.2986, allocations: 15.94 kB / 1.068 GB, free: 9.379 MB / 0.8262 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.0003478/0.2989, allocations: 0.6051 MB / 1.069 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 5.976e-05/0.299, allocations: 4.031 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.299, allocations: 4 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.083e-06/0.299, allocations: 0 / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.2991, allocations: 1.891 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002865/0.2994, allocations: 114.6 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.2996, allocations: 0.6729 MB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.266e-05/0.2997, allocations: 4.125 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.694e-05/0.2997, allocations: 7.438 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2997, allocations: 0 / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.316, allocations: 1.014 MB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.419, allocations: 10.41 kB / 1.071 GB, free: 6.938 MB / 0.8262 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