Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7447/0.7447, allocations: 141.8 MB / 149.1 MB, free: 2.309 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 201 kB / 181.9 MB, free: 1.883 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 221.3 MB / 436 MB, free: 6.621 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00097/0.0009702, allocations: 92.66 kB / 0.507 GB, free: 3.289 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001785, allocations: 270.3 kB / 0.5884 GB, free: 48.27 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 1.254e-05/1.267e-05, allocations: 4 kB / 0.6759 GB, free: 6.621 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.412, allocations: 82.77 MB / 0.7567 GB, free: 25.71 MB / 458.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.5532, allocations: 108.1 MB / 0.8623 GB, free: 13.44 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000187/0.5534, allocations: 80.7 kB / 0.8624 GB, free: 13.36 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.00453/0.5579, allocations: 1.366 MB / 0.8637 GB, free: 12 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.558, allocations: 0 / 0.8637 GB, free: 12 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002242/0.5582, allocations: 326.4 kB / 0.864 GB, free: 11.64 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.5582, allocations: 8.031 kB / 0.8641 GB, free: 11.63 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.148e-05/0.5583, allocations: 4 kB / 0.8641 GB, free: 11.62 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.26e-05/0.5584, allocations: 159.1 kB / 0.8642 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.5584, allocations: 0 / 0.8642 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-06/0.5584, allocations: 3.906 kB / 0.8642 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.184e-05/0.5584, allocations: 4 kB / 0.8642 GB, free: 11.42 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.967e-05/0.5585, allocations: 29.7 kB / 0.8642 GB, free: 11.39 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.5585, allocations: 0 / 0.8642 GB, free: 11.39 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.5585, allocations: 0 / 0.8642 GB, free: 11.39 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.5585, allocations: 3.938 kB / 0.8642 GB, free: 11.38 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001167/0.5586, allocations: 138.2 kB / 0.8644 GB, free: 11.21 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 2.484e-05/0.5587, allocations: 14.58 kB / 0.8644 GB, free: 11.19 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.397e-05/0.5587, allocations: 4.859 kB / 0.8644 GB, free: 11.18 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004399/0.5591, allocations: 0.5584 MB / 0.8649 GB, free: 10.49 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.5592, allocations: 38.56 kB / 0.865 GB, free: 10.45 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.5592, allocations: 0 / 0.865 GB, free: 10.45 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1): time 0.000152/0.5593, allocations: 37.59 kB / 0.865 GB, free: 10.4 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.459e-05/0.5594, allocations: 51.41 kB / 0.8651 GB, free: 10.34 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.897e-05/0.5594, allocations: 85 kB / 0.8651 GB, free: 10.25 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 9.869e-06/0.5594, allocations: 29.64 kB / 0.8652 GB, free: 10.21 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.356e-05/0.5595, allocations: 80.14 kB / 0.8653 GB, free: 10.13 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.5595, allocations: 3.938 kB / 0.8653 GB, free: 10.13 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-06/0.5595, allocations: 3.938 kB / 0.8653 GB, free: 10.12 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5596, allocations: 322.8 kB / 0.8656 GB, free: 9.801 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.757e-06/0.5596, allocations: 4 kB / 0.8656 GB, free: 9.797 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-06/0.5596, allocations: 0 / 0.8656 GB, free: 9.797 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.368e-05/0.5597, allocations: 4 kB / 0.8656 GB, free: 9.793 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.5597, allocations: 0 / 0.8656 GB, free: 9.793 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.511e-05/0.5597, allocations: 37.59 kB / 0.8656 GB, free: 9.75 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.5598, allocations: 4 kB / 0.8656 GB, free: 9.746 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.5598, allocations: 4 kB / 0.8656 GB, free: 9.742 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.5598, allocations: 4.094 kB / 0.8656 GB, free: 9.738 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.691e-05/0.5598, allocations: 4 kB / 0.8656 GB, free: 9.734 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.5598, allocations: 3.984 kB / 0.8656 GB, free: 9.73 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.049e-05/0.5599, allocations: 0 / 0.8656 GB, free: 9.73 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.5599, allocations: 0 / 0.8656 GB, free: 9.73 MB / 0.5419 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.115e-05/0.5599, allocations: 105 kB / 0.8657 GB, free: 9.621 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-06/0.5599, allocations: 3.906 kB / 0.8657 GB, free: 9.617 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.5601, allocations: 48.62 kB / 0.8658 GB, free: 9.562 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.5601, allocations: 0 / 0.8658 GB, free: 9.562 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.5601, allocations: 0 / 0.8658 GB, free: 9.562 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.5601, allocations: 3.984 kB / 0.8658 GB, free: 9.559 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.611e-05/0.5601, allocations: 126.2 kB / 0.8659 GB, free: 9.398 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.5602, allocations: 0 / 0.8659 GB, free: 9.398 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.571e-05/0.5602, allocations: 4 kB / 0.8659 GB, free: 9.395 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.5602, allocations: 0 / 0.8659 GB, free: 9.395 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.5602, allocations: 3.906 kB / 0.8659 GB, free: 9.391 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.5602, allocations: 32 / 0.8659 GB, free: 9.391 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5602, allocations: 4 kB / 0.8659 GB, free: 9.387 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.064e-05/0.5603, allocations: 65.06 kB / 0.866 GB, free: 9.305 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 2.651e-05/0.5603, allocations: 77.11 kB / 0.8661 GB, free: 9.211 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.808e-06/0.5603, allocations: 0 / 0.8661 GB, free: 9.211 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.5604, allocations: 3.906 kB / 0.8661 GB, free: 9.207 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.213e-05/0.5604, allocations: 0 / 0.8661 GB, free: 9.207 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.5604, allocations: 4 kB / 0.8661 GB, free: 9.203 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.269e-05/0.5604, allocations: 79.31 kB / 0.8661 GB, free: 9.125 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0001947/0.5606, allocations: 8 kB / 0.8661 GB, free: 9.117 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0001549/0.5608, allocations: 111.2 kB / 0.8662 GB, free: 8.996 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 4.933e-05/0.5608, allocations: 11.94 kB / 0.8663 GB, free: 8.984 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5608, allocations: 0 / 0.8663 GB, free: 8.984 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 4.549e-06/0.5608, allocations: 0 / 0.8663 GB, free: 8.984 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.979e-05/0.5609, allocations: 0 / 0.8663 GB, free: 8.984 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001302/0.5611, allocations: 52.08 kB / 0.8663 GB, free: 8.91 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.5613, allocations: 0.6841 MB / 0.867 GB, free: 8.199 MB / 0.5419 GB Notification: Performance of SimCode: time 2.7e-07/0.5613, allocations: 0 / 0.867 GB, free: 8.199 MB / 0.5419 GB Notification: Performance of Templates: time 0.001731/0.5631, allocations: 299.9 kB / 0.8673 GB, free: 7.906 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)