Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.344/2.344, allocations: 253.1 MB / 260.4 MB, free: 7.516 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001608/0.001608, allocations: 173.3 kB / 319.6 MB, free: 3.293 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.4 MB / 0.5704 GB, free: 15.02 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001719/0.001718, allocations: 90.58 kB / 0.6746 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.23e-05/1.238e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.223, allocations: 106.3 MB / 0.8881 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6808/0.9039, allocations: 131.9 MB / 1.017 GB, free: 6.383 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004217/0.9044, allocations: 77.98 kB / 1.017 GB, free: 6.34 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.006354/0.9107, allocations: 0.9007 MB / 1.018 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.9108, allocations: 0 / 1.018 GB, free: 5.582 MB / 0.6355 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.0002942/0.9111, allocations: 322.4 kB / 1.018 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.9112, allocations: 16.02 kB / 1.018 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.9112, allocations: 3.906 kB / 1.018 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.9113, allocations: 159.1 kB / 1.018 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.9113, allocations: 0 / 1.018 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.225e-06/0.9114, allocations: 0 / 1.018 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.391e-05/0.9114, allocations: 4 kB / 1.018 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.776e-05/0.9115, allocations: 29.7 kB / 1.018 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.9115, allocations: 0 / 1.018 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.9115, allocations: 0 / 1.018 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.9116, allocations: 0.8438 kB / 1.018 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.9117, allocations: 133.1 kB / 1.018 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.079e-05/0.9118, allocations: 22.55 kB / 1.018 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.109e-05/0.9118, allocations: 4.859 kB / 1.018 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006359/0.9125, allocations: 0.5622 MB / 1.019 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.9125, allocations: 30.56 kB / 1.019 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 2.996e-06/0.9125, allocations: 0 / 1.019 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001873/0.9127, allocations: 40.31 kB / 1.019 GB, free: 3.996 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.9128, allocations: 51.41 kB / 1.019 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.197e-05/0.9128, allocations: 92.97 kB / 1.019 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.9128, allocations: 25.7 kB / 1.019 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.9129, allocations: 80.14 kB / 1.019 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.094e-05/0.9129, allocations: 3.906 kB / 1.019 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.9129, allocations: 0 / 1.019 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.9131, allocations: 314.4 kB / 1.02 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.347e-05/0.9131, allocations: 4 kB / 1.02 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.608e-06/0.9131, allocations: 3.938 kB / 1.02 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.359e-05/0.9132, allocations: 0 / 1.02 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.9132, allocations: 4.062 kB / 1.02 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.142e-05/0.9133, allocations: 37.69 kB / 1.02 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.9133, allocations: 4 kB / 1.02 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.9133, allocations: 0 / 1.02 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.9133, allocations: 0 / 1.02 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.027e-05/0.9134, allocations: 7.938 kB / 1.02 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.9135, allocations: 0 / 1.02 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.074e-05/0.9135, allocations: 3.906 kB / 1.02 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.9135, allocations: 0 / 1.02 GB, free: 3.34 MB / 0.6355 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 8.312e-05/0.9136, allocations: 109 kB / 1.02 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.667e-06/0.9136, allocations: 0 / 1.02 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00016/0.9138, allocations: 44.58 kB / 1.02 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.9138, allocations: 0 / 1.02 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.9138, allocations: 7.938 kB / 1.02 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.9138, allocations: 0 / 1.02 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.832e-05/0.9139, allocations: 133.6 kB / 1.02 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.9139, allocations: 0 / 1.02 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.333e-05/0.914, allocations: 3.984 kB / 1.02 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.914, allocations: 4 kB / 1.02 GB, free: 3 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-06/0.914, allocations: 0 / 1.02 GB, free: 3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.914, allocations: 0 / 1.02 GB, free: 3 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.914, allocations: 3.984 kB / 1.02 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001115/0.9141, allocations: 57.91 kB / 1.02 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.916e-05/0.9142, allocations: 88.88 kB / 1.02 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.9142, allocations: 0 / 1.02 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.421e-05/0.9143, allocations: 0 / 1.02 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.062e-05/0.9143, allocations: 0 / 1.02 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.9143, allocations: 0 / 1.02 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.59e-05/0.9143, allocations: 79.22 kB / 1.02 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002645/0.9146, allocations: 15.94 kB / 1.02 GB, free: 2.727 MB / 0.6355 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.0001993/0.9148, allocations: 112 kB / 1.02 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.622e-05/0.9149, allocations: 8 kB / 1.02 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9149, allocations: 0 / 1.02 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.039e-05/0.9149, allocations: 7.938 kB / 1.02 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001085/0.915, allocations: 6.094 kB / 1.02 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001646/0.9152, allocations: 45.81 kB / 1.02 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003491/0.9156, allocations: 0.6841 MB / 1.021 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of SimCode: time 6.41e-07/0.9156, allocations: 3.938 kB / 1.021 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of Templates: time 0.002555/0.9182, allocations: 297.8 kB / 1.021 GB, free: 1.527 MB / 0.6355 GB