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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 286.6 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9185/0.9185, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001977, allocations: 91.62 kB / 0.5952 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1575, allocations: 86.99 MB / 0.6802 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002843/0.1604, allocations: 1.757 MB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.162, allocations: 1.11 MB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.81e-05/0.1621, allocations: 0 / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.1624, allocations: 63.73 kB / 0.683 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.1626, allocations: 79.66 kB / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.1632, allocations: 222.4 kB / 0.6833 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.1633, allocations: 143.6 kB / 0.6835 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.482e-05/0.1634, allocations: 33.08 kB / 0.6835 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.648e-05/0.1635, allocations: 59.78 kB / 0.6836 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.1637, allocations: 63.69 kB / 0.6836 GB, free: 13.15 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.1637, allocations: 8 kB / 0.6836 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.1638, allocations: 67.95 kB / 0.6837 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.922e-05/0.1639, allocations: 39.84 kB / 0.6837 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.537e-05/0.164, allocations: 63.59 kB / 0.6838 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.1642, allocations: 191.7 kB / 0.684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1643, allocations: 3.938 kB / 0.684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1643, allocations: 4 kB / 0.684 GB, free: 12.78 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1643, allocations: 0 / 0.684 GB, free: 12.78 MB / 494.1 MB 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.0006115/0.1649, allocations: 0.4885 MB / 0.6844 GB, free: 12.24 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.1649, allocations: 8.031 kB / 0.6845 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.033e-05/0.165, allocations: 16.75 kB / 0.6845 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.1653, allocations: 249.5 kB / 0.6847 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.1653, allocations: 4.375 kB / 0.6847 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.1653, allocations: 8.109 kB / 0.6847 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.1655, allocations: 100.2 kB / 0.6848 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.1655, allocations: 0 / 0.6848 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.1655, allocations: 4 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.1656, allocations: 0 / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.1657, allocations: 35.92 kB / 0.6849 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004517/0.1661, allocations: 356.6 kB / 0.6852 GB, free: 11.37 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.1664, allocations: 94.67 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.599e-05/0.1665, allocations: 36.84 kB / 0.6853 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.1665, allocations: 0 / 0.6853 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.1667, allocations: 75.38 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.1667, allocations: 4 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003421/0.1671, allocations: 145.4 kB / 0.6855 GB, free: 10.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.1671, allocations: 102.8 kB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.1674, allocations: 263.2 kB / 0.6859 GB, free: 10.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.1674, allocations: 25.7 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.1675, allocations: 116.1 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.1675, allocations: 19.66 kB / 0.686 GB, free: 10.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.1676, allocations: 29.7 kB / 0.6861 GB, free: 10.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1677, allocations: 334.8 kB / 0.6864 GB, free: 10.06 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.801e-05/0.1678, allocations: 23.98 kB / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.658e-05/0.1679, allocations: 72.2 kB / 0.6865 GB, free: 9.953 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.168, allocations: 81.88 kB / 0.6866 GB, free: 9.867 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.168, allocations: 0 / 0.6866 GB, free: 9.867 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002147/0.1683, allocations: 121.5 kB / 0.6867 GB, free: 9.742 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.1683, allocations: 5.875 kB / 0.6867 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1683, allocations: 0 / 0.6867 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.1683, allocations: 7.938 kB / 0.6867 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.673e-05/0.1684, allocations: 8 kB / 0.6867 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1684, allocations: 0 / 0.6867 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.308e-05/0.1685, allocations: 15.92 kB / 0.6867 GB, free: 9.707 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-06/0.1685, allocations: 4 kB / 0.6867 GB, free: 9.703 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.1686, allocations: 146 kB / 0.6869 GB, free: 9.555 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.012e-05/0.1687, allocations: 15.81 kB / 0.6869 GB, free: 9.539 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.1687, allocations: 21.39 kB / 0.6869 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.1687, allocations: 4 kB / 0.6869 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1687, allocations: 0 / 0.6869 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1687, allocations: 3.938 kB / 0.6869 GB, free: 9.508 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.1689, allocations: 217.6 kB / 0.6871 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1689, allocations: 0 / 0.6871 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.121e-05/0.169, allocations: 8 kB / 0.6871 GB, free: 9.238 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.169, allocations: 7.938 kB / 0.6871 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.169, allocations: 7.984 kB / 0.6871 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.169, allocations: 0 / 0.6871 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.169, allocations: 0 / 0.6871 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.1693, allocations: 140.8 kB / 0.6873 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/0.1693, allocations: 88.92 kB / 0.6873 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.1694, allocations: 8 kB / 0.6874 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.16e-05/0.1694, allocations: 0 / 0.6874 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.1695, allocations: 7.984 kB / 0.6874 GB, free: 8.945 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.1695, allocations: 11.94 kB / 0.6874 GB, free: 8.934 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.1697, allocations: 201 kB / 0.6876 GB, free: 8.738 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1697, allocations: 0 / 0.6876 GB, free: 8.738 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002402/0.1699, allocations: 35.94 kB / 0.6876 GB, free: 8.703 MB / 494.1 MB 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009097/0.1708, allocations: 435.2 kB / 0.688 GB, free: 8.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000215/0.1711, allocations: 67.95 kB / 0.6881 GB, free: 8.363 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1711, allocations: 4.062 kB / 0.6881 GB, free: 8.359 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.313e-05/0.1712, allocations: 47.91 kB / 0.6881 GB, free: 8.312 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.1715, allocations: 28.73 kB / 0.6882 GB, free: 8.285 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.1719, allocations: 294.9 kB / 0.6884 GB, free: 7.973 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.1722, allocations: 0.7162 MB / 0.6891 GB, free: 7.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.538e-05/0.1723, allocations: 37.36 kB / 0.6892 GB, free: 7.195 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.1723, allocations: 23.42 kB / 0.6892 GB, free: 7.172 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1723, allocations: 0 / 0.6892 GB, free: 7.172 MB / 494.1 MB Notification: Performance of Templates: time 0.005435/0.1778, allocations: 2.535 MB / 0.6917 GB, free: 4.672 MB / 494.1 MB 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)