Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.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.RegNonZeroPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") [: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.181/2.181, allocations: 253.1 MB / 260.4 MB, free: 11.79 MB / 211.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002123/0.002123, allocations: 186.5 kB / 319.6 MB, free: 2.312 MB / 243.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.794/1.794, allocations: 205.4 MB / 0.5704 GB, free: 8.23 MB / 435.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001235/0.001234, allocations: 105.5 kB / 0.6746 GB, free: 21.78 MB / 467.1 MB Notification: Performance of FrontEnd - loaded program: time 1.348e-05/1.347e-05, allocations: 4 kB / 0.7843 GB, free: 5.379 MB / 0.5499 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5598/0.5598, allocations: 106.3 MB / 0.8881 GB, free: 64.58 MB / 0.5968 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2295/0.7894, allocations: 130.6 MB / 1.016 GB, free: 9.66 MB / 0.6593 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.7897, allocations: 76.78 kB / 1.016 GB, free: 9.586 MB / 0.6593 GB Notification: Performance of FrontEnd: time 0.01987/0.8096, allocations: 3.649 MB / 1.019 GB, free: 5.945 MB / 0.6593 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.8097, allocations: 0 / 1.019 GB, free: 5.945 MB / 0.6593 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.0003638/0.8101, allocations: 330.4 kB / 1.02 GB, free: 5.578 MB / 0.6593 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.8101, allocations: 8.031 kB / 1.02 GB, free: 5.57 MB / 0.6593 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.8102, allocations: 7.906 kB / 1.02 GB, free: 5.562 MB / 0.6593 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.8103, allocations: 163.1 kB / 1.02 GB, free: 5.363 MB / 0.6593 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.8103, allocations: 4 kB / 1.02 GB, free: 5.359 MB / 0.6593 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.8104, allocations: 0 / 1.02 GB, free: 5.359 MB / 0.6593 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.918e-05/0.8104, allocations: 3.938 kB / 1.02 GB, free: 5.355 MB / 0.6593 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.981e-05/0.8105, allocations: 29.7 kB / 1.02 GB, free: 5.32 MB / 0.6593 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.8105, allocations: 3.984 kB / 1.02 GB, free: 5.316 MB / 0.6593 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.8105, allocations: 0 / 1.02 GB, free: 5.316 MB / 0.6593 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.8105, allocations: 7.922 kB / 1.02 GB, free: 5.309 MB / 0.6593 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001494/0.8107, allocations: 130.2 kB / 1.02 GB, free: 5.145 MB / 0.6593 GB Notification: Performance of preOpt comSubExp (simulation): time 3.893e-05/0.8108, allocations: 18.58 kB / 1.02 GB, free: 5.117 MB / 0.6593 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.017e-05/0.8108, allocations: 8.953 kB / 1.02 GB, free: 5.105 MB / 0.6593 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006467/0.8114, allocations: 421.5 kB / 1.02 GB, free: 4.602 MB / 0.6593 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.8115, allocations: 34.5 kB / 1.02 GB, free: 4.559 MB / 0.6593 GB Notification: Performance of pre-optimization done (n=1): time 2.144e-06/0.8115, allocations: 7.938 kB / 1.02 GB, free: 4.551 MB / 0.6593 GB Notification: Performance of matching and sorting (n=1): time 0.0001843/0.8117, allocations: 33.7 kB / 1.02 GB, free: 4.512 MB / 0.6593 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.8118, allocations: 51.41 kB / 1.02 GB, free: 4.449 MB / 0.6593 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.785e-05/0.8118, allocations: 85 kB / 1.021 GB, free: 4.359 MB / 0.6593 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.8118, allocations: 25.7 kB / 1.021 GB, free: 4.328 MB / 0.6593 GB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.8119, allocations: 80.14 kB / 1.021 GB, free: 4.246 MB / 0.6593 GB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.8119, allocations: 3.906 kB / 1.021 GB, free: 4.242 MB / 0.6593 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.8119, allocations: 0 / 1.021 GB, free: 4.242 MB / 0.6593 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.8121, allocations: 314.8 kB / 1.021 GB, free: 3.926 MB / 0.6593 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.244e-05/0.8121, allocations: 12.03 kB / 1.021 GB, free: 3.914 MB / 0.6593 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-06/0.8121, allocations: 0 / 1.021 GB, free: 3.914 MB / 0.6593 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.685e-05/0.8122, allocations: 0 / 1.021 GB, free: 3.914 MB / 0.6593 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.8122, allocations: 0 / 1.021 GB, free: 3.914 MB / 0.6593 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001097/0.8123, allocations: 37.64 kB / 1.021 GB, free: 3.871 MB / 0.6593 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.8123, allocations: 5.875 kB / 1.021 GB, free: 3.867 MB / 0.6593 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.8123, allocations: 0 / 1.021 GB, free: 3.867 MB / 0.6593 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.8124, allocations: 0 / 1.021 GB, free: 3.867 MB / 0.6593 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.196e-05/0.8125, allocations: 0 / 1.021 GB, free: 3.867 MB / 0.6593 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.8125, allocations: 4.094 kB / 1.021 GB, free: 3.863 MB / 0.6593 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.8125, allocations: 7.906 kB / 1.021 GB, free: 3.855 MB / 0.6593 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.8125, allocations: 3.984 kB / 1.021 GB, free: 3.852 MB / 0.6593 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 7.67e-05/0.8126, allocations: 101 kB / 1.021 GB, free: 3.746 MB / 0.6593 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.8126, allocations: 0 / 1.021 GB, free: 3.746 MB / 0.6593 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.8128, allocations: 40.66 kB / 1.021 GB, free: 3.703 MB / 0.6593 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.8128, allocations: 0 / 1.021 GB, free: 3.703 MB / 0.6593 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.8128, allocations: 4.031 kB / 1.021 GB, free: 3.699 MB / 0.6593 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.8128, allocations: 0 / 1.021 GB, free: 3.699 MB / 0.6593 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.813, allocations: 130.1 kB / 1.021 GB, free: 3.535 MB / 0.6593 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.813, allocations: 0 / 1.021 GB, free: 3.535 MB / 0.6593 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.861e-05/0.813, allocations: 7.938 kB / 1.021 GB, free: 3.527 MB / 0.6593 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.813, allocations: 3.938 kB / 1.021 GB, free: 3.523 MB / 0.6593 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.8131, allocations: 0 / 1.021 GB, free: 3.523 MB / 0.6593 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.8131, allocations: 0 / 1.021 GB, free: 3.523 MB / 0.6593 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.8131, allocations: 0 / 1.021 GB, free: 3.523 MB / 0.6593 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001259/0.8132, allocations: 69.03 kB / 1.021 GB, free: 3.438 MB / 0.6593 GB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.8133, allocations: 77.11 kB / 1.021 GB, free: 3.344 MB / 0.6593 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.8133, allocations: 0 / 1.021 GB, free: 3.344 MB / 0.6593 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.299e-05/0.8133, allocations: 4 kB / 1.021 GB, free: 3.34 MB / 0.6593 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.988e-06/0.8133, allocations: 0 / 1.021 GB, free: 3.34 MB / 0.6593 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.8133, allocations: 4 kB / 1.021 GB, free: 3.336 MB / 0.6593 GB Notification: Performance of sort global known variables: time 3.535e-05/0.8134, allocations: 75.28 kB / 1.021 GB, free: 3.262 MB / 0.6593 GB Notification: Performance of remove unused functions: time 0.0002667/0.8137, allocations: 15.94 kB / 1.021 GB, free: 3.246 MB / 0.6593 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.0002321/0.8139, allocations: 127.2 kB / 1.022 GB, free: 3.109 MB / 0.6593 GB Notification: Performance of simCode: created initialization part: time 6.648e-05/0.814, allocations: 7.938 kB / 1.022 GB, free: 3.102 MB / 0.6593 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.814, allocations: 0 / 1.022 GB, free: 3.102 MB / 0.6593 GB Notification: Performance of simCode: created simulation system equations: time 1.07e-05/0.814, allocations: 4 kB / 1.022 GB, free: 3.098 MB / 0.6593 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001098/0.8141, allocations: 3.906 kB / 1.022 GB, free: 3.094 MB / 0.6593 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001629/0.8143, allocations: 44.06 kB / 1.022 GB, free: 3.027 MB / 0.6593 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002982/0.8146, allocations: 0.6841 MB / 1.022 GB, free: 2.316 MB / 0.6593 GB Notification: Performance of SimCode: time 6.91e-07/0.8146, allocations: 128 / 1.022 GB, free: 2.316 MB / 0.6593 GB Notification: Performance of Templates: time 0.002951/0.8176, allocations: 440 kB / 1.023 GB, free: 1.895 MB / 0.6593 GB