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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.284/2.284, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001313/0.001313, allocations: 178.7 kB / 0.4902 GB, free: 2.254 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.917/1.917, allocations: 223.1 MB / 0.7992 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000955/0.0009544, allocations: 110.4 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003986, allocations: 13.81 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3543, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.5556, allocations: 150.3 MB / 1.376 GB, free: 3.258 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.5559, allocations: 75.95 kB / 1.376 GB, free: 3.184 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005098/0.561, allocations: 1.728 MB / 1.378 GB, free: 1.453 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.323e-06/0.561, allocations: 0 / 1.378 GB, free: 1.453 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.5611, allocations: 0 / 1.378 GB, free: 1.453 MB / 0.8698 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.0003033/0.5614, allocations: 339.3 kB / 1.378 GB, free: 1.074 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.5614, allocations: 8.031 kB / 1.378 GB, free: 1.066 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.5615, allocations: 3.984 kB / 1.378 GB, free: 1.062 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.5616, allocations: 163 kB / 1.378 GB, free: 0.8633 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.5616, allocations: 0 / 1.378 GB, free: 0.8633 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.5616, allocations: 4 kB / 1.378 GB, free: 0.8594 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.5617, allocations: 33.7 kB / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.5617, allocations: 0 / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.5618, allocations: 0 / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.5618, allocations: 0 / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.659e-05/0.5618, allocations: 7.938 kB / 1.378 GB, free: 0.8125 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001672/0.562, allocations: 153.6 kB / 1.378 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.059e-05/0.562, allocations: 18.67 kB / 1.379 GB, free: 0.5859 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005462/0.5626, allocations: 0.5583 MB / 1.379 GB, free: 15.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.5626, allocations: 34.56 kB / 1.379 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.5626, allocations: 0 / 1.379 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.000146/0.5628, allocations: 37.62 kB / 1.379 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.5628, allocations: 51.41 kB / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.69e-05/0.5629, allocations: 85.12 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.5629, allocations: 33.64 kB / 1.379 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.221e-05/0.5629, allocations: 80.14 kB / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.563, allocations: 4 kB / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.563, allocations: 0 / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.5631, allocations: 310.8 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.5631, allocations: 4 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-06/0.5631, allocations: 0 / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.271e-05/0.5632, allocations: 11.89 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5632, allocations: 4.062 kB / 1.38 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.162e-05/0.5632, allocations: 33.69 kB / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.5632, allocations: 11.94 kB / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.5633, allocations: 0 / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.5633, allocations: 0 / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.482e-05/0.5633, allocations: 0 / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.5633, allocations: 0 / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.107e-05/0.5633, allocations: 0 / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.5634, allocations: 4 kB / 1.38 GB, free: 15.15 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.589e-05/0.5635, allocations: 114.6 kB / 1.38 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.232e-06/0.5635, allocations: 0 / 1.38 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.9e-05/0.5636, allocations: 44.8 kB / 1.38 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.5636, allocations: 4 kB / 1.38 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5636, allocations: 0 / 1.38 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.5636, allocations: 0 / 1.38 GB, free: 14.98 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.5637, allocations: 141.7 kB / 1.38 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5637, allocations: 7.938 kB / 1.38 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.646e-05/0.5637, allocations: 8.031 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.5637, allocations: 3.938 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.5638, allocations: 0 / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.5638, allocations: 0 / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5638, allocations: 0 / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.985e-05/0.5638, allocations: 61.05 kB / 1.38 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.5639, allocations: 85.05 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.014e-05/0.5639, allocations: 0 / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-06/0.5639, allocations: 4.031 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.5639, allocations: 0 / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.5639, allocations: 0 / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.649e-05/0.564, allocations: 83.22 kB / 1.38 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.564, allocations: 0 / 1.38 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001922/0.5642, allocations: 8 kB / 1.38 GB, free: 14.5 MB / 0.8855 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 (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.0001805/0.5644, allocations: 111.2 kB / 1.38 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 6.742e-05/0.5645, allocations: 15.94 kB / 1.38 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5645, allocations: 0 / 1.38 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.62e-06/0.5645, allocations: 0 / 1.38 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.033e-05/0.5646, allocations: 4 kB / 1.38 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001861/0.5648, allocations: 70.77 kB / 1.38 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.5651, allocations: 0.677 MB / 1.381 GB, free: 13.56 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.702e-05/0.5651, allocations: 7.984 kB / 1.381 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.244e-05/0.5651, allocations: 11.56 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/0.5651, allocations: 3.938 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of Templates: time 0.002053/0.5672, allocations: 268 kB / 1.381 GB, free: 13.27 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches