Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001197/0.001197, allocations: 107.6 kB / 16.41 MB, free: 6.457 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.001249/0.001249, allocations: 188.1 kB / 17.35 MB, free: 5.734 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.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.512/2.512, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 67.91 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8532/0.8546, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001809/0.8565, allocations: 0.6217 MB / 1.168 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001774/0.8583, allocations: 1.282 MB / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.587e-05/0.8583, allocations: 0 / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.86e-05/0.8584, allocations: 3.938 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.575e-05/0.8584, allocations: 4 kB / 1.169 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004362/0.8589, allocations: 71.75 kB / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.576e-05/0.8589, allocations: 23.91 kB / 1.169 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.964e-05/0.859, allocations: 4 kB / 1.169 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.225e-05/0.859, allocations: 7.984 kB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.191e-05/0.8591, allocations: 15.92 kB / 1.169 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.8591, allocations: 4 kB / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.8594, allocations: 111.8 kB / 1.169 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.386e-05/0.8594, allocations: 0 / 1.169 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.8594, allocations: 19.92 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.8596, allocations: 67.36 kB / 1.17 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.8596, allocations: 0 / 1.17 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.943e-06/0.8596, allocations: 0 / 1.17 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.8596, allocations: 0 / 1.17 GB, free: 1.605 MB / 0.8887 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.000482/0.8601, allocations: 356.2 kB / 1.17 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.8602, allocations: 12.03 kB / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.8602, allocations: 0.9375 kB / 1.17 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.8603, allocations: 164.4 kB / 1.17 GB, free: 1 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.8603, allocations: 4.375 kB / 1.17 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.8604, allocations: 8.328 kB / 1.17 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.8605, allocations: 57.92 kB / 1.17 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.8606, allocations: 4 kB / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.8606, allocations: 0 / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.8606, allocations: 11.86 kB / 1.17 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.421e-05/0.8607, allocations: 23.98 kB / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002043/0.8609, allocations: 157.7 kB / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.861, allocations: 66.55 kB / 1.17 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.321e-05/0.8611, allocations: 24.86 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005467/0.8617, allocations: 0.5583 MB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.8617, allocations: 46.44 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.243e-06/0.8617, allocations: 4 kB / 1.171 GB, free: 15.84 MB / 0.9044 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.02035/0.8821, allocations: 4.368 MB / 1.175 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.8821, allocations: 55.31 kB / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.218e-05/0.8822, allocations: 97.86 kB / 1.175 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 7.103e-05/0.8823, allocations: 29.7 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.685e-05/0.8823, allocations: 80.14 kB / 1.175 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.8825, allocations: 59.48 kB / 1.176 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.8827, allocations: 89.66 kB / 1.176 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.8829, allocations: 322.8 kB / 1.176 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005144/0.8834, allocations: 307.9 kB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005089/0.8839, allocations: 315.8 kB / 1.177 GB, free: 9.938 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.8854, allocations: 0.7729 MB / 1.177 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.8854, allocations: 0 / 1.177 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001557/0.887, allocations: 0.802 MB / 1.178 GB, free: 8.355 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.887, allocations: 11.94 kB / 1.178 GB, free: 8.344 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.8871, allocations: 0 / 1.178 GB, free: 8.344 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.8871, allocations: 0 / 1.178 GB, free: 8.344 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008747/0.888, allocations: 95.94 kB / 1.178 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.888, allocations: 0 / 1.178 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000555/0.8885, allocations: 8 kB / 1.178 GB, free: 8.242 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.459e-05/0.8886, allocations: 31.98 kB / 1.178 GB, free: 8.211 MB / 0.9044 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.0002047/0.8888, allocations: 129.7 kB / 1.178 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.8889, allocations: 3.953 kB / 1.178 GB, free: 8.07 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003199/0.8922, allocations: 1.4 MB / 1.18 GB, free: 6.656 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.8922, allocations: 4 kB / 1.18 GB, free: 6.652 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.8922, allocations: 0 / 1.18 GB, free: 6.652 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.8922, allocations: 0 / 1.18 GB, free: 6.652 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002971/0.8952, allocations: 1.818 MB / 1.181 GB, free: 4.777 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.8952, allocations: 0 / 1.181 GB, free: 4.777 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008428/0.896, allocations: 111.9 kB / 1.182 GB, free: 4.668 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.8961, allocations: 4 kB / 1.182 GB, free: 4.664 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.806e-05/0.8962, allocations: 27.94 kB / 1.182 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.8962, allocations: 4.078 kB / 1.182 GB, free: 4.633 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.8962, allocations: 8.016 kB / 1.182 GB, free: 4.625 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/0.8986, allocations: 1.462 MB / 1.183 GB, free: 3.141 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.8986, allocations: 89.03 kB / 1.183 GB, free: 3.035 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.82e-05/0.8987, allocations: 11.94 kB / 1.183 GB, free: 3.023 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005563/0.8993, allocations: 8 kB / 1.183 GB, free: 3.016 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.8994, allocations: 51.89 kB / 1.183 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.25e-05/0.8995, allocations: 36.05 kB / 1.183 GB, free: 2.93 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.8995, allocations: 79.28 kB / 1.183 GB, free: 2.852 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8995, allocations: 0 / 1.183 GB, free: 2.852 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0006069/0.9002, allocations: 175.7 kB / 1.183 GB, free: 2.68 MB / 0.9044 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.0005123/0.9007, allocations: 227.4 kB / 1.184 GB, free: 2.449 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001273/0.902, allocations: 0.7261 MB / 1.184 GB, free: 1.723 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.902, allocations: 4 kB / 1.184 GB, free: 1.719 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006748/0.9027, allocations: 455.8 kB / 1.185 GB, free: 1.273 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.903, allocations: 18.06 kB / 1.185 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003578/0.9066, allocations: 0.8311 MB / 1.186 GB, free: 396 kB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.9069, allocations: 0.7142 MB / 1.186 GB, free: 15.65 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005352/0.9075, allocations: 103.3 kB / 1.186 GB, free: 15.55 MB / 0.92 GB Notification: Performance of SimCode: time 5.31e-07/0.9075, allocations: 4 kB / 1.186 GB, free: 15.54 MB / 0.92 GB Notification: Performance of Templates: time 0.01141/0.9189, allocations: 6.897 MB / 1.193 GB, free: 8.711 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)