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.001366/0.001366, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001343/0.001343, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.528/1.528, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002513/0.002513, allocations: 283 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.082/1.082, allocations: 178.6 MB / 0.5069 GB, free: 4.773 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002846/0.002846, allocations: 105.1 kB / 0.6059 GB, free: 25.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1679, allocations: 89.15 MB / 0.693 GB, free: 4.734 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003383/0.1713, allocations: 1.83 MB / 0.6948 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.1731, allocations: 1.076 MB / 0.6958 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.1732, allocations: 4.781 kB / 0.6958 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003085/0.1736, allocations: 55.8 kB / 0.6959 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002306/0.1738, allocations: 73.47 kB / 0.6959 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.1744, allocations: 202.1 kB / 0.6961 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000221/0.1746, allocations: 143.6 kB / 0.6963 GB, free: 1.348 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.1748, allocations: 25.09 kB / 0.6963 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.867e-05/0.1749, allocations: 59.77 kB / 0.6964 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.175, allocations: 67.75 kB / 0.6964 GB, free: 1.199 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.175, allocations: 4 kB / 0.6964 GB, free: 1.195 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.1752, allocations: 79.88 kB / 0.6965 GB, free: 1.117 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.774e-05/0.1753, allocations: 43.84 kB / 0.6965 GB, free: 1.074 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.723e-05/0.1753, allocations: 55.62 kB / 0.6966 GB, free: 1.02 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.1756, allocations: 203.7 kB / 0.6968 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1757, allocations: 0 / 0.6968 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1757, allocations: 3.938 kB / 0.6968 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.391e-06/0.1757, allocations: 0 / 0.6968 GB, free: 0.8164 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.0006717/0.1763, allocations: 492.2 kB / 0.6973 GB, free: 288 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.1764, allocations: 8.031 kB / 0.6973 GB, free: 280 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.677e-05/0.1765, allocations: 16.75 kB / 0.6973 GB, free: 264 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.1768, allocations: 252.9 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.1768, allocations: 384 / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.1768, allocations: 8.125 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.1771, allocations: 96.17 kB / 0.6976 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.1771, allocations: 0 / 0.6976 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.1771, allocations: 0 / 0.6976 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.1771, allocations: 4 kB / 0.6976 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.1772, allocations: 35.97 kB / 0.6977 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005691/0.1778, allocations: 360.5 kB / 0.698 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.178, allocations: 90.66 kB / 0.6981 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.781e-05/0.1781, allocations: 28.84 kB / 0.6981 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.1782, allocations: 8.094 kB / 0.6981 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.1784, allocations: 79.31 kB / 0.6982 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.1784, allocations: 0 / 0.6982 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0003829/0.1788, allocations: 141.4 kB / 0.6983 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.1789, allocations: 106.8 kB / 0.6984 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/0.1792, allocations: 256.2 kB / 0.6987 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.1792, allocations: 33.7 kB / 0.6987 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1793, allocations: 124 kB / 0.6988 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.1794, allocations: 11.75 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.1794, allocations: 33.7 kB / 0.6989 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1796, allocations: 330.8 kB / 0.6992 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.49e-05/0.1797, allocations: 23.98 kB / 0.6992 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.1798, allocations: 80.14 kB / 0.6993 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.18, allocations: 65.7 kB / 0.6994 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.18, allocations: 0 / 0.6994 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002305/0.1802, allocations: 113.4 kB / 0.6995 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.1802, allocations: 8 kB / 0.6995 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1803, allocations: 0 / 0.6995 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.1803, allocations: 0 / 0.6995 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.899e-05/0.1804, allocations: 19.92 kB / 0.6995 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.1804, allocations: 4.422 kB / 0.6995 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.964e-05/0.1805, allocations: 15.88 kB / 0.6995 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.1805, allocations: 4 kB / 0.6995 GB, free: 13.75 MB / 0.4981 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 ($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.0001492/0.1806, allocations: 137.8 kB / 0.6997 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.1807, allocations: 19.8 kB / 0.6997 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.175e-05/0.1807, allocations: 17.41 kB / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.1807, allocations: 0 / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1808, allocations: 0 / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1808, allocations: 7.938 kB / 0.6997 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.181, allocations: 233.5 kB / 0.6999 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.181, allocations: 0 / 0.6999 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.908e-05/0.1811, allocations: 4 kB / 0.6999 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1811, allocations: 48 / 0.6999 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.1811, allocations: 7.984 kB / 0.6999 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1811, allocations: 3.984 kB / 0.6999 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1811, allocations: 0 / 0.6999 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002657/0.1814, allocations: 148.8 kB / 0.7001 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.369e-05/0.1814, allocations: 89.02 kB / 0.7002 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.1815, allocations: 7.984 kB / 0.7002 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.46e-05/0.1815, allocations: 4 kB / 0.7002 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.1816, allocations: 7.984 kB / 0.7002 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.1816, allocations: 11.94 kB / 0.7002 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002025/0.1818, allocations: 187.3 kB / 0.7004 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1818, allocations: 0 / 0.7004 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002557/0.1821, allocations: 47.83 kB / 0.7004 GB, free: 12.74 MB / 0.4981 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.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.001511/0.1836, allocations: 435 kB / 0.7008 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002354/0.1839, allocations: 75.91 kB / 0.7009 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1839, allocations: 0 / 0.7009 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.681e-05/0.184, allocations: 35.98 kB / 0.7009 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.1843, allocations: 37.5 kB / 0.701 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005611/0.1848, allocations: 315 kB / 0.7013 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.1852, allocations: 0.7279 MB / 0.702 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.965e-05/0.1853, allocations: 25.38 kB / 0.702 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.771e-05/0.1854, allocations: 19.44 kB / 0.702 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of SimCode: time 2.81e-07/0.1854, allocations: 0 / 0.702 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.005989/0.1914, allocations: 2.518 MB / 0.7045 GB, free: 8.711 MB / 0.4981 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)