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.00149/0.00149, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001465/0.001465, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.303/1.303, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002422/0.002422, allocations: 276.9 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.158/1.158, allocations: 178.5 MB / 0.5079 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002658/0.002658, allocations: 99.84 kB / 0.6071 GB, free: 9.246 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1693, allocations: 89.13 MB / 0.6942 GB, free: 32 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003207/0.1726, allocations: 1.768 MB / 0.6959 GB, free: 14.24 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.1743, allocations: 1.107 MB / 0.697 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.511e-05/0.1744, allocations: 7.938 kB / 0.697 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002815/0.1747, allocations: 55.73 kB / 0.697 GB, free: 13.06 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002199/0.1749, allocations: 75.67 kB / 0.6971 GB, free: 12.99 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005591/0.1755, allocations: 225.3 kB / 0.6973 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.1757, allocations: 143.6 kB / 0.6974 GB, free: 12.63 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.1758, allocations: 25.09 kB / 0.6975 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.679e-05/0.1759, allocations: 63.77 kB / 0.6975 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.176, allocations: 63.75 kB / 0.6976 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.1761, allocations: 11.94 kB / 0.6976 GB, free: 12.47 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1762, allocations: 71.91 kB / 0.6977 GB, free: 12.4 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.602e-05/0.1763, allocations: 35.89 kB / 0.6977 GB, free: 12.37 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.821e-05/0.1764, allocations: 59.61 kB / 0.6978 GB, free: 12.31 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.1767, allocations: 195.7 kB / 0.698 GB, free: 12.12 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1767, allocations: 0 / 0.698 GB, free: 12.12 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1767, allocations: 0 / 0.698 GB, free: 12.12 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.1767, allocations: 0 / 0.698 GB, free: 12.12 MB / 0.545 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.000655/0.1774, allocations: 0.4885 MB / 0.6984 GB, free: 11.57 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1774, allocations: 12.02 kB / 0.6984 GB, free: 11.56 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.403e-05/0.1775, allocations: 16.75 kB / 0.6985 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.1777, allocations: 245 kB / 0.6987 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1778, allocations: 4.375 kB / 0.6987 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.1778, allocations: 8.125 kB / 0.6987 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.178, allocations: 92.17 kB / 0.6988 GB, free: 11.15 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.178, allocations: 11.98 kB / 0.6988 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.178, allocations: 4 kB / 0.6988 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.1781, allocations: 0 / 0.6988 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.1782, allocations: 35.98 kB / 0.6988 GB, free: 11.1 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005046/0.1787, allocations: 360.5 kB / 0.6992 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.1789, allocations: 86.66 kB / 0.6993 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.605e-05/0.179, allocations: 36.92 kB / 0.6993 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.179, allocations: 3.938 kB / 0.6993 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001845/0.1792, allocations: 83.31 kB / 0.6994 GB, free: 10.47 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.1792, allocations: 0 / 0.6994 GB, free: 10.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0003603/0.1796, allocations: 133.5 kB / 0.6995 GB, free: 10.33 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.1797, allocations: 106.8 kB / 0.6996 GB, free: 10.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.1799, allocations: 270.8 kB / 0.6999 GB, free: 9.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.18, allocations: 29.64 kB / 0.6999 GB, free: 9.895 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/0.1801, allocations: 120.1 kB / 0.7 GB, free: 9.773 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.1801, allocations: 23.7 kB / 0.7 GB, free: 9.75 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.1802, allocations: 25.7 kB / 0.7001 GB, free: 9.719 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1803, allocations: 330.8 kB / 0.7004 GB, free: 9.387 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.037e-05/0.1804, allocations: 27.98 kB / 0.7004 GB, free: 9.359 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1805, allocations: 72.27 kB / 0.7005 GB, free: 9.273 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.1806, allocations: 69.64 kB / 0.7005 GB, free: 9.199 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1807, allocations: 0 / 0.7005 GB, free: 9.199 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002117/0.1809, allocations: 109.5 kB / 0.7006 GB, free: 9.086 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.1809, allocations: 7.984 kB / 0.7007 GB, free: 9.078 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1809, allocations: 4.031 kB / 0.7007 GB, free: 9.074 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.1809, allocations: 4 kB / 0.7007 GB, free: 9.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.865e-05/0.181, allocations: 11.94 kB / 0.7007 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.181, allocations: 0 / 0.7007 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.1811, allocations: 15.86 kB / 0.7007 GB, free: 9.043 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1811, allocations: 4 kB / 0.7007 GB, free: 9.039 MB / 0.545 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.0001296/0.1813, allocations: 149.3 kB / 0.7008 GB, free: 8.887 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.1813, allocations: 15.81 kB / 0.7008 GB, free: 8.871 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.434e-05/0.1813, allocations: 21.39 kB / 0.7009 GB, free: 8.848 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.1814, allocations: 4 kB / 0.7009 GB, free: 8.844 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1814, allocations: 0 / 0.7009 GB, free: 8.844 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1814, allocations: 3.938 kB / 0.7009 GB, free: 8.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.1816, allocations: 217.6 kB / 0.7011 GB, free: 8.578 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1816, allocations: 3.984 kB / 0.7011 GB, free: 8.574 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.98e-05/0.1816, allocations: 8 kB / 0.7011 GB, free: 8.566 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1816, allocations: 0 / 0.7011 GB, free: 8.566 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.1817, allocations: 7.984 kB / 0.7011 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1817, allocations: 0 / 0.7011 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1817, allocations: 0 / 0.7011 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.1819, allocations: 148.8 kB / 0.7012 GB, free: 8.395 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.735e-05/0.182, allocations: 97.09 kB / 0.7013 GB, free: 8.281 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.182, allocations: 4 kB / 0.7013 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.989e-05/0.1821, allocations: 7.875 kB / 0.7013 GB, free: 8.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.1822, allocations: 11.98 kB / 0.7014 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.1822, allocations: 7.938 kB / 0.7014 GB, free: 8.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001868/0.1824, allocations: 196.6 kB / 0.7016 GB, free: 8.059 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1824, allocations: 4 kB / 0.7016 GB, free: 8.055 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002387/0.1826, allocations: 31.94 kB / 0.7016 GB, free: 8.023 MB / 0.545 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.001448/0.1841, allocations: 421.4 kB / 0.702 GB, free: 7.766 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002259/0.1843, allocations: 79.89 kB / 0.7021 GB, free: 7.688 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1843, allocations: 0 / 0.7021 GB, free: 7.688 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.242e-05/0.1844, allocations: 35.92 kB / 0.7021 GB, free: 7.652 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.1847, allocations: 45.84 kB / 0.7021 GB, free: 7.609 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005415/0.1853, allocations: 328.4 kB / 0.7025 GB, free: 7.254 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.1856, allocations: 0.7162 MB / 0.7032 GB, free: 6.512 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.967e-05/0.1856, allocations: 27.42 kB / 0.7032 GB, free: 6.484 MB / 0.545 GB Notification: Performance of SimCode: time 3.397e-06/0.1857, allocations: 0 / 0.7032 GB, free: 6.484 MB / 0.545 GB Notification: Performance of Templates: time 0.004467/0.1901, allocations: 2.59 MB / 0.7057 GB, free: 3.902 MB / 0.545 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)