Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.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.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator") [: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.166/2.166, allocations: 253.1 MB / 260.4 MB, free: 7.508 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.00154/0.00154, allocations: 173.1 kB / 319.6 MB, free: 3.34 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 1.871/1.871, allocations: 205.4 MB / 0.5704 GB, free: 15.07 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.001296/0.001295, allocations: 94.95 kB / 0.6746 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.035e-05/1.055e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.1933, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6402/0.8336, allocations: 135.7 MB / 1.021 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.8339, allocations: 77.2 kB / 1.021 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.02407/0.858, allocations: 5.009 MB / 1.026 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.593e-05/0.8581, allocations: 4 kB / 1.026 GB, free: 14.51 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007604/0.8589, allocations: 462.2 kB / 1.026 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.8589, allocations: 8.031 kB / 1.026 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.247e-05/0.859, allocations: 27.64 kB / 1.026 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005651/0.8596, allocations: 249 kB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.8596, allocations: 7.984 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.8597, allocations: 0 / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001395/0.8598, allocations: 34.38 kB / 1.026 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.8601, allocations: 92.86 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.8601, allocations: 0 / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.8601, allocations: 0 / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.8601, allocations: 3.906 kB / 1.026 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000742/0.8609, allocations: 356.4 kB / 1.027 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.8611, allocations: 87.66 kB / 1.027 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.388e-05/0.8612, allocations: 23.55 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.8613, allocations: 4 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/0.8614, allocations: 69.86 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 2.925e-06/0.8615, allocations: 4 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.000405/0.8619, allocations: 105.6 kB / 1.027 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.862, allocations: 106.8 kB / 1.027 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004183/0.8624, allocations: 236.2 kB / 1.027 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.8625, allocations: 33.64 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.8626, allocations: 99.31 kB / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.688e-05/0.8626, allocations: 15.62 kB / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-06/0.8626, allocations: 0 / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.8628, allocations: 333.4 kB / 1.028 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.45e-05/0.8629, allocations: 26.75 kB / 1.028 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.8631, allocations: 66.84 kB / 1.028 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.8632, allocations: 38.44 kB / 1.028 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.8632, allocations: 4 kB / 1.028 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003257/0.8636, allocations: 106.4 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.8636, allocations: 8.031 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.8636, allocations: 4.156 kB / 1.028 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.8637, allocations: 0 / 1.028 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.8638, allocations: 11.98 kB / 1.028 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.8639, allocations: 11.92 kB / 1.028 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.864, allocations: 7.906 kB / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.864, allocations: 0 / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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 0.0001331/0.8642, allocations: 108.4 kB / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.8642, allocations: 15.81 kB / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003795/0.8646, allocations: 122.8 kB / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.8647, allocations: 0 / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8647, allocations: 0 / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.8647, allocations: 0 / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003027/0.865, allocations: 217 kB / 1.029 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.865, allocations: 0 / 1.029 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.041e-05/0.8651, allocations: 4 kB / 1.029 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.8651, allocations: 4 kB / 1.029 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.8651, allocations: 3.984 kB / 1.029 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.8652, allocations: 4 kB / 1.029 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.8652, allocations: 0 / 1.029 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003672/0.8655, allocations: 142.2 kB / 1.029 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.8657, allocations: 100.2 kB / 1.029 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.85e-05/0.8657, allocations: 0 / 1.029 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.8659, allocations: 7.984 kB / 1.029 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.919e-05/0.8659, allocations: 7.984 kB / 1.029 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.866, allocations: 15.25 kB / 1.029 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002902/0.8663, allocations: 186.2 kB / 1.029 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004375/0.8667, allocations: 47.34 kB / 1.029 GB, free: 10.97 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009775/0.8677, allocations: 324.9 kB / 1.029 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003554/0.8681, allocations: 78.72 kB / 1.029 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.8681, allocations: 3.938 kB / 1.029 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.8683, allocations: 46.48 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.8687, allocations: 34.47 kB / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007135/0.8694, allocations: 215.5 kB / 1.03 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004933/0.8699, allocations: 0.7507 MB / 1.03 GB, free: 9.633 MB / 0.6511 GB Notification: Performance of SimCode: time 1.303e-06/0.87, allocations: 0 / 1.03 GB, free: 9.633 MB / 0.6511 GB Notification: Performance of Templates: time 0.008813/0.8788, allocations: 2.369 MB / 1.033 GB, free: 7.285 MB / 0.6511 GB