Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.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.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7372/0.7372, allocations: 141.8 MB / 149.1 MB, free: 4.043 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.001097/0.001097, allocations: 186.2 kB / 181.9 MB, free: 15.74 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.311/1.311, allocations: 221.3 MB / 436 MB, free: 8.871 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.001251/0.001251, allocations: 95.28 kB / 0.507 GB, free: 24.14 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001816/0.001816, allocations: 285 kB / 0.5884 GB, free: 11.89 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.445e-06/8.466e-06, allocations: 4 kB / 0.6759 GB, free: 2.254 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4196, allocations: 82.75 MB / 0.7567 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/0.5502, allocations: 112.3 MB / 0.8664 GB, free: 20 kB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.5506, allocations: 76.75 kB / 0.8664 GB, free: 15.94 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.01576/0.5664, allocations: 5.163 MB / 0.8715 GB, free: 10.81 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.716e-05/0.5665, allocations: 0 / 0.8715 GB, free: 10.81 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006038/0.5671, allocations: 460.7 kB / 0.8719 GB, free: 10.31 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.5671, allocations: 9.875 kB / 0.8719 GB, free: 10.3 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.353e-05/0.5672, allocations: 16.69 kB / 0.8719 GB, free: 10.29 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/0.5676, allocations: 259.6 kB / 0.8722 GB, free: 9.988 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.5677, allocations: 4.812 kB / 0.8722 GB, free: 9.984 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.5677, allocations: 3.906 kB / 0.8722 GB, free: 9.98 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001101/0.5678, allocations: 36.98 kB / 0.8722 GB, free: 9.945 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/0.568, allocations: 96.78 kB / 0.8723 GB, free: 9.836 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.568, allocations: 0.5625 kB / 0.8723 GB, free: 9.836 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.568, allocations: 0 / 0.8723 GB, free: 9.836 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.568, allocations: 0.5625 kB / 0.8723 GB, free: 9.836 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005501/0.5686, allocations: 338.7 kB / 0.8727 GB, free: 9.469 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.5688, allocations: 83.95 kB / 0.8727 GB, free: 9.379 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.429e-05/0.5688, allocations: 31.81 kB / 0.8728 GB, free: 9.348 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.5688, allocations: 4.531 kB / 0.8728 GB, free: 9.344 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/0.569, allocations: 80.86 kB / 0.8728 GB, free: 9.254 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=8): time 1.733e-06/0.569, allocations: 0 / 0.8728 GB, free: 9.254 MB / 0.5419 GB Notification: Performance of matching and sorting (n=8): time 0.0002818/0.5693, allocations: 110.3 kB / 0.873 GB, free: 9.141 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.5693, allocations: 102.8 kB / 0.8731 GB, free: 9.016 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002658/0.5696, allocations: 230.8 kB / 0.8733 GB, free: 8.785 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.5696, allocations: 29.7 kB / 0.8733 GB, free: 8.75 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 4.934e-05/0.5697, allocations: 96.75 kB / 0.8734 GB, free: 8.652 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.5697, allocations: 24.42 kB / 0.8734 GB, free: 8.629 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.5697, allocations: 0 / 0.8734 GB, free: 8.629 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.5698, allocations: 323.4 kB / 0.8737 GB, free: 8.305 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.336e-05/0.5699, allocations: 28.61 kB / 0.8738 GB, free: 8.277 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.5701, allocations: 69.84 kB / 0.8738 GB, free: 8.195 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.991e-05/0.5702, allocations: 28.58 kB / 0.8738 GB, free: 8.168 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.5702, allocations: 4.906 kB / 0.8738 GB, free: 8.164 MB / 0.5419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002063/0.5704, allocations: 107.5 kB / 0.874 GB, free: 8.055 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.5704, allocations: 4.719 kB / 0.874 GB, free: 8.051 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.5704, allocations: 7.984 kB / 0.874 GB, free: 8.043 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.5704, allocations: 1.781 kB / 0.874 GB, free: 8.043 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.5706, allocations: 12 kB / 0.874 GB, free: 8.031 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.5706, allocations: 1.625 kB / 0.874 GB, free: 8.031 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.029e-05/0.5707, allocations: 15.83 kB / 0.874 GB, free: 8.016 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.5707, allocations: 0 / 0.874 GB, free: 8.016 MB / 0.5419 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 9.154e-05/0.5708, allocations: 118.7 kB / 0.8741 GB, free: 7.898 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.5708, allocations: 19.75 kB / 0.8741 GB, free: 7.879 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.5711, allocations: 127.7 kB / 0.8742 GB, free: 7.754 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.5711, allocations: 3.984 kB / 0.8743 GB, free: 7.75 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5711, allocations: 0.875 kB / 0.8743 GB, free: 7.75 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.5711, allocations: 4 kB / 0.8743 GB, free: 7.746 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.5713, allocations: 202.7 kB / 0.8744 GB, free: 7.512 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5713, allocations: 0 / 0.8744 GB, free: 7.512 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.094e-05/0.5714, allocations: 8.531 kB / 0.8745 GB, free: 7.504 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.5714, allocations: 8.469 kB / 0.8745 GB, free: 7.496 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.5714, allocations: 0 / 0.8745 GB, free: 7.496 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5714, allocations: 0.5312 kB / 0.8745 GB, free: 7.496 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5714, allocations: 0.5 kB / 0.8745 GB, free: 7.496 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002092/0.5716, allocations: 134.2 kB / 0.8746 GB, free: 7.348 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.481e-05/0.5717, allocations: 100.9 kB / 0.8747 GB, free: 7.23 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.5718, allocations: 8.719 kB / 0.8747 GB, free: 7.223 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.5719, allocations: 4.531 kB / 0.8747 GB, free: 7.219 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.788e-05/0.5719, allocations: 9.203 kB / 0.8747 GB, free: 7.211 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.5719, allocations: 4 kB / 0.8747 GB, free: 7.207 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001954/0.5721, allocations: 187 kB / 0.8749 GB, free: 7.023 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002968/0.5725, allocations: 52.48 kB / 0.8749 GB, free: 6.973 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: 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.0008869/0.5733, allocations: 332.7 kB / 0.8753 GB, free: 6.766 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0002314/0.5736, allocations: 81.55 kB / 0.8753 GB, free: 6.688 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5736, allocations: 64 / 0.8753 GB, free: 6.688 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 8.902e-05/0.5737, allocations: 43.92 kB / 0.8754 GB, free: 6.645 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.574, allocations: 29.61 kB / 0.8754 GB, free: 6.617 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000526/0.5745, allocations: 215.9 kB / 0.8756 GB, free: 6.379 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/0.5749, allocations: 0.743 MB / 0.8763 GB, free: 5.609 MB / 0.5419 GB Notification: Performance of SimCode: time 4.21e-07/0.5749, allocations: 0 / 0.8763 GB, free: 5.609 MB / 0.5419 GB Notification: Performance of Templates: time 0.005842/0.5807, allocations: 2.359 MB / 0.8786 GB, free: 3.273 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)