Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.344/2.344, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001406/0.001406, allocations: 179.1 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.672/1.672, allocations: 223.1 MB / 0.7992 GB, free: 14.72 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.0009869/0.0009865, allocations: 100.3 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003837, allocations: 14.97 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3358, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.5347, allocations: 150.6 MB / 1.376 GB, free: 2.945 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003477/0.5351, allocations: 79.95 kB / 1.376 GB, free: 2.867 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007683/0.5428, allocations: 2.43 MB / 1.379 GB, free: 444 kB / 0.8698 GB Notification: Performance of FrontEnd: time 2.264e-06/0.5429, allocations: 0 / 1.379 GB, free: 444 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.337e-05/0.5429, allocations: 0 / 1.379 GB, free: 444 kB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004464/0.5433, allocations: 359.2 kB / 1.379 GB, free: 36 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.5434, allocations: 8.562 kB / 1.379 GB, free: 28 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.5435, allocations: 8 kB / 1.379 GB, free: 20 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.5436, allocations: 163 kB / 1.379 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.5436, allocations: 0 / 1.379 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.296e-05/0.5437, allocations: 11.91 kB / 1.379 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.5438, allocations: 57.64 kB / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.5438, allocations: 0 / 1.379 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.5439, allocations: 4 kB / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.5439, allocations: 0 / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.195e-05/0.5439, allocations: 27.92 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.5442, allocations: 169.6 kB / 1.38 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001258/0.5443, allocations: 58.55 kB / 1.38 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005025/0.5448, allocations: 0.5544 MB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.5448, allocations: 30.56 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.5448, allocations: 3.938 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01952/0.5644, allocations: 4.26 MB / 1.384 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.5645, allocations: 51.41 kB / 1.384 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.433e-05/0.5646, allocations: 89 kB / 1.384 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.562e-05/0.5646, allocations: 29.7 kB / 1.384 GB, free: 10.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.5647, allocations: 80.14 kB / 1.385 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.5648, allocations: 59.11 kB / 1.385 GB, free: 9.957 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-05/0.5649, allocations: 0 / 1.385 GB, free: 9.957 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.565, allocations: 330.8 kB / 1.385 GB, free: 9.625 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005105/0.5655, allocations: 307.9 kB / 1.385 GB, free: 9.324 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.566, allocations: 307.9 kB / 1.386 GB, free: 9.023 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007401/0.5668, allocations: 392.9 kB / 1.386 GB, free: 8.641 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.5668, allocations: 0 / 1.386 GB, free: 8.641 MB / 0.8855 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001505/0.5683, allocations: 0.7952 MB / 1.387 GB, free: 7.84 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.5683, allocations: 4 kB / 1.387 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.5683, allocations: 0 / 1.387 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.5684, allocations: 0 / 1.387 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008004/0.5692, allocations: 99.88 kB / 1.387 GB, free: 7.738 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.5692, allocations: 11.95 kB / 1.387 GB, free: 7.727 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004599/0.5697, allocations: 7.938 kB / 1.387 GB, free: 7.719 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.43e-05/0.5697, allocations: 35.97 kB / 1.387 GB, free: 7.684 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 (18): * Single equations (assignments): 18 * 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 0.0002039/0.57, allocations: 117.8 kB / 1.387 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.15e-05/0.57, allocations: 11.89 kB / 1.387 GB, free: 7.547 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003387/0.5734, allocations: 1.399 MB / 1.388 GB, free: 6.145 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.5735, allocations: 8 kB / 1.388 GB, free: 6.137 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.5735, allocations: 0 / 1.388 GB, free: 6.137 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.5735, allocations: 7.938 kB / 1.388 GB, free: 6.129 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.5766, allocations: 1.795 MB / 1.39 GB, free: 4.266 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5767, allocations: 3.938 kB / 1.39 GB, free: 4.262 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008043/0.5775, allocations: 111.9 kB / 1.39 GB, free: 4.152 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.5775, allocations: 8.031 kB / 1.39 GB, free: 4.145 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.188e-05/0.5776, allocations: 24 kB / 1.39 GB, free: 4.121 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.919e-06/0.5776, allocations: 8 kB / 1.39 GB, free: 4.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.5776, allocations: 0 / 1.39 GB, free: 4.113 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.5802, allocations: 1.486 MB / 1.392 GB, free: 2.602 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.739e-05/0.5803, allocations: 92.89 kB / 1.392 GB, free: 2.492 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.5804, allocations: 12.06 kB / 1.392 GB, free: 2.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000473/0.5809, allocations: 11.98 kB / 1.392 GB, free: 2.469 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.581, allocations: 43.97 kB / 1.392 GB, free: 2.426 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/0.5812, allocations: 32 kB / 1.392 GB, free: 2.395 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.035e-05/0.5813, allocations: 75.28 kB / 1.392 GB, free: 2.32 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5813, allocations: 0 / 1.392 GB, free: 2.32 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007636/0.5821, allocations: 211.7 kB / 1.392 GB, free: 2.113 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * 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.0007179/0.5828, allocations: 268.4 kB / 1.392 GB, free: 1.844 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00131/0.5841, allocations: 0.7194 MB / 1.393 GB, free: 1.125 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5841, allocations: 3.938 kB / 1.393 GB, free: 1.121 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007035/0.5848, allocations: 452.1 kB / 1.394 GB, free: 0.6797 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.5851, allocations: 7.953 kB / 1.394 GB, free: 0.6719 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.5884, allocations: 0.8592 MB / 1.394 GB, free: 15.78 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.5887, allocations: 0.7184 MB / 1.395 GB, free: 15.04 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.00144/0.5902, allocations: 293.5 kB / 1.395 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005212/0.5907, allocations: 91.41 kB / 1.395 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of SimCode: time 1.223e-06/0.5907, allocations: 0 / 1.395 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of Templates: time 0.01696/0.6077, allocations: 10.13 MB / 1.405 GB, free: 4.578 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches