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.001192/0.001192, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 186.1 kB / 16.13 MB, free: 6.66 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.345/1.345, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 282.6 kB / 290.2 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9432/0.9432, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 95.41 kB / 0.5945 GB, free: 28.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1624, allocations: 86.98 MB / 0.6794 GB, free: 1.195 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003163/0.1656, allocations: 1.816 MB / 0.6812 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.1672, allocations: 1.09 MB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.949e-05/0.1673, allocations: 1.781 kB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.1676, allocations: 59.75 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002034/0.1679, allocations: 75.72 kB / 0.6824 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.1684, allocations: 196.4 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.1686, allocations: 131.6 kB / 0.6827 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.1687, allocations: 29.08 kB / 0.6828 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.304e-05/0.1688, allocations: 57.83 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.851e-05/0.1689, allocations: 59.75 kB / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.1689, allocations: 4 kB / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.169, allocations: 63.89 kB / 0.6829 GB, free: 13.63 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.369e-05/0.1691, allocations: 39.84 kB / 0.683 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.557e-05/0.1692, allocations: 44.31 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.1695, allocations: 201.3 kB / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1695, allocations: 0 / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1695, allocations: 0 / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.1695, allocations: 0 / 0.6832 GB, free: 13.36 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.0006506/0.1701, allocations: 0.4885 MB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.1702, allocations: 8.031 kB / 0.6837 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.1702, allocations: 17.47 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.1705, allocations: 253.5 kB / 0.6839 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.1705, allocations: 5 kB / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.1706, allocations: 9.438 kB / 0.684 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.1708, allocations: 92.92 kB / 0.684 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1708, allocations: 0 / 0.684 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.1708, allocations: 8 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.1708, allocations: 3.984 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.1709, allocations: 39.92 kB / 0.6841 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004762/0.1714, allocations: 360.6 kB / 0.6844 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.1717, allocations: 78.67 kB / 0.6845 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.504e-05/0.1718, allocations: 40.88 kB / 0.6846 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1718, allocations: 0 / 0.6846 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.172, allocations: 83.38 kB / 0.6846 GB, free: 11.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.172, allocations: 0 / 0.6846 GB, free: 11.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003578/0.1724, allocations: 145.7 kB / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.1725, allocations: 102.8 kB / 0.6849 GB, free: 11.44 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.1727, allocations: 274.9 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.1727, allocations: 33.64 kB / 0.6852 GB, free: 11.12 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.1728, allocations: 112.1 kB / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.1728, allocations: 23.66 kB / 0.6853 GB, free: 10.99 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.1729, allocations: 25.7 kB / 0.6853 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.173, allocations: 330.8 kB / 0.6856 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.36e-05/0.1731, allocations: 31.92 kB / 0.6857 GB, free: 10.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.592e-05/0.1732, allocations: 72.27 kB / 0.6857 GB, free: 10.51 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.1734, allocations: 69.64 kB / 0.6858 GB, free: 10.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1734, allocations: 0 / 0.6858 GB, free: 10.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002079/0.1736, allocations: 113.5 kB / 0.6859 GB, free: 10.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.1736, allocations: 4 kB / 0.6859 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1736, allocations: 0 / 0.6859 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.1736, allocations: 8.031 kB / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.428e-05/0.1737, allocations: 15.92 kB / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1737, allocations: 0 / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.33e-05/0.1738, allocations: 7.938 kB / 0.6859 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.1738, allocations: 7.984 kB / 0.6859 GB, free: 10.27 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.0001288/0.174, allocations: 142.5 kB / 0.6861 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/0.174, allocations: 11.81 kB / 0.6861 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.619e-05/0.174, allocations: 17.41 kB / 0.6861 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.1741, allocations: 8 kB / 0.6861 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1741, allocations: 3.984 kB / 0.6861 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1741, allocations: 3.938 kB / 0.6861 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.1743, allocations: 217.6 kB / 0.6863 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1743, allocations: 0 / 0.6863 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.825e-05/0.1743, allocations: 4 kB / 0.6863 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1743, allocations: 4 kB / 0.6863 GB, free: 9.809 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.1744, allocations: 3.984 kB / 0.6863 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1744, allocations: 0 / 0.6863 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1744, allocations: 48 / 0.6863 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.1746, allocations: 152.8 kB / 0.6865 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.1747, allocations: 96.91 kB / 0.6866 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.1747, allocations: 4 kB / 0.6866 GB, free: 9.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.288e-05/0.1748, allocations: 4 kB / 0.6866 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.235e-05/0.1748, allocations: 11.98 kB / 0.6866 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.1749, allocations: 7.938 kB / 0.6866 GB, free: 9.496 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000173/0.175, allocations: 200.8 kB / 0.6868 GB, free: 9.301 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.175, allocations: 0 / 0.6868 GB, free: 9.301 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.1753, allocations: 39.88 kB / 0.6868 GB, free: 9.262 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.0009901/0.1763, allocations: 423.2 kB / 0.6872 GB, free: 9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.1765, allocations: 67.91 kB / 0.6873 GB, free: 8.934 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1765, allocations: 0 / 0.6873 GB, free: 8.934 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.782e-05/0.1766, allocations: 35.98 kB / 0.6873 GB, free: 8.898 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.1769, allocations: 35.95 kB / 0.6874 GB, free: 8.863 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000498/0.1774, allocations: 336.5 kB / 0.6877 GB, free: 8.512 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.1777, allocations: 0.7243 MB / 0.6884 GB, free: 7.762 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.274e-05/0.1778, allocations: 29.31 kB / 0.6884 GB, free: 7.734 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.1778, allocations: 23.42 kB / 0.6885 GB, free: 7.711 MB / 494.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1778, allocations: 0 / 0.6885 GB, free: 7.711 MB / 494.1 MB Notification: Performance of Templates: time 0.005231/0.1831, allocations: 2.439 MB / 0.6908 GB, free: 5.305 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)