Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001339/0.00134, allocations: 111.9 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 192.4 kB / 16.53 MB, free: 6.668 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.425/1.425, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.875/2.875, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 64.44 kB / 0.912 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3253, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002041/0.3274, allocations: 0.6182 MB / 1.069 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00176/0.3292, allocations: 1.293 MB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.807e-05/0.3292, allocations: 0 / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.3292, allocations: 0 / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.57e-05/0.3293, allocations: 3.938 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004345/0.3297, allocations: 79.73 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.886e-05/0.3298, allocations: 15.98 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.892e-05/0.3298, allocations: 4 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.874e-05/0.3299, allocations: 11.97 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.53e-05/0.33, allocations: 15.92 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.33, allocations: 7.938 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002272/0.3302, allocations: 95.89 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.766e-05/0.3303, allocations: 11.92 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.781e-05/0.3303, allocations: 11.94 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.3304, allocations: 63.91 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3305, allocations: 4 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3305, allocations: 3.938 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.3305, allocations: 0 / 1.07 GB, free: 8.184 MB / 0.8262 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.0005456/0.331, allocations: 343.8 kB / 1.071 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3311, allocations: 12.03 kB / 1.071 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.229e-05/0.3311, allocations: 8.844 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.3313, allocations: 172.2 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.3314, allocations: 4.375 kB / 1.071 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.518e-05/0.3314, allocations: 8.375 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.3315, allocations: 54 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3316, allocations: 3.984 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3316, allocations: 0 / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.3316, allocations: 0 / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.494e-05/0.3316, allocations: 19.98 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002056/0.3319, allocations: 161.7 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.332, allocations: 66.5 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.672e-05/0.3321, allocations: 32.83 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006382/0.3327, allocations: 0.5544 MB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.3328, allocations: 38.48 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.3328, allocations: 0 / 1.072 GB, free: 6.434 MB / 0.8262 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.02104/0.3538, allocations: 4.377 MB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.3539, allocations: 51.41 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.404e-05/0.354, allocations: 93.84 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.116e-05/0.3541, allocations: 37.83 kB / 1.076 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.399e-05/0.3541, allocations: 80.14 kB / 1.076 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.3543, allocations: 59.19 kB / 1.076 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.3545, allocations: 89.58 kB / 1.076 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.3547, allocations: 326.8 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000534/0.3552, allocations: 303.9 kB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005359/0.3557, allocations: 321.4 kB / 1.077 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.3574, allocations: 0.764 MB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3574, allocations: 0 / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001664/0.3591, allocations: 0.802 MB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3591, allocations: 9.094 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3592, allocations: 7.984 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.3592, allocations: 0 / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009173/0.3601, allocations: 91.89 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.3601, allocations: 0 / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/0.3607, allocations: 12 kB / 1.079 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/0.3608, allocations: 35.97 kB / 1.079 GB, free: 14.79 MB / 0.8419 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.0002123/0.361, allocations: 121.8 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-05/0.3611, allocations: 4 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003447/0.3646, allocations: 1.403 MB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.3646, allocations: 4 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.3646, allocations: 4 kB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3646, allocations: 3.984 kB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003196/0.3678, allocations: 1.813 MB / 1.082 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.3678, allocations: 0 / 1.082 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008558/0.3687, allocations: 111.9 kB / 1.082 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.339e-05/0.3687, allocations: 4 kB / 1.082 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-05/0.3688, allocations: 31.92 kB / 1.082 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3688, allocations: 0 / 1.082 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3688, allocations: 4.938 kB / 1.082 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.3714, allocations: 1.477 MB / 1.084 GB, free: 9.723 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.86e-05/0.3715, allocations: 92.94 kB / 1.084 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.96e-05/0.3716, allocations: 16 kB / 1.084 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005638/0.3722, allocations: 8 kB / 1.084 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.3723, allocations: 43.97 kB / 1.084 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-05/0.3724, allocations: 28 kB / 1.084 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.411e-05/0.3725, allocations: 83.27 kB / 1.084 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3725, allocations: 3.938 kB / 1.084 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000634/0.3731, allocations: 172 kB / 1.084 GB, free: 9.266 MB / 0.8419 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.0006162/0.3738, allocations: 227.7 kB / 1.085 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001452/0.3752, allocations: 0.7417 MB / 1.085 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3752, allocations: 0 / 1.085 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006889/0.3759, allocations: 451.8 kB / 1.086 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.3763, allocations: 16 kB / 1.086 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.38, allocations: 0.7994 MB / 1.086 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.3803, allocations: 0.7142 MB / 1.087 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001532/0.3819, allocations: 297.5 kB / 1.087 GB, free: 5.98 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005299/0.3824, allocations: 91.41 kB / 1.088 GB, free: 5.891 MB / 0.8419 GB Notification: Performance of SimCode: time 8.72e-07/0.3824, allocations: 0 / 1.088 GB, free: 5.891 MB / 0.8419 GB Notification: Performance of Templates: time 0.01978/0.4022, allocations: 11.23 MB / 1.099 GB, free: 10.71 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)