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.001292/0.001292, allocations: 114.6 kB / 16.37 MB, free: 6.012 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.001536/0.001536, allocations: 192.6 kB / 17.31 MB, free: 5.613 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.261/1.261, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002047/0.002047, allocations: 285.5 kB / 291.4 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 0.8948/0.8948, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 90.52 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1567, allocations: 86.99 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003128/0.1599, allocations: 1.764 MB / 0.6833 GB, free: 5.676 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.1615, allocations: 1.112 MB / 0.6844 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.169e-05/0.1616, allocations: 0 / 0.6844 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.1619, allocations: 51.75 kB / 0.6845 GB, free: 4.504 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.1621, allocations: 87.66 kB / 0.6845 GB, free: 4.418 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.1626, allocations: 214.5 kB / 0.6848 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.1628, allocations: 147.7 kB / 0.6849 GB, free: 4.066 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.994e-05/0.1629, allocations: 33.09 kB / 0.6849 GB, free: 4.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.618e-05/0.163, allocations: 67.69 kB / 0.685 GB, free: 3.969 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1631, allocations: 71.69 kB / 0.6851 GB, free: 3.898 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.1632, allocations: 4 kB / 0.6851 GB, free: 3.895 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1633, allocations: 63.97 kB / 0.6851 GB, free: 3.832 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.708e-05/0.1634, allocations: 35.89 kB / 0.6852 GB, free: 3.797 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.587e-05/0.1635, allocations: 63.55 kB / 0.6852 GB, free: 3.734 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002367/0.1637, allocations: 203.4 kB / 0.6854 GB, free: 3.535 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1637, allocations: 0 / 0.6854 GB, free: 3.535 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1637, allocations: 0 / 0.6854 GB, free: 3.535 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1637, allocations: 8 kB / 0.6854 GB, free: 3.527 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.0005697/0.1643, allocations: 484.3 kB / 0.6859 GB, free: 3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.1644, allocations: 12.03 kB / 0.6859 GB, free: 2.988 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.997e-05/0.1644, allocations: 16.75 kB / 0.6859 GB, free: 2.973 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.1647, allocations: 244.9 kB / 0.6861 GB, free: 2.691 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.1647, allocations: 8.375 kB / 0.6862 GB, free: 2.684 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.1647, allocations: 16.09 kB / 0.6862 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.1649, allocations: 100.1 kB / 0.6863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.7e-06/0.165, allocations: 0 / 0.6863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.165, allocations: 4 kB / 0.6863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.165, allocations: 0 / 0.6863 GB, free: 2.551 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.974e-05/0.1651, allocations: 31.98 kB / 0.6863 GB, free: 2.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000468/0.1656, allocations: 360.6 kB / 0.6866 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.1658, allocations: 94.62 kB / 0.6867 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.95e-05/0.1659, allocations: 32.84 kB / 0.6868 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.1659, allocations: 0 / 0.6868 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.166, allocations: 79.38 kB / 0.6868 GB, free: 1.891 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.1661, allocations: 0 / 0.6868 GB, free: 1.891 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003236/0.1664, allocations: 145.4 kB / 0.687 GB, free: 1.742 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.1665, allocations: 106.8 kB / 0.6871 GB, free: 1.613 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.1667, allocations: 259.7 kB / 0.6873 GB, free: 1.352 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.1667, allocations: 29.7 kB / 0.6874 GB, free: 1.316 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.322e-05/0.1668, allocations: 112.1 kB / 0.6875 GB, free: 1.203 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.1668, allocations: 31.62 kB / 0.6875 GB, free: 1.172 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.1669, allocations: 21.72 kB / 0.6875 GB, free: 1.145 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.167, allocations: 338.8 kB / 0.6878 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.722e-05/0.1671, allocations: 27.98 kB / 0.6879 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.996e-05/0.1672, allocations: 68.22 kB / 0.6879 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.1673, allocations: 69.69 kB / 0.688 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1673, allocations: 0 / 0.688 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002017/0.1675, allocations: 113.7 kB / 0.6881 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1676, allocations: 8.031 kB / 0.6881 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1676, allocations: 0 / 0.6881 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.1676, allocations: 4 kB / 0.6881 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.488e-05/0.1677, allocations: 11.98 kB / 0.6881 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.1677, allocations: 4.078 kB / 0.6881 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.282e-05/0.1678, allocations: 7.922 kB / 0.6881 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.1678, allocations: 11.98 kB / 0.6881 GB, free: 468 kB / 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.0001145/0.1679, allocations: 142.8 kB / 0.6883 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.1679, allocations: 19.81 kB / 0.6883 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.13e-05/0.168, allocations: 17.39 kB / 0.6883 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.168, allocations: 8.125 kB / 0.6883 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.168, allocations: 0 / 0.6883 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.168, allocations: 7.875 kB / 0.6883 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2481/0.4162, allocations: 217.6 kB / 0.6885 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4162, allocations: 3.828 kB / 0.6885 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.901e-05/0.4163, allocations: 5.703 kB / 0.6886 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.4163, allocations: 0.5312 kB / 0.6886 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.4163, allocations: 2.141 kB / 0.6886 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.4163, allocations: 1.234 kB / 0.6886 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4163, allocations: 2.281 kB / 0.6886 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.4167, allocations: 144.4 kB / 0.6887 GB, free: 18.16 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.4168, allocations: 93.61 kB / 0.6888 GB, free: 18.07 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.4168, allocations: 7.188 kB / 0.6888 GB, free: 18.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.4169, allocations: 2.953 kB / 0.6888 GB, free: 18.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.4169, allocations: 13.58 kB / 0.6888 GB, free: 18.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.417, allocations: 6.484 kB / 0.6888 GB, free: 18.07 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002024/0.4172, allocations: 194.9 kB / 0.689 GB, free: 18 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4172, allocations: 0 / 0.689 GB, free: 18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003347/0.4175, allocations: 41.58 kB / 0.689 GB, free: 18 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.0009587/0.4185, allocations: 413 kB / 0.6894 GB, free: 17.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.4187, allocations: 70.42 kB / 0.6895 GB, free: 17.88 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4188, allocations: 2.875 kB / 0.6895 GB, free: 17.88 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.177e-05/0.4188, allocations: 42.31 kB / 0.6895 GB, free: 17.88 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.4191, allocations: 49.58 kB / 0.6896 GB, free: 17.87 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000516/0.4197, allocations: 289.5 kB / 0.6899 GB, free: 17.71 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001592/0.4198, allocations: 0.7216 MB / 0.6906 GB, free: 17.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.919e-05/0.4199, allocations: 22.73 kB / 0.6906 GB, free: 17.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.368e-05/0.42, allocations: 18.62 kB / 0.6906 GB, free: 17.01 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.42, allocations: 2.688 kB / 0.6906 GB, free: 17.01 MB / 494.1 MB Notification: Performance of Templates: time 0.006458/0.4265, allocations: 2.539 MB / 0.6931 GB, free: 16.85 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)