Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="Buildings_10_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.005224/0.005224, allocations: 98.39 kB / 15.73 MB, free: 6.031 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.001151/0.001151, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.91 kB / 1.018 GB, free: 9.867 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8062/0.8075, allocations: 151.6 MB / 1.166 GB, free: 3.77 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001617/0.8092, allocations: 0.5826 MB / 1.167 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.8107, allocations: 1.252 MB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.388e-05/0.8107, allocations: 0 / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.159e-05/0.8108, allocations: 0 / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.8108, allocations: 4 kB / 1.168 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.8111, allocations: 63.75 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.423e-05/0.8112, allocations: 7.984 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.683e-05/0.8112, allocations: 0 / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.196e-05/0.8112, allocations: 0 / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.186e-05/0.8113, allocations: 7.984 kB / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 7.244e-06/0.8113, allocations: 0 / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002331/0.8115, allocations: 95.84 kB / 1.168 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.8116, allocations: 4 kB / 1.168 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.826e-05/0.8116, allocations: 15.92 kB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.8117, allocations: 54.59 kB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8117, allocations: 0 / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8118, allocations: 0 / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.8118, allocations: 0 / 1.168 GB, free: 1.68 MB / 0.8887 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.0003045/0.8121, allocations: 324.4 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.8121, allocations: 12.92 kB / 1.169 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.339e-05/0.8122, allocations: 38.73 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.208e-05/0.8122, allocations: 0.9375 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.486e-05/0.8123, allocations: 160.4 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.8123, allocations: 4.375 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.8123, allocations: 384 / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.453e-05/0.8124, allocations: 37.83 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.8124, allocations: 0 / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.173e-06/0.8124, allocations: 0 / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.8124, allocations: 0 / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.913e-05/0.8125, allocations: 7.938 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001381/0.8126, allocations: 145.7 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.052e-05/0.8126, allocations: 18.58 kB / 1.169 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.809e-05/0.8127, allocations: 12.95 kB / 1.169 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005705/0.8132, allocations: 0.5583 MB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.8133, allocations: 34.5 kB / 1.17 GB, free: 44 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.8133, allocations: 0 / 1.17 GB, free: 44 kB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001424/0.8134, allocations: 49.59 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.8135, allocations: 51.41 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.371e-05/0.8135, allocations: 93.8 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.8135, allocations: 25.7 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.066e-05/0.8136, allocations: 80.14 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.8136, allocations: 0 / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.783e-05/0.8136, allocations: 17.7 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.8137, allocations: 314.8 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.8138, allocations: 4.125 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-06/0.8138, allocations: 0 / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.1e-05/0.8138, allocations: 12.86 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.8138, allocations: 3.938 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.192e-05/0.8139, allocations: 33.7 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.8139, allocations: 7.938 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.8139, allocations: 3.984 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.8139, allocations: 0 / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.062e-05/0.814, allocations: 4.094 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.814, allocations: 4 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.239e-05/0.814, allocations: 0 / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.814, allocations: 0 / 1.17 GB, free: 15.29 MB / 0.9044 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.423e-05/0.8141, allocations: 105.8 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.8141, allocations: 3.938 kB / 1.17 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.228e-05/0.8142, allocations: 52.73 kB / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.8142, allocations: 4.031 kB / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.8142, allocations: 0 / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.8142, allocations: 0 / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.393e-05/0.8143, allocations: 141.7 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.8143, allocations: 4 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.482e-05/0.8143, allocations: 0 / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.8143, allocations: 3.938 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.8144, allocations: 3.984 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.8144, allocations: 4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.8144, allocations: 0 / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.982e-05/0.8144, allocations: 61.14 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.172e-05/0.8145, allocations: 81.05 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.8145, allocations: 0 / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.102e-05/0.8145, allocations: 7.922 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.8145, allocations: 4 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.8145, allocations: 3.938 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.514e-05/0.8146, allocations: 75.28 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8146, allocations: 0 / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0001897/0.8148, allocations: 8.031 kB / 1.171 GB, free: 14.63 MB / 0.9044 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.0003845/0.8152, allocations: 0.6046 MB / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 6.088e-05/0.8152, allocations: 11.94 kB / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.8153, allocations: 0 / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.103e-06/0.8153, allocations: 4.094 kB / 1.171 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.8154, allocations: 7.938 kB / 1.171 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002684/0.8157, allocations: 102.6 kB / 1.171 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.8159, allocations: 0.669 MB / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.858e-05/0.8159, allocations: 0 / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.468e-05/0.816, allocations: 7.438 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of SimCode: time 2.7e-07/0.816, allocations: 4.062 kB / 1.172 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/0.8327, allocations: 1.024 MB / 1.173 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/8.52, allocations: 19.47 kB / 1.173 GB, free: 12.18 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunction.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches