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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.076/2.076, allocations: 387.4 MB / 394.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 180.9 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009047/0.0009048, allocations: 103.8 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.054e-05/2.067e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2258, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.805/1.031, allocations: 148.8 MB / 1.351 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/1.031, allocations: 80.67 kB / 1.351 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005349/1.037, allocations: 1.702 MB / 1.353 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.232e-06/1.037, allocations: 1.312 kB / 1.353 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.079e-05/1.037, allocations: 0 / 1.353 GB, free: 34.04 MB / 0.8386 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.0002319/1.037, allocations: 333.9 kB / 1.353 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/1.037, allocations: 12.16 kB / 1.353 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.597e-05/1.037, allocations: 0.7031 kB / 1.353 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.663e-05/1.037, allocations: 167.5 kB / 1.354 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/1.037, allocations: 5.609 kB / 1.354 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.314e-06/1.037, allocations: 0.6094 kB / 1.354 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.905e-05/1.037, allocations: 4 kB / 1.354 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.143e-05/1.037, allocations: 31.03 kB / 1.354 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/1.037, allocations: 3.938 kB / 1.354 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/1.037, allocations: 0 / 1.354 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/1.037, allocations: 0 / 1.354 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.517e-05/1.037, allocations: 127.5 kB / 1.354 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.454e-05/1.037, allocations: 22.45 kB / 1.354 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.449e-05/1.037, allocations: 8.859 kB / 1.354 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003427/1.038, allocations: 0.5589 MB / 1.354 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/1.038, allocations: 34.98 kB / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/1.038, allocations: 0 / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001298/1.038, allocations: 31.56 kB / 1.354 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.396e-05/1.038, allocations: 51.41 kB / 1.354 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.398e-05/1.038, allocations: 89.03 kB / 1.354 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.863e-06/1.038, allocations: 25.7 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.517e-05/1.038, allocations: 83.7 kB / 1.355 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/1.038, allocations: 1.375 kB / 1.355 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/1.038, allocations: 0 / 1.355 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.038, allocations: 315.5 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.095e-06/1.038, allocations: 3.938 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-06/1.038, allocations: 0 / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.589e-05/1.038, allocations: 8.672 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/1.038, allocations: 0 / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.7e-05/1.038, allocations: 36.73 kB / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/1.038, allocations: 7.781 kB / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/1.038, allocations: 0 / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/1.038, allocations: 0.7969 kB / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.131e-05/1.038, allocations: 0 / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/1.038, allocations: 3.656 kB / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.162e-05/1.038, allocations: 3.859 kB / 1.355 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/1.038, allocations: 0 / 1.355 GB, free: 31.88 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.7e-05/1.038, allocations: 109 kB / 1.355 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.366e-06/1.038, allocations: 8.516 kB / 1.355 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.619e-05/1.039, allocations: 47.69 kB / 1.355 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/1.039, allocations: 0.75 kB / 1.355 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/1.039, allocations: 0 / 1.355 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/1.039, allocations: 0 / 1.355 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.015e-05/1.039, allocations: 131.2 kB / 1.355 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/1.039, allocations: 7.969 kB / 1.355 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.269e-05/1.039, allocations: 0.7969 kB / 1.355 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/1.039, allocations: 0 / 1.355 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.79e-06/1.039, allocations: 0 / 1.355 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/1.039, allocations: 8.344 kB / 1.355 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/1.039, allocations: 0 / 1.355 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.707e-05/1.039, allocations: 59.22 kB / 1.355 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.79e-05/1.039, allocations: 77.81 kB / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/1.039, allocations: 4.641 kB / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/1.039, allocations: 0 / 1.355 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.619e-05/1.039, allocations: 8.688 kB / 1.355 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/1.039, allocations: 0 / 1.355 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.877e-05/1.039, allocations: 75.28 kB / 1.355 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.039, allocations: 0 / 1.355 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001796/1.039, allocations: 12.36 kB / 1.355 GB, free: 31.3 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001631/1.039, allocations: 108.4 kB / 1.356 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 4.89e-05/1.039, allocations: 7.875 kB / 1.356 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.039, allocations: 0 / 1.356 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.4e-06/1.039, allocations: 0.5156 kB / 1.356 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.517e-05/1.039, allocations: 5.422 kB / 1.356 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001263/1.04, allocations: 41.48 kB / 1.356 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/1.04, allocations: 0.6713 MB / 1.356 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.084e-05/1.04, allocations: 8 kB / 1.356 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.087e-05/1.04, allocations: 7.438 kB / 1.356 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.04, allocations: 0 / 1.356 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of Templates: time 0.001771/1.042, allocations: 277.2 kB / 1.357 GB, free: 30.39 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches