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.001083/0.001083, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001165/0.001165, allocations: 191.9 kB / 16.25 MB, free: 6.625 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.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002106/0.002106, allocations: 282.5 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.967/0.967, allocations: 169.2 MB / 0.4978 GB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 96.86 kB / 0.5947 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1492, allocations: 86.99 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002905/0.1521, allocations: 1.815 MB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.1538, allocations: 1.082 MB / 0.6825 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.919e-05/0.1538, allocations: 8.594 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.1542, allocations: 51.86 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.1544, allocations: 72.45 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005432/0.155, allocations: 201.4 kB / 0.6828 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.1552, allocations: 151.5 kB / 0.6829 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.1553, allocations: 29.64 kB / 0.683 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.465e-05/0.1554, allocations: 59.78 kB / 0.683 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.1555, allocations: 75.67 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.1555, allocations: 4 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.1557, allocations: 67.95 kB / 0.6831 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.526e-05/0.1557, allocations: 43.84 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.906e-05/0.1558, allocations: 51.67 kB / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.1561, allocations: 203.6 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1561, allocations: 0 / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1561, allocations: 0 / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1561, allocations: 0 / 0.6834 GB, free: 13.16 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.000673/0.1568, allocations: 498.3 kB / 0.6839 GB, free: 12.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.1568, allocations: 8.031 kB / 0.6839 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.61e-05/0.1569, allocations: 16.75 kB / 0.6839 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.1572, allocations: 253.5 kB / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.1572, allocations: 384 / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.1572, allocations: 12.06 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.1574, allocations: 92.23 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.1575, allocations: 0 / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.1575, allocations: 4 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.1575, allocations: 7.984 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.1576, allocations: 31.92 kB / 0.6843 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004766/0.1581, allocations: 360.6 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.1583, allocations: 90.7 kB / 0.6847 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.565e-05/0.1584, allocations: 28.84 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.1584, allocations: 7.984 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.1586, allocations: 75.39 kB / 0.6849 GB, free: 11.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.694e-06/0.1586, allocations: 0 / 0.6849 GB, free: 11.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004036/0.159, allocations: 145.4 kB / 0.685 GB, free: 11.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.1591, allocations: 110.8 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.1594, allocations: 263 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.1594, allocations: 25.7 kB / 0.6854 GB, free: 10.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.659e-05/0.1595, allocations: 116.1 kB / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.1595, allocations: 19.66 kB / 0.6855 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.1596, allocations: 37.64 kB / 0.6855 GB, free: 10.77 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1597, allocations: 326.8 kB / 0.6859 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.802e-05/0.1598, allocations: 31.92 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.767e-05/0.1599, allocations: 72.27 kB / 0.6859 GB, free: 10.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.16, allocations: 73.94 kB / 0.686 GB, free: 10.24 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.16, allocations: 0 / 0.686 GB, free: 10.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002104/0.1602, allocations: 109.5 kB / 0.6861 GB, free: 10.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1603, allocations: 12.03 kB / 0.6861 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1603, allocations: 0 / 0.6861 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1603, allocations: 3.984 kB / 0.6861 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.64e-05/0.1604, allocations: 15.94 kB / 0.6862 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.1604, allocations: 0 / 0.6862 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.485e-05/0.1605, allocations: 11.94 kB / 0.6862 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.1605, allocations: 7.984 kB / 0.6862 GB, free: 10.08 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.000129/0.1606, allocations: 138.5 kB / 0.6863 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.1607, allocations: 15.86 kB / 0.6863 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.562e-05/0.1607, allocations: 29.39 kB / 0.6863 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.1607, allocations: 3.984 kB / 0.6864 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1607, allocations: 0 / 0.6864 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1607, allocations: 3.938 kB / 0.6864 GB, free: 9.879 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.1609, allocations: 221.6 kB / 0.6866 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1609, allocations: 0 / 0.6866 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.161, allocations: 4 kB / 0.6866 GB, free: 9.609 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.161, allocations: 0 / 0.6866 GB, free: 9.609 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.161, allocations: 0 / 0.6866 GB, free: 9.609 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.161, allocations: 4 kB / 0.6866 GB, free: 9.605 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.161, allocations: 11.92 kB / 0.6866 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002395/0.1613, allocations: 136.9 kB / 0.6867 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.449e-05/0.1613, allocations: 96.91 kB / 0.6868 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.1614, allocations: 0 / 0.6868 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.609e-05/0.1614, allocations: 8 kB / 0.6868 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.1615, allocations: 7.984 kB / 0.6868 GB, free: 9.312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.1615, allocations: 7.938 kB / 0.6868 GB, free: 9.305 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001668/0.1617, allocations: 196.6 kB / 0.687 GB, free: 9.113 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1617, allocations: 0 / 0.687 GB, free: 9.113 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1619, allocations: 39.94 kB / 0.6871 GB, free: 9.074 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.0009529/0.1629, allocations: 429.2 kB / 0.6875 GB, free: 8.809 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002251/0.1631, allocations: 71.91 kB / 0.6875 GB, free: 8.738 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1631, allocations: 0 / 0.6875 GB, free: 8.738 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.075e-05/0.1632, allocations: 35.92 kB / 0.6876 GB, free: 8.703 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.1635, allocations: 40.02 kB / 0.6876 GB, free: 8.664 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005422/0.1641, allocations: 326.9 kB / 0.6879 GB, free: 8.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.1644, allocations: 0.724 MB / 0.6886 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.121e-05/0.1645, allocations: 29.31 kB / 0.6887 GB, free: 7.543 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.007e-05/0.1646, allocations: 23.42 kB / 0.6887 GB, free: 7.52 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1646, allocations: 4 kB / 0.6887 GB, free: 7.516 MB / 494.1 MB Notification: Performance of Templates: time 0.005908/0.1705, allocations: 2.505 MB / 0.6911 GB, free: 5.047 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)