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.001105/0.001105, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.0009927/0.0009927, allocations: 191 kB / 17.29 MB, free: 5.516 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.234/1.234, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002129/0.002129, allocations: 290.6 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.888/0.888, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 102.1 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1557, allocations: 86.96 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002769/0.1585, allocations: 1.768 MB / 0.6833 GB, free: 5.688 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.16, allocations: 1.112 MB / 0.6844 GB, free: 4.566 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.799e-05/0.1601, allocations: 3.938 kB / 0.6844 GB, free: 4.562 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002344/0.1603, allocations: 55.73 kB / 0.6845 GB, free: 4.508 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.1605, allocations: 75.66 kB / 0.6845 GB, free: 4.434 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.1611, allocations: 230.5 kB / 0.6847 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001681/0.1612, allocations: 143.6 kB / 0.6849 GB, free: 4.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.265e-05/0.1613, allocations: 33.06 kB / 0.6849 GB, free: 4.039 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.873e-05/0.1614, allocations: 55.78 kB / 0.685 GB, free: 3.984 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.141e-05/0.1615, allocations: 71.69 kB / 0.685 GB, free: 3.914 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.1615, allocations: 8 kB / 0.685 GB, free: 3.906 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.1617, allocations: 71.94 kB / 0.6851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.578e-05/0.1618, allocations: 39.84 kB / 0.6852 GB, free: 3.797 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.986e-05/0.1618, allocations: 55.66 kB / 0.6852 GB, free: 3.742 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.1621, allocations: 203.3 kB / 0.6854 GB, free: 3.543 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1621, allocations: 0 / 0.6854 GB, free: 3.543 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1621, allocations: 0 / 0.6854 GB, free: 3.543 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1621, allocations: 0 / 0.6854 GB, free: 3.543 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.0005485/0.1627, allocations: 0.4924 MB / 0.6859 GB, free: 2.996 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.727e-05/0.1627, allocations: 8.031 kB / 0.6859 GB, free: 2.988 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.1627, allocations: 16.75 kB / 0.6859 GB, free: 2.973 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.163, allocations: 248.9 kB / 0.6861 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.1631, allocations: 384 / 0.6861 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.1631, allocations: 12.12 kB / 0.6862 GB, free: 2.676 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.1633, allocations: 92.22 kB / 0.6862 GB, free: 2.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.1633, allocations: 4 kB / 0.6862 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.1633, allocations: 0 / 0.6862 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.1633, allocations: 8 kB / 0.6863 GB, free: 2.559 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.47e-05/0.1634, allocations: 35.92 kB / 0.6863 GB, free: 2.523 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004487/0.1639, allocations: 360.5 kB / 0.6866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/0.1641, allocations: 90.69 kB / 0.6867 GB, free: 2.023 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.564e-05/0.1642, allocations: 36.84 kB / 0.6868 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.1642, allocations: 0 / 0.6868 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.1644, allocations: 83.36 kB / 0.6868 GB, free: 1.891 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.1644, allocations: 0 / 0.6868 GB, free: 1.891 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003109/0.1647, allocations: 137.4 kB / 0.687 GB, free: 1.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.1648, allocations: 102.8 kB / 0.6871 GB, free: 1.625 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.1651, allocations: 267.7 kB / 0.6873 GB, free: 1.355 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.1651, allocations: 29.7 kB / 0.6873 GB, free: 1.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.954e-05/0.1652, allocations: 120.1 kB / 0.6875 GB, free: 1.199 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.1652, allocations: 23.66 kB / 0.6875 GB, free: 1.176 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.46e-05/0.1653, allocations: 29.69 kB / 0.6875 GB, free: 1.141 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1654, allocations: 330.8 kB / 0.6878 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.979e-05/0.1655, allocations: 27.98 kB / 0.6879 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.946e-05/0.1656, allocations: 72.27 kB / 0.6879 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.1657, allocations: 69.64 kB / 0.688 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1657, allocations: 0 / 0.688 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002036/0.1659, allocations: 117.7 kB / 0.6881 GB, free: 0.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.1659, allocations: 5.719 kB / 0.6881 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.1659, allocations: 0 / 0.6881 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.327e-06/0.166, allocations: 4.031 kB / 0.6881 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.187e-05/0.166, allocations: 12 kB / 0.6881 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1661, allocations: 4.062 kB / 0.6881 GB, free: 488 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.076e-05/0.1661, allocations: 11.92 kB / 0.6881 GB, free: 476 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.1661, allocations: 4 kB / 0.6881 GB, free: 472 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.0001093/0.1663, allocations: 138.8 kB / 0.6883 GB, free: 324 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.1663, allocations: 15.81 kB / 0.6883 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.1663, allocations: 21.39 kB / 0.6883 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.1663, allocations: 0 / 0.6883 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1664, allocations: 8 kB / 0.6883 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1664, allocations: 3.938 kB / 0.6883 GB, free: 272 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.1665, allocations: 221.6 kB / 0.6885 GB, free: 0 / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1665, allocations: 0 / 0.6885 GB, free: 0 / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2332/0.3997, allocations: 6.578 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.3998, allocations: 0.5938 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.3998, allocations: 6.719 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3998, allocations: 0.5625 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3998, allocations: 1.266 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.4001, allocations: 137.6 kB / 0.6887 GB, free: 18.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/0.4002, allocations: 98.75 kB / 0.6888 GB, free: 18.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.048e-05/0.4002, allocations: 4.266 kB / 0.6888 GB, free: 18.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.843e-05/0.4003, allocations: 6.438 kB / 0.6888 GB, free: 18.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.4003, allocations: 10.84 kB / 0.6888 GB, free: 18.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.4004, allocations: 7.094 kB / 0.6888 GB, free: 18.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.4005, allocations: 198.6 kB / 0.689 GB, free: 18.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4006, allocations: 1.594 kB / 0.689 GB, free: 18.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002991/0.4009, allocations: 41.31 kB / 0.689 GB, free: 18.03 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.0008643/0.4017, allocations: 417.2 kB / 0.6894 GB, free: 17.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.4019, allocations: 66.95 kB / 0.6895 GB, free: 17.91 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.402, allocations: 8.344 kB / 0.6895 GB, free: 17.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.308e-05/0.402, allocations: 39.78 kB / 0.6895 GB, free: 17.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.4023, allocations: 39.09 kB / 0.6896 GB, free: 17.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004427/0.4028, allocations: 291.2 kB / 0.6898 GB, free: 17.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.4029, allocations: 0.7225 MB / 0.6906 GB, free: 17.05 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.682e-05/0.403, allocations: 20.45 kB / 0.6906 GB, free: 17.05 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.052e-05/0.4031, allocations: 24.27 kB / 0.6906 GB, free: 17.05 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4031, allocations: 0.9375 kB / 0.6906 GB, free: 17.05 MB / 494.1 MB Notification: Performance of Templates: time 0.005378/0.4084, allocations: 2.54 MB / 0.6931 GB, free: 16.89 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)