Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 185.1 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4441/0.4441, allocations: 90.85 MB / 99.08 MB, free: 14.95 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.211/1.211, allocations: 221.4 MB / 342.8 MB, free: 5.168 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009998/0.0009998, allocations: 85.08 kB / 415.5 MB, free: 6.434 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 8.846e-06/8.876e-06, allocations: 4 kB / 493.9 MB, free: 8.039 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3239, allocations: 72.29 MB / 0.5529 GB, free: 73.34 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.4286, allocations: 101.3 MB / 0.6518 GB, free: 8.719 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.4289, allocations: 75.94 kB / 0.6519 GB, free: 8.645 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.008174/0.4371, allocations: 2.077 MB / 0.6539 GB, free: 6.59 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.4372, allocations: 4 kB / 0.6539 GB, free: 6.586 MB / 474.7 MB 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.0004177/0.4376, allocations: 351.8 kB / 0.6543 GB, free: 6.199 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4376, allocations: 12.03 kB / 0.6543 GB, free: 6.188 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.4377, allocations: 3 kB / 0.6543 GB, free: 6.188 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.4378, allocations: 163 kB / 0.6544 GB, free: 5.988 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.4379, allocations: 8.844 kB / 0.6544 GB, free: 5.98 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.4379, allocations: 0 / 0.6544 GB, free: 5.98 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001141/0.438, allocations: 23.98 kB / 0.6545 GB, free: 5.957 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.693e-05/0.4381, allocations: 45.75 kB / 0.6545 GB, free: 5.91 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.4381, allocations: 4 kB / 0.6545 GB, free: 5.906 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.4382, allocations: 0.8438 kB / 0.6545 GB, free: 5.906 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.4382, allocations: 0 / 0.6545 GB, free: 5.906 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.4383, allocations: 147 kB / 0.6547 GB, free: 5.727 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.573e-05/0.4384, allocations: 38.47 kB / 0.6547 GB, free: 5.684 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.998e-05/0.4385, allocations: 25.78 kB / 0.6547 GB, free: 5.656 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004718/0.4389, allocations: 0.5597 MB / 0.6553 GB, free: 4.969 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.439, allocations: 31.19 kB / 0.6553 GB, free: 4.93 MB / 474.7 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.439, allocations: 0.625 kB / 0.6553 GB, free: 4.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=15): time 0.001737/0.4407, allocations: 0.8475 MB / 0.6561 GB, free: 3.965 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.4408, allocations: 60.34 kB / 0.6562 GB, free: 3.895 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.288e-05/0.4409, allocations: 92.92 kB / 0.6563 GB, free: 3.797 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.4409, allocations: 26.61 kB / 0.6563 GB, free: 3.766 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.277e-05/0.4409, allocations: 80.77 kB / 0.6564 GB, free: 3.684 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.014e-05/0.441, allocations: 51.2 kB / 0.6564 GB, free: 3.633 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.441, allocations: 0.5938 kB / 0.6564 GB, free: 3.633 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4411, allocations: 315.4 kB / 0.6567 GB, free: 3.316 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.467e-05/0.4412, allocations: 25.5 kB / 0.6567 GB, free: 3.293 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.611e-05/0.4413, allocations: 56.28 kB / 0.6568 GB, free: 3.223 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.92e-05/0.4414, allocations: 29.92 kB / 0.6568 GB, free: 3.195 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.4414, allocations: 0 / 0.6568 GB, free: 3.195 MB / 474.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002105/0.4416, allocations: 114.7 kB / 0.6569 GB, free: 3.078 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.4416, allocations: 8.5 kB / 0.6569 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.4416, allocations: 0.5312 kB / 0.6569 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4416, allocations: 0 / 0.6569 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.4418, allocations: 34.89 kB / 0.657 GB, free: 3.039 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.4418, allocations: 4 kB / 0.657 GB, free: 3.035 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.336e-05/0.4419, allocations: 3.906 kB / 0.657 GB, free: 3.031 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.4419, allocations: 9.922 kB / 0.657 GB, free: 3.023 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.167e-05/0.442, allocations: 111.3 kB / 0.6571 GB, free: 2.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.442, allocations: 4.406 kB / 0.6571 GB, free: 2.906 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003111/0.4423, allocations: 130.9 kB / 0.6572 GB, free: 2.777 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4423, allocations: 4 kB / 0.6572 GB, free: 2.773 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4423, allocations: 1.688 kB / 0.6572 GB, free: 2.773 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.4424, allocations: 0 / 0.6572 GB, free: 2.773 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005477/0.4429, allocations: 392 kB / 0.6576 GB, free: 2.336 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.4429, allocations: 4 kB / 0.6576 GB, free: 2.332 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.4431, allocations: 24.61 kB / 0.6576 GB, free: 2.309 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.4431, allocations: 4 kB / 0.6576 GB, free: 2.305 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.4431, allocations: 4.906 kB / 0.6576 GB, free: 2.301 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.4431, allocations: 4 kB / 0.6576 GB, free: 2.297 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4431, allocations: 0.5312 kB / 0.6576 GB, free: 2.297 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003618/0.4435, allocations: 307 kB / 0.6579 GB, free: 1.945 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.047e-05/0.4435, allocations: 85.09 kB / 0.658 GB, free: 1.844 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.4436, allocations: 7.906 kB / 0.658 GB, free: 1.836 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.4437, allocations: 1.25 kB / 0.658 GB, free: 1.836 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.114e-05/0.4437, allocations: 11.98 kB / 0.658 GB, free: 1.824 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.4437, allocations: 8 kB / 0.658 GB, free: 1.816 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.549e-05/0.4438, allocations: 81.25 kB / 0.6581 GB, free: 1.738 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002733/0.444, allocations: 36.08 kB / 0.6582 GB, free: 1.703 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001879/0.4442, allocations: 131.1 kB / 0.6583 GB, free: 1.566 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001559/0.4444, allocations: 76.22 kB / 0.6584 GB, free: 1.492 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4444, allocations: 4 kB / 0.6584 GB, free: 1.488 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 5.837e-05/0.4445, allocations: 43.92 kB / 0.6584 GB, free: 1.445 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.4446, allocations: 4.688 kB / 0.6584 GB, free: 1.441 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004032/0.445, allocations: 155.6 kB / 0.6586 GB, free: 1.254 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000294/0.4453, allocations: 0.7077 MB / 0.6592 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4453, allocations: 0 / 0.6592 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of Templates: time 0.003173/0.4485, allocations: 1.125 MB / 0.6603 GB, free: 15.43 MB / 490.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)