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/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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/Buildings 1.6.0+build.1/package.mo): time 0.5505/0.5505, allocations: 94.69 MB / 107.3 MB, free: 5.184 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001047/0.001047, allocations: 174.3 kB / 130.7 MB, free: 7.559 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.548/1.548, allocations: 170.5 MB / 324.5 MB, free: 4.082 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001799/0.001799, allocations: 112.1 kB / 386.6 MB, free: 16.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.315e-05/6.317e-05, allocations: 7.938 kB / 456 MB, free: 11.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4713/0.4714, allocations: 61.51 MB / 0.5054 GB, free: 49.49 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1589/0.6303, allocations: 93.97 MB / 0.5972 GB, free: 1.609 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003837/0.6308, allocations: 76.61 kB / 0.5972 GB, free: 1.535 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005547/0.6364, allocations: 1.775 MB / 0.599 GB, free: 15.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.6364, allocations: 1.031 kB / 0.599 GB, free: 15.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.6364, allocations: 0 / 0.599 GB, free: 15.8 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002939/0.6367, allocations: 334.5 kB / 0.5993 GB, free: 15.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.6368, allocations: 12.03 kB / 0.5993 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.285e-05/0.6368, allocations: 2.312 kB / 0.5993 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.637, allocations: 159.1 kB / 0.5995 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.637, allocations: 4.953 kB / 0.5995 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.637, allocations: 0.5156 kB / 0.5995 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.6371, allocations: 51.09 kB / 0.5995 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.6372, allocations: 0 / 0.5995 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.6372, allocations: 0 / 0.5995 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.6372, allocations: 2.531 kB / 0.5995 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.358e-05/0.6372, allocations: 0 / 0.5995 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/0.6374, allocations: 149.7 kB / 0.5997 GB, free: 14.97 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.757e-05/0.6375, allocations: 24.11 kB / 0.5997 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.433e-05/0.6375, allocations: 8.922 kB / 0.5997 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005304/0.638, allocations: 0.5658 MB / 0.6002 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.6381, allocations: 35.44 kB / 0.6003 GB, free: 14.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.6381, allocations: 0.625 kB / 0.6003 GB, free: 14.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=3): time 0.0006701/0.6388, allocations: 256 kB / 0.6005 GB, free: 13.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.6388, allocations: 52.38 kB / 0.6006 GB, free: 13.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.259e-05/0.6389, allocations: 85 kB / 0.6006 GB, free: 13.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.6389, allocations: 26.92 kB / 0.6007 GB, free: 13.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.984e-05/0.6389, allocations: 84.14 kB / 0.6008 GB, free: 13.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.158e-05/0.639, allocations: 11.81 kB / 0.6008 GB, free: 13.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.639, allocations: 0.7188 kB / 0.6008 GB, free: 13.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.6391, allocations: 311.5 kB / 0.6011 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.579e-05/0.6391, allocations: 6.562 kB / 0.6011 GB, free: 13.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.485e-05/0.6392, allocations: 21.7 kB / 0.6011 GB, free: 13.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.928e-05/0.6392, allocations: 8 kB / 0.6011 GB, free: 13.26 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.6392, allocations: 0 / 0.6011 GB, free: 13.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.896e-05/0.6393, allocations: 54.84 kB / 0.6011 GB, free: 13.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.6393, allocations: 5.875 kB / 0.6012 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.6393, allocations: 0.8125 kB / 0.6012 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.6394, allocations: 0 / 0.6012 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.225e-05/0.6394, allocations: 12.83 kB / 0.6012 GB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.6394, allocations: 0 / 0.6012 GB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.735e-05/0.6395, allocations: 2 kB / 0.6012 GB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.6395, allocations: 7.75 kB / 0.6012 GB, free: 13.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.384e-05/0.6396, allocations: 109.8 kB / 0.6013 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.544e-06/0.6396, allocations: 3.938 kB / 0.6013 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.6397, allocations: 60.36 kB / 0.6013 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6398, allocations: 3.219 kB / 0.6013 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.6398, allocations: 3.953 kB / 0.6013 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.6398, allocations: 0 / 0.6013 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.6399, allocations: 153.7 kB / 0.6015 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.6399, allocations: 0 / 0.6015 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.726e-05/0.64, allocations: 4 kB / 0.6015 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.64, allocations: 0 / 0.6015 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.64, allocations: 0 / 0.6015 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.64, allocations: 7.938 kB / 0.6015 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.64, allocations: 2.469 kB / 0.6015 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.6402, allocations: 83.59 kB / 0.6016 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.376e-05/0.6402, allocations: 81.09 kB / 0.6017 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.6402, allocations: 1.188 kB / 0.6017 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.529e-05/0.6403, allocations: 4.812 kB / 0.6017 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.485e-05/0.6403, allocations: 4.031 kB / 0.6017 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.6403, allocations: 1.625 kB / 0.6017 GB, free: 12.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.924e-05/0.6404, allocations: 75.28 kB / 0.6017 GB, free: 12.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6404, allocations: 0 / 0.6017 GB, free: 12.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.6406, allocations: 27.89 kB / 0.6018 GB, free: 12.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002362/0.6409, allocations: 139.4 kB / 0.6019 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.73e-05/0.6409, allocations: 19.94 kB / 0.6019 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.641, allocations: 1.688 kB / 0.6019 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.641, allocations: 8 kB / 0.6019 GB, free: 12.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.675e-05/0.6411, allocations: 3.375 kB / 0.6019 GB, free: 12.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002271/0.6413, allocations: 71.66 kB / 0.602 GB, free: 12.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.6416, allocations: 0.6772 MB / 0.6027 GB, free: 11.53 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.534e-05/0.6417, allocations: 11.2 kB / 0.6027 GB, free: 11.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.972e-05/0.6417, allocations: 11.44 kB / 0.6027 GB, free: 11.51 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6417, allocations: 0 / 0.6027 GB, free: 11.51 MB / 426.7 MB Notification: Performance of Templates: time 0.002842/0.6446, allocations: 0.5634 MB / 0.6032 GB, free: 10.99 MB / 426.7 MB 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)