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.0007988/0.0007988, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009516/0.0009516, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001688/0.001688, allocations: 278.9 kB / 291.4 MB, free: 1.766 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.921/0.921, allocations: 169.5 MB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004065, allocations: 13.53 kB / 0.598 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1761/0.1765, allocations: 88.55 MB / 0.6845 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.001731/0.1782, allocations: 1.443 MB / 0.6859 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1796, allocations: 1.015 MB / 0.6869 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.254e-05/0.1797, allocations: 0 / 0.6869 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.1799, allocations: 55.8 kB / 0.6869 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.1801, allocations: 59.8 kB / 0.687 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004816/0.1806, allocations: 192.2 kB / 0.6872 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.1808, allocations: 124.4 kB / 0.6873 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.221e-05/0.1809, allocations: 13.89 kB / 0.6873 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.955e-05/0.181, allocations: 63.69 kB / 0.6874 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.533e-05/0.1811, allocations: 49.67 kB / 0.6874 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.1811, allocations: 7.938 kB / 0.6874 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.1812, allocations: 51.97 kB / 0.6875 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.511e-05/0.1813, allocations: 31.89 kB / 0.6875 GB, free: 12.33 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.428e-05/0.1813, allocations: 50.52 kB / 0.6876 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.1815, allocations: 151.9 kB / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1815, allocations: 0 / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1815, allocations: 3.438 kB / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1816, allocations: 0 / 0.6877 GB, free: 12.12 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.0005237/0.1821, allocations: 468.3 kB / 0.6881 GB, free: 11.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.1821, allocations: 8.031 kB / 0.6882 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.464e-05/0.1822, allocations: 15.81 kB / 0.6882 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.1824, allocations: 252.3 kB / 0.6884 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.1824, allocations: 3.938 kB / 0.6884 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.1825, allocations: 4.625 kB / 0.6884 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001832/0.1827, allocations: 93.42 kB / 0.6885 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1827, allocations: 0.8125 kB / 0.6885 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.1827, allocations: 0 / 0.6885 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.1827, allocations: 13.64 kB / 0.6885 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.769e-05/0.1828, allocations: 31.92 kB / 0.6886 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004724/0.1833, allocations: 357.4 kB / 0.6889 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.1835, allocations: 87.89 kB / 0.689 GB, free: 10.65 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.737e-05/0.1836, allocations: 31.12 kB / 0.689 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.1836, allocations: 8 kB / 0.689 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.1838, allocations: 81.72 kB / 0.6891 GB, free: 10.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/0.1839, allocations: 0 / 0.6891 GB, free: 10.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003332/0.1842, allocations: 141.4 kB / 0.6892 GB, free: 10.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.1843, allocations: 110.8 kB / 0.6893 GB, free: 10.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.1845, allocations: 266.9 kB / 0.6896 GB, free: 9.977 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.1845, allocations: 26.36 kB / 0.6896 GB, free: 9.945 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/0.1846, allocations: 118 kB / 0.6897 GB, free: 9.828 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.1847, allocations: 15.75 kB / 0.6897 GB, free: 9.812 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.1847, allocations: 4 kB / 0.6897 GB, free: 9.809 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1848, allocations: 326.8 kB / 0.6901 GB, free: 9.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.739e-05/0.1849, allocations: 30.77 kB / 0.6901 GB, free: 9.453 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.616e-05/0.185, allocations: 64.28 kB / 0.6901 GB, free: 9.375 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.338e-05/0.185, allocations: 31.98 kB / 0.6902 GB, free: 9.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.185, allocations: 0.7812 kB / 0.6902 GB, free: 9.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001999/0.1853, allocations: 114.8 kB / 0.6903 GB, free: 9.227 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.1853, allocations: 4 kB / 0.6903 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1853, allocations: 4.5 kB / 0.6903 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1853, allocations: 4 kB / 0.6903 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.149e-05/0.1854, allocations: 24.44 kB / 0.6903 GB, free: 9.191 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1854, allocations: 5.125 kB / 0.6903 GB, free: 9.188 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.013e-05/0.1855, allocations: 7.906 kB / 0.6903 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1855, allocations: 5 kB / 0.6903 GB, free: 9.176 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.1856, allocations: 150.5 kB / 0.6905 GB, free: 9.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.377e-05/0.1857, allocations: 23.8 kB / 0.6905 GB, free: 8.996 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.17e-05/0.1857, allocations: 17.41 kB / 0.6905 GB, free: 8.977 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.1857, allocations: 4 kB / 0.6905 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1857, allocations: 7.891 kB / 0.6905 GB, free: 8.965 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1857, allocations: 0 / 0.6905 GB, free: 8.965 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.1859, allocations: 221.6 kB / 0.6907 GB, free: 8.699 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1859, allocations: 0 / 0.6907 GB, free: 8.699 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.789e-05/0.186, allocations: 4 kB / 0.6907 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.186, allocations: 0 / 0.6907 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.186, allocations: 4 kB / 0.6908 GB, free: 8.691 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.186, allocations: 4 kB / 0.6908 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.186, allocations: 0 / 0.6908 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.1862, allocations: 148.8 kB / 0.6909 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-05/0.1863, allocations: 96.91 kB / 0.691 GB, free: 8.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.1863, allocations: 4 kB / 0.691 GB, free: 8.406 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.093e-05/0.1864, allocations: 4 kB / 0.691 GB, free: 8.402 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.1864, allocations: 7.984 kB / 0.691 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.1865, allocations: 8 kB / 0.691 GB, free: 8.387 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001642/0.1866, allocations: 200.3 kB / 0.6912 GB, free: 8.191 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1866, allocations: 4 kB / 0.6912 GB, free: 8.188 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002466/0.1869, allocations: 31.94 kB / 0.6912 GB, free: 8.156 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 (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.0009363/0.1878, allocations: 435.3 kB / 0.6917 GB, free: 7.887 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002031/0.188, allocations: 67.91 kB / 0.6917 GB, free: 7.82 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1881, allocations: 64 / 0.6917 GB, free: 7.82 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.24e-05/0.1881, allocations: 39.97 kB / 0.6918 GB, free: 7.781 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.1884, allocations: 31.98 kB / 0.6918 GB, free: 7.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000491/0.1889, allocations: 314.2 kB / 0.6921 GB, free: 7.422 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.1892, allocations: 0.7204 MB / 0.6928 GB, free: 6.676 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.267e-05/0.1893, allocations: 21.38 kB / 0.6928 GB, free: 6.656 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.692e-05/0.1893, allocations: 31.42 kB / 0.6928 GB, free: 6.625 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1893, allocations: 0 / 0.6928 GB, free: 6.625 MB / 494.1 MB Notification: Performance of Templates: time 0.005241/0.1946, allocations: 2.354 MB / 0.6951 GB, free: 4.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)