Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.00132/0.00132, allocations: 99.89 kB / 16.35 MB, free: 6.348 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.001217/0.001217, allocations: 197.4 kB / 17.29 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.83/1.83, allocations: 292.3 MB / 0.5496 GB, free: 17.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 75.89 kB / 0.6729 GB, free: 5.867 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2552, allocations: 114.6 MB / 0.7848 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002337/0.2576, allocations: 0.6137 MB / 0.7854 GB, free: 2.574 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002086/0.2597, allocations: 1.311 MB / 0.7867 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.234e-05/0.2597, allocations: 0 / 0.7867 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.2598, allocations: 7.938 kB / 0.7867 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 2.295e-05/0.2598, allocations: 0 / 0.7867 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.2602, allocations: 67.75 kB / 0.7867 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.02e-05/0.2603, allocations: 23.97 kB / 0.7868 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.456e-05/0.2603, allocations: 0 / 0.7868 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 3.497e-05/0.2604, allocations: 19.92 kB / 0.7868 GB, free: 1.129 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.911e-05/0.2604, allocations: 7.984 kB / 0.7868 GB, free: 1.121 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.2605, allocations: 0 / 0.7868 GB, free: 1.121 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000228/0.2607, allocations: 103.8 kB / 0.7869 GB, free: 1.02 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.611e-05/0.2607, allocations: 11.92 kB / 0.7869 GB, free: 1.008 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.2607, allocations: 11.94 kB / 0.7869 GB, free: 0.9961 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.2609, allocations: 63.86 kB / 0.787 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2609, allocations: 0 / 0.787 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2609, allocations: 0 / 0.787 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.2609, allocations: 0 / 0.787 GB, free: 0.9336 MB / 0.6544 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.0005181/0.2615, allocations: 347.5 kB / 0.7873 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2615, allocations: 8.031 kB / 0.7873 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.186e-05/0.2615, allocations: 12.84 kB / 0.7873 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2617, allocations: 168.4 kB / 0.7875 GB, free: 332 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.2617, allocations: 384 / 0.7875 GB, free: 332 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.2617, allocations: 4.375 kB / 0.7875 GB, free: 328 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/0.2619, allocations: 57.98 kB / 0.7875 GB, free: 264 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2619, allocations: 0 / 0.7875 GB, free: 264 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.2619, allocations: 0 / 0.7875 GB, free: 264 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.2619, allocations: 4 kB / 0.7875 GB, free: 260 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.877e-05/0.262, allocations: 23.92 kB / 0.7876 GB, free: 236 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002053/0.2622, allocations: 165.7 kB / 0.7877 GB, free: 20 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3773/0.6395, allocations: 59.2 kB / 0.7878 GB, free: 49.65 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.895e-05/0.6396, allocations: 24.16 kB / 0.7878 GB, free: 49.64 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004513/0.6401, allocations: 0.5567 MB / 0.7883 GB, free: 48.99 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.6401, allocations: 37.5 kB / 0.7884 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 4.098e-06/0.6401, allocations: 0.8438 kB / 0.7884 GB, free: 48.95 MB / 0.6544 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.01857/0.6587, allocations: 4.314 MB / 0.7926 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.6588, allocations: 51.41 kB / 0.7926 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.013e-05/0.6588, allocations: 97.3 kB / 0.7927 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.619e-05/0.6589, allocations: 29.08 kB / 0.7928 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.74e-05/0.659, allocations: 80.98 kB / 0.7928 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.466e-05/0.6591, allocations: 55.94 kB / 0.7929 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.6593, allocations: 94.66 kB / 0.793 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.012e-05/0.6593, allocations: 316 kB / 0.7933 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.6598, allocations: 312.7 kB / 0.7936 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004351/0.6602, allocations: 310.9 kB / 0.7939 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.6616, allocations: 0.7644 MB / 0.7946 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.6616, allocations: 0.6875 kB / 0.7946 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00135/0.6629, allocations: 0.7862 MB / 0.7954 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.663, allocations: 7.625 kB / 0.7954 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.663, allocations: 0 / 0.7954 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.663, allocations: 0 / 0.7954 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007561/0.6638, allocations: 97.86 kB / 0.7955 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.6638, allocations: 2.875 kB / 0.7955 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/0.6642, allocations: 12.75 kB / 0.7955 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.746e-05/0.6643, allocations: 31.27 kB / 0.7955 GB, free: 46.98 MB / 0.6544 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.0001649/0.6645, allocations: 119.4 kB / 0.7957 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.707e-05/0.6646, allocations: 10.75 kB / 0.7957 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.6672, allocations: 1.398 MB / 0.797 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.6672, allocations: 8.547 kB / 0.797 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.6672, allocations: 3.828 kB / 0.797 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.6672, allocations: 3.375 kB / 0.797 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.6699, allocations: 1.799 MB / 0.7988 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.6699, allocations: 0 / 0.7988 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007367/0.6706, allocations: 109 kB / 0.7989 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.6706, allocations: 1 kB / 0.7989 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.96e-05/0.6707, allocations: 29.38 kB / 0.7989 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.6707, allocations: 4.031 kB / 0.7989 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6707, allocations: 5.125 kB / 0.7989 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.6731, allocations: 1.46 MB / 0.8004 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.217e-05/0.6731, allocations: 93.27 kB / 0.8005 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.6732, allocations: 5.625 kB / 0.8005 GB, free: 44.33 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004572/0.6737, allocations: 14.62 kB / 0.8005 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.6738, allocations: 42.34 kB / 0.8005 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-05/0.6739, allocations: 34.23 kB / 0.8006 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.097e-05/0.6739, allocations: 78.23 kB / 0.8006 GB, free: 44.24 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6739, allocations: 0 / 0.8006 GB, free: 44.24 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0006312/0.6746, allocations: 171.9 kB / 0.8008 GB, free: 44.23 MB / 0.6544 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.000526/0.6751, allocations: 224 kB / 0.801 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001295/0.6764, allocations: 0.7219 MB / 0.8017 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.6764, allocations: 0.6875 kB / 0.8017 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0006596/0.6771, allocations: 459 kB / 0.8021 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.6774, allocations: 26.28 kB / 0.8022 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/0.6805, allocations: 0.7918 MB / 0.8029 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.6807, allocations: 0.715 MB / 0.8036 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009048/0.6816, allocations: 297.4 kB / 0.8039 GB, free: 42.42 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000526/0.6821, allocations: 93.73 kB / 0.804 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of SimCode: time 3.51e-07/0.6821, allocations: 0 / 0.804 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of Templates: time 0.01909/0.7012, allocations: 11.2 MB / 0.815 GB, free: 41.82 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)