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.001515/0.001515, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.001463/0.001463, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.309/1.309, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002369/0.002369, allocations: 296.7 kB / 291 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.11/1.11, allocations: 178.6 MB / 0.5076 GB, free: 12.69 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 99.83 kB / 0.6066 GB, free: 9.625 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1578, allocations: 89.14 MB / 0.6936 GB, free: 408 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002988/0.1608, allocations: 1.838 MB / 0.6954 GB, free: 14.54 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1624, allocations: 1.073 MB / 0.6965 GB, free: 13.46 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.648e-05/0.1624, allocations: 3.938 kB / 0.6965 GB, free: 13.45 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.1627, allocations: 51.88 kB / 0.6965 GB, free: 13.4 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.1629, allocations: 79.73 kB / 0.6966 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.1635, allocations: 195.3 kB / 0.6968 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002014/0.1637, allocations: 151.6 kB / 0.6969 GB, free: 12.99 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.714e-05/0.1638, allocations: 17.12 kB / 0.6969 GB, free: 12.97 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.44e-05/0.1639, allocations: 67.75 kB / 0.697 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.57e-05/0.164, allocations: 67.69 kB / 0.6971 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.164, allocations: 8 kB / 0.6971 GB, free: 12.83 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.1641, allocations: 67.95 kB / 0.6971 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.1642, allocations: 43.84 kB / 0.6972 GB, free: 12.72 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.1643, allocations: 59.55 kB / 0.6972 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001986/0.1645, allocations: 152 kB / 0.6974 GB, free: 12.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.1645, allocations: 0 / 0.6974 GB, free: 12.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1645, allocations: 0 / 0.6974 GB, free: 12.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.489e-06/0.1645, allocations: 4 kB / 0.6974 GB, free: 12.51 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.0006091/0.1651, allocations: 496.2 kB / 0.6979 GB, free: 11.97 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.1652, allocations: 8.031 kB / 0.6979 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.843e-05/0.1652, allocations: 16.75 kB / 0.6979 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.1655, allocations: 245 kB / 0.6981 GB, free: 11.67 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.1655, allocations: 4.375 kB / 0.6981 GB, free: 11.67 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.1655, allocations: 4.125 kB / 0.6981 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.1657, allocations: 108.1 kB / 0.6982 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1658, allocations: 4 kB / 0.6982 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.1658, allocations: 4 kB / 0.6982 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.1658, allocations: 0 / 0.6982 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.1659, allocations: 35.92 kB / 0.6983 GB, free: 11.5 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004839/0.1664, allocations: 356.6 kB / 0.6986 GB, free: 11.1 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.1666, allocations: 86.75 kB / 0.6987 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.395e-05/0.1667, allocations: 40.78 kB / 0.6987 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.1667, allocations: 0 / 0.6987 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/0.1669, allocations: 79.36 kB / 0.6988 GB, free: 10.88 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.1669, allocations: 0 / 0.6988 GB, free: 10.88 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0003262/0.1673, allocations: 141.5 kB / 0.6989 GB, free: 10.73 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.1673, allocations: 106.8 kB / 0.699 GB, free: 10.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.1676, allocations: 268 kB / 0.6993 GB, free: 10.33 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.1676, allocations: 25.7 kB / 0.6993 GB, free: 10.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.064e-05/0.1677, allocations: 116.1 kB / 0.6994 GB, free: 10.18 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.1678, allocations: 19.7 kB / 0.6995 GB, free: 10.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.1678, allocations: 29.7 kB / 0.6995 GB, free: 10.13 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.168, allocations: 334.8 kB / 0.6998 GB, free: 9.793 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.183e-05/0.168, allocations: 23.98 kB / 0.6998 GB, free: 9.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.975e-05/0.1681, allocations: 68.27 kB / 0.6999 GB, free: 9.688 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.1683, allocations: 69.64 kB / 0.7 GB, free: 9.613 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1683, allocations: 3.938 kB / 0.7 GB, free: 9.609 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002092/0.1685, allocations: 109.5 kB / 0.7001 GB, free: 9.496 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.1685, allocations: 12.02 kB / 0.7001 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1685, allocations: 0 / 0.7001 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1686, allocations: 8.031 kB / 0.7001 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.221e-05/0.1686, allocations: 11.94 kB / 0.7001 GB, free: 9.465 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1687, allocations: 4 kB / 0.7001 GB, free: 9.461 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.312e-05/0.1687, allocations: 15.86 kB / 0.7001 GB, free: 9.445 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.1687, allocations: 4 kB / 0.7001 GB, free: 9.441 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.0001264/0.1689, allocations: 145.5 kB / 0.7003 GB, free: 9.297 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.179e-05/0.1689, allocations: 23.81 kB / 0.7003 GB, free: 9.273 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.169, allocations: 21.33 kB / 0.7003 GB, free: 9.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.169, allocations: 4 kB / 0.7003 GB, free: 9.246 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.169, allocations: 0 / 0.7003 GB, free: 9.246 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.169, allocations: 3.938 kB / 0.7003 GB, free: 9.242 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.1692, allocations: 217.6 kB / 0.7005 GB, free: 8.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1692, allocations: 0 / 0.7005 GB, free: 8.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.1692, allocations: 12 kB / 0.7005 GB, free: 8.969 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1693, allocations: 0 / 0.7005 GB, free: 8.969 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.1693, allocations: 7.984 kB / 0.7005 GB, free: 8.961 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1693, allocations: 0 / 0.7005 GB, free: 8.961 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1693, allocations: 4 kB / 0.7005 GB, free: 8.957 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.1695, allocations: 141.2 kB / 0.7007 GB, free: 8.801 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.1696, allocations: 92.91 kB / 0.7008 GB, free: 8.691 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.1696, allocations: 8 kB / 0.7008 GB, free: 8.684 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.238e-05/0.1697, allocations: 3.984 kB / 0.7008 GB, free: 8.68 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.1697, allocations: 7.984 kB / 0.7008 GB, free: 8.672 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.1698, allocations: 7.938 kB / 0.7008 GB, free: 8.664 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001838/0.17, allocations: 203.3 kB / 0.701 GB, free: 8.465 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.17, allocations: 0 / 0.701 GB, free: 8.465 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002295/0.1702, allocations: 35.94 kB / 0.701 GB, free: 8.43 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.001435/0.1716, allocations: 434.1 kB / 0.7014 GB, free: 8.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002073/0.1719, allocations: 71.89 kB / 0.7015 GB, free: 8.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1719, allocations: 0 / 0.7015 GB, free: 8.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.153e-05/0.172, allocations: 43.98 kB / 0.7015 GB, free: 8.047 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.1722, allocations: 35.97 kB / 0.7016 GB, free: 8.012 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005142/0.1728, allocations: 360.4 kB / 0.7019 GB, free: 7.629 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1731, allocations: 0.7201 MB / 0.7026 GB, free: 6.883 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.613e-05/0.1731, allocations: 19.42 kB / 0.7026 GB, free: 6.863 MB / 0.545 GB Notification: Performance of SimCode: time 2.6e-07/0.1732, allocations: 0 / 0.7026 GB, free: 6.863 MB / 0.545 GB Notification: Performance of Templates: time 0.004344/0.1775, allocations: 2.599 MB / 0.7052 GB, free: 4.273 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)