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/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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01084/0.01084, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.002313/0.002313, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.404/1.404, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.688/2.688, allocations: 461.8 MB / 0.7348 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 67.03 kB / 0.899 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.284, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001891/0.2859, allocations: 0.6776 MB / 1.053 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.2876, allocations: 1.299 MB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.52e-05/0.2876, allocations: 0 / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.456e-05/0.2876, allocations: 0 / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.114e-05/0.2877, allocations: 4 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.288, allocations: 55.88 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.966e-05/0.2881, allocations: 19.97 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.022e-05/0.2881, allocations: 4 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.142e-05/0.2881, allocations: 11.92 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.775e-05/0.2882, allocations: 11.98 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.2882, allocations: 7.938 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.2884, allocations: 107.8 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.228e-05/0.2885, allocations: 4 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.54e-05/0.2885, allocations: 19.92 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.2886, allocations: 43.94 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2886, allocations: 0 / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.81e-07/0.2886, allocations: 0 / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.2886, allocations: 0 / 1.055 GB, free: 5.988 MB / 0.8106 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.0004363/0.2891, allocations: 343.9 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.2891, allocations: 15.97 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.2892, allocations: 0.9375 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.2893, allocations: 172.2 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.2893, allocations: 16.34 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.2893, allocations: 4.375 kB / 1.055 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.2895, allocations: 61.92 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.2895, allocations: 0 / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.2895, allocations: 0 / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2895, allocations: 0 / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.489e-05/0.2896, allocations: 23.98 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001755/0.2898, allocations: 161.7 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.2899, allocations: 62.55 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.232e-05/0.29, allocations: 24.86 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005261/0.2905, allocations: 0.5622 MB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.2905, allocations: 38.44 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.2905, allocations: 4 kB / 1.056 GB, free: 4.227 MB / 0.8106 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.01993/0.3105, allocations: 4.368 MB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.3105, allocations: 55.31 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.288e-05/0.3106, allocations: 97.86 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.773e-05/0.3107, allocations: 25.7 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.165e-05/0.3107, allocations: 84.14 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.3109, allocations: 59.19 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002578/0.3111, allocations: 89.66 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3113, allocations: 322.8 kB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005463/0.3118, allocations: 307.9 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005209/0.3123, allocations: 309.3 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.3139, allocations: 0.7793 MB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3139, allocations: 4 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001586/0.3155, allocations: 0.7957 MB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.3155, allocations: 8 kB / 1.064 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.3155, allocations: 0 / 1.064 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3156, allocations: 0 / 1.064 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007641/0.3163, allocations: 95.88 kB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.3164, allocations: 0 / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004614/0.3168, allocations: 12 kB / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.393e-05/0.3169, allocations: 31.98 kB / 1.064 GB, free: 12.61 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 (18): * Single equations (assignments): 18 * 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 0.0002014/0.3171, allocations: 121.7 kB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.3172, allocations: 11.91 kB / 1.064 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003334/0.3206, allocations: 1.399 MB / 1.065 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3206, allocations: 8 kB / 1.065 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.3206, allocations: 0 / 1.065 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3206, allocations: 0 / 1.065 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003086/0.3237, allocations: 1.817 MB / 1.067 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.872e-06/0.3238, allocations: 8.016 kB / 1.067 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007373/0.3245, allocations: 107.9 kB / 1.067 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/0.3245, allocations: 8 kB / 1.067 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.8e-05/0.3246, allocations: 31.94 kB / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.3246, allocations: 0 / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3246, allocations: 4 kB / 1.067 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002453/0.3271, allocations: 1.465 MB / 1.068 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.099e-05/0.3272, allocations: 96.95 kB / 1.069 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.776e-05/0.3273, allocations: 15.94 kB / 1.069 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004537/0.3277, allocations: 8 kB / 1.069 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3279, allocations: 47.91 kB / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.026e-05/0.328, allocations: 27.98 kB / 1.069 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.702e-05/0.328, allocations: 79.28 kB / 1.069 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.328, allocations: 0 / 1.069 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005952/0.3286, allocations: 172 kB / 1.069 GB, free: 7.082 MB / 0.8262 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 (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.0005503/0.3292, allocations: 227.2 kB / 1.069 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001271/0.3305, allocations: 0.7184 MB / 1.07 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3305, allocations: 3.938 kB / 1.07 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006724/0.3312, allocations: 451.8 kB / 1.07 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.3315, allocations: 16 kB / 1.07 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00313/0.3346, allocations: 0.8867 MB / 1.071 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.3349, allocations: 0.7145 MB / 1.072 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005845/0.3355, allocations: 91.41 kB / 1.072 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3355, allocations: 4 kB / 1.072 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.01085/0.3464, allocations: 6.88 MB / 1.079 GB, free: 13.09 MB / 0.8419 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)