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.001012/0.001012, allocations: 91.86 kB / 15.36 MB, free: 0.7422 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.009036/0.009037, allocations: 179.3 kB / 16.26 MB, free: 6.605 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.333/1.333, allocations: 223.3 MB / 240.3 MB, free: 5.332 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: 270.8 kB / 291.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9324/0.9324, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004181/0.0004181, allocations: 11.97 kB / 0.5987 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1573, allocations: 88.54 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.001847/0.1592, allocations: 1.477 MB / 0.6866 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.1607, allocations: 1.067 MB / 0.6876 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.151e-05/0.1608, allocations: 5.125 kB / 0.6876 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002521/0.1611, allocations: 51.81 kB / 0.6877 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.1612, allocations: 69.2 kB / 0.6877 GB, free: 12.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.1618, allocations: 197 kB / 0.6879 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.1619, allocations: 139.6 kB / 0.688 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.8e-05/0.162, allocations: 21.11 kB / 0.6881 GB, free: 12.06 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.636e-05/0.1621, allocations: 68.12 kB / 0.6881 GB, free: 12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.247e-05/0.1622, allocations: 60.94 kB / 0.6882 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.1623, allocations: 0 / 0.6882 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.1624, allocations: 59.97 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.414e-05/0.1625, allocations: 32.41 kB / 0.6883 GB, free: 11.85 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.595e-05/0.1625, allocations: 78.38 kB / 0.6884 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.1628, allocations: 195.7 kB / 0.6885 GB, free: 11.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1628, allocations: 0 / 0.6885 GB, free: 11.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1628, allocations: 1.562 kB / 0.6885 GB, free: 11.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.606e-06/0.1628, allocations: 0 / 0.6885 GB, free: 11.57 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.00056/0.1634, allocations: 464.5 kB / 0.689 GB, free: 11.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1634, allocations: 13.03 kB / 0.689 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.429e-05/0.1635, allocations: 16.75 kB / 0.689 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.1637, allocations: 256.9 kB / 0.6893 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.1638, allocations: 4.375 kB / 0.6893 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.1638, allocations: 8.125 kB / 0.6893 GB, free: 10.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.164, allocations: 92.23 kB / 0.6894 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.164, allocations: 3.938 kB / 0.6894 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.164, allocations: 0 / 0.6894 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.164, allocations: 4.516 kB / 0.6894 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.827e-05/0.1641, allocations: 35.92 kB / 0.6894 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004741/0.1646, allocations: 358.8 kB / 0.6897 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.1648, allocations: 87.95 kB / 0.6898 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.168e-05/0.1649, allocations: 34.89 kB / 0.6899 GB, free: 10.06 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.165, allocations: 7.984 kB / 0.6899 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.1652, allocations: 79.38 kB / 0.6899 GB, free: 9.965 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 3.176e-06/0.1652, allocations: 2.469 kB / 0.6899 GB, free: 9.965 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003363/0.1655, allocations: 145.3 kB / 0.6901 GB, free: 9.816 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/0.1656, allocations: 106.8 kB / 0.6902 GB, free: 9.688 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.1658, allocations: 263 kB / 0.6904 GB, free: 9.422 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.1659, allocations: 25.7 kB / 0.6905 GB, free: 9.391 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.109e-05/0.1659, allocations: 120.8 kB / 0.6906 GB, free: 9.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.166, allocations: 17.47 kB / 0.6906 GB, free: 9.254 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.998e-05/0.166, allocations: 17.72 kB / 0.6906 GB, free: 9.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1661, allocations: 334.8 kB / 0.6909 GB, free: 8.895 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.326e-05/0.1662, allocations: 27.98 kB / 0.691 GB, free: 8.867 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.88e-05/0.1663, allocations: 69.8 kB / 0.691 GB, free: 8.785 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.1665, allocations: 75.31 kB / 0.6911 GB, free: 8.707 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1665, allocations: 0 / 0.6911 GB, free: 8.707 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002125/0.1667, allocations: 114.3 kB / 0.6912 GB, free: 8.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.1667, allocations: 5.719 kB / 0.6912 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1667, allocations: 4.031 kB / 0.6912 GB, free: 8.582 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.378e-06/0.1668, allocations: 0 / 0.6912 GB, free: 8.582 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.938e-05/0.1669, allocations: 15.98 kB / 0.6912 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.1669, allocations: 0 / 0.6912 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.687e-05/0.1669, allocations: 7.938 kB / 0.6912 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.167, allocations: 4 kB / 0.6912 GB, free: 8.555 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.0001241/0.1671, allocations: 142.5 kB / 0.6914 GB, free: 8.406 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.1671, allocations: 11.81 kB / 0.6914 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.659e-05/0.1672, allocations: 25.39 kB / 0.6914 GB, free: 8.367 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.1672, allocations: 4 kB / 0.6914 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1672, allocations: 0 / 0.6914 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1672, allocations: 7.938 kB / 0.6914 GB, free: 8.355 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.1674, allocations: 225.5 kB / 0.6916 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1674, allocations: 3.938 kB / 0.6916 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.19e-05/0.1674, allocations: 8.172 kB / 0.6916 GB, free: 8.074 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1675, allocations: 4 kB / 0.6917 GB, free: 8.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.1675, allocations: 3.938 kB / 0.6917 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1675, allocations: 0 / 0.6917 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1675, allocations: 3.938 kB / 0.6917 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.1677, allocations: 144.8 kB / 0.6918 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.1678, allocations: 96.91 kB / 0.6919 GB, free: 7.789 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.1678, allocations: 4 kB / 0.6919 GB, free: 7.785 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.726e-05/0.1679, allocations: 4 kB / 0.6919 GB, free: 7.781 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.168, allocations: 11.98 kB / 0.6919 GB, free: 7.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.168, allocations: 3.938 kB / 0.6919 GB, free: 7.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001767/0.1682, allocations: 196.6 kB / 0.6921 GB, free: 7.574 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1682, allocations: 4 kB / 0.6921 GB, free: 7.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.1684, allocations: 31.94 kB / 0.6921 GB, free: 7.539 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.0009459/0.1694, allocations: 426.5 kB / 0.6925 GB, free: 7.273 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002057/0.1696, allocations: 75.94 kB / 0.6926 GB, free: 7.199 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1696, allocations: 0 / 0.6926 GB, free: 7.199 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.884e-05/0.1697, allocations: 35.92 kB / 0.6926 GB, free: 7.164 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.17, allocations: 42.22 kB / 0.6927 GB, free: 7.125 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004922/0.1705, allocations: 326 kB / 0.693 GB, free: 6.785 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.1708, allocations: 0.7243 MB / 0.6937 GB, free: 6.035 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.197e-05/0.1708, allocations: 25.38 kB / 0.6937 GB, free: 6.012 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.1709, allocations: 15.44 kB / 0.6937 GB, free: 5.996 MB / 494.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1709, allocations: 0 / 0.6937 GB, free: 5.996 MB / 494.1 MB Notification: Performance of Templates: time 0.005265/0.1762, allocations: 2.435 MB / 0.6961 GB, free: 3.598 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)