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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001217/0.001217, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.00118/0.00118, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.682/2.682, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 63.91 kB / 1.055 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8284/0.8299, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001796/0.8318, allocations: 0.6148 MB / 1.209 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.8334, allocations: 1.283 MB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.684e-05/0.8335, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.558e-05/0.8335, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.13e-05/0.8335, allocations: 3.938 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004332/0.834, allocations: 83.72 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.446e-05/0.834, allocations: 19.92 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.727e-05/0.8341, allocations: 7.984 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.094e-05/0.8341, allocations: 8 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.233e-05/0.8342, allocations: 15.91 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.297e-05/0.8342, allocations: 4 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.8345, allocations: 95.91 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.546e-05/0.8345, allocations: 7.969 kB / 1.211 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.696e-05/0.8345, allocations: 11.94 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.8347, allocations: 71.84 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8347, allocations: 0 / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.373e-06/0.8347, allocations: 0 / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.8347, allocations: 0 / 1.211 GB, free: 11.39 MB / 0.9356 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.000452/0.8352, allocations: 351.5 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.8352, allocations: 12.03 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.8353, allocations: 4.844 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.8354, allocations: 168.2 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.8354, allocations: 4.375 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.8354, allocations: 8.375 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.8356, allocations: 57.97 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.8356, allocations: 0 / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.8356, allocations: 11.88 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.8356, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.959e-05/0.8357, allocations: 27.92 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.8359, allocations: 165.7 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.836, allocations: 62.55 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.915e-05/0.8361, allocations: 20.86 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004828/0.8366, allocations: 0.5583 MB / 1.212 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.8366, allocations: 38.5 kB / 1.212 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.8366, allocations: 0 / 1.212 GB, free: 9.629 MB / 0.9356 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.02056/0.8572, allocations: 4.369 MB / 1.216 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.8572, allocations: 51.41 kB / 1.216 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.321e-05/0.8573, allocations: 97.86 kB / 1.216 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 8.192e-05/0.8574, allocations: 33.77 kB / 1.217 GB, free: 4.898 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.046e-05/0.8575, allocations: 80.14 kB / 1.217 GB, free: 4.816 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.8576, allocations: 59.19 kB / 1.217 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002553/0.8578, allocations: 101.6 kB / 1.217 GB, free: 4.652 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.858, allocations: 314.8 kB / 1.217 GB, free: 4.336 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005301/0.8585, allocations: 315.8 kB / 1.217 GB, free: 4.027 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.859, allocations: 309.9 kB / 1.218 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.8606, allocations: 0.7663 MB / 1.218 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8606, allocations: 4 kB / 1.218 GB, free: 2.953 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001589/0.8622, allocations: 0.8075 MB / 1.219 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.8622, allocations: 4 kB / 1.219 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.8622, allocations: 0 / 1.219 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.8623, allocations: 0 / 1.219 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008798/0.8632, allocations: 95.89 kB / 1.219 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.8632, allocations: 4 kB / 1.219 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005729/0.8638, allocations: 7.984 kB / 1.219 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.457e-05/0.8638, allocations: 35.98 kB / 1.219 GB, free: 1.996 MB / 0.9356 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.0002128/0.8641, allocations: 125.7 kB / 1.219 GB, free: 1.863 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.8642, allocations: 4 kB / 1.219 GB, free: 1.859 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003181/0.8673, allocations: 1.396 MB / 1.221 GB, free: 464 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.8674, allocations: 4 kB / 1.221 GB, free: 460 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.443e-06/0.8674, allocations: 3.984 kB / 1.221 GB, free: 456 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.8674, allocations: 0 / 1.221 GB, free: 456 kB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.8703, allocations: 1.825 MB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.8703, allocations: 0 / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008535/0.8712, allocations: 107.9 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.8712, allocations: 4 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.9e-05/0.8713, allocations: 31.92 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.8713, allocations: 4 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.8713, allocations: 0 / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002451/0.8738, allocations: 1.474 MB / 1.224 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.455e-05/0.8739, allocations: 88.98 kB / 1.224 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.874, allocations: 11.94 kB / 1.224 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005711/0.8746, allocations: 12 kB / 1.224 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.8747, allocations: 43.97 kB / 1.224 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.8748, allocations: 35.98 kB / 1.224 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.867e-05/0.8749, allocations: 79.34 kB / 1.224 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8749, allocations: 0 / 1.224 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006175/0.8755, allocations: 176 kB / 1.225 GB, free: 12.46 MB / 0.9512 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.0005907/0.8761, allocations: 227.1 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001295/0.8774, allocations: 0.7223 MB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.8774, allocations: 0 / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006717/0.8781, allocations: 451.7 kB / 1.226 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.8784, allocations: 24.16 kB / 1.226 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.882, allocations: 0.8177 MB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.8823, allocations: 0.7219 MB / 1.227 GB, free: 9.441 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005681/0.8829, allocations: 95.41 kB / 1.228 GB, free: 9.348 MB / 0.9512 GB Notification: Performance of SimCode: time 2.11e-07/0.8829, allocations: 0 / 1.228 GB, free: 9.348 MB / 0.9512 GB Notification: Performance of Templates: time 0.0112/0.8941, allocations: 6.9 MB / 1.234 GB, free: 2.508 MB / 0.9512 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)