Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator") translateModel(Buildings.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008214/0.008214, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001448/0.001449, allocations: 196.5 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6128/0.6128, allocations: 95.48 MB / 365.4 MB, free: 9.773 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 74.08 kB / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1681, allocations: 69.09 MB / 0.5711 GB, free: 8.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.005692/0.1739, allocations: 1.76 MB / 0.5728 GB, free: 6.543 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002679/0.1766, allocations: 0.9291 MB / 0.5737 GB, free: 5.609 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002392/0.1769, allocations: 11.94 kB / 0.5737 GB, free: 5.598 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009535/0.1779, allocations: 151.6 kB / 0.5739 GB, free: 5.449 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004824/0.1784, allocations: 119.5 kB / 0.574 GB, free: 5.332 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005554/0.179, allocations: 139.2 kB / 0.5741 GB, free: 5.199 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002858/0.1793, allocations: 167.6 kB / 0.5743 GB, free: 5.035 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.1795, allocations: 21.11 kB / 0.5743 GB, free: 5.016 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.1796, allocations: 71.69 kB / 0.5744 GB, free: 4.945 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.1798, allocations: 75.67 kB / 0.5744 GB, free: 4.871 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.132e-05/0.1798, allocations: 8 kB / 0.5744 GB, free: 4.863 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000236/0.1801, allocations: 59.97 kB / 0.5745 GB, free: 4.805 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.1802, allocations: 47.83 kB / 0.5745 GB, free: 4.758 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1803, allocations: 67.55 kB / 0.5746 GB, free: 4.691 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.1808, allocations: 195.4 kB / 0.5748 GB, free: 4.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.1809, allocations: 3.984 kB / 0.5748 GB, free: 4.496 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1809, allocations: 0 / 0.5748 GB, free: 4.496 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.1809, allocations: 0 / 0.5748 GB, free: 4.496 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001262/0.1822, allocations: 496.2 kB / 0.5753 GB, free: 3.957 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.161e-05/0.1822, allocations: 11.98 kB / 0.5753 GB, free: 3.945 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.1823, allocations: 20.75 kB / 0.5753 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.1828, allocations: 256.7 kB / 0.5755 GB, free: 3.633 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.1829, allocations: 0 / 0.5755 GB, free: 3.633 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.1829, allocations: 4 kB / 0.5755 GB, free: 3.629 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.1831, allocations: 91.31 kB / 0.5756 GB, free: 3.527 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1832, allocations: 3.938 kB / 0.5756 GB, free: 3.523 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.1832, allocations: 4 kB / 0.5756 GB, free: 3.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.317e-05/0.1832, allocations: 0 / 0.5756 GB, free: 3.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.1833, allocations: 31.98 kB / 0.5757 GB, free: 3.488 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006532/0.184, allocations: 360.6 kB / 0.576 GB, free: 3.086 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001988/0.1842, allocations: 78.61 kB / 0.5761 GB, free: 3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.145e-05/0.1843, allocations: 32.84 kB / 0.5761 GB, free: 2.965 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.1843, allocations: 0 / 0.5761 GB, free: 2.965 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.1845, allocations: 83.39 kB / 0.5762 GB, free: 2.871 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.1845, allocations: 0 / 0.5762 GB, free: 2.871 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003578/0.1849, allocations: 145.3 kB / 0.5763 GB, free: 2.723 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.37e-05/0.185, allocations: 85.09 kB / 0.5764 GB, free: 2.621 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.1853, allocations: 260.4 kB / 0.5767 GB, free: 2.355 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.1853, allocations: 25.7 kB / 0.5767 GB, free: 2.324 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.1854, allocations: 120 kB / 0.5768 GB, free: 2.203 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.1855, allocations: 23.81 kB / 0.5768 GB, free: 2.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.306e-05/0.1855, allocations: 25.7 kB / 0.5769 GB, free: 2.148 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1857, allocations: 326.8 kB / 0.5772 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.166e-05/0.1857, allocations: 31.92 kB / 0.5772 GB, free: 1.789 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.663e-05/0.1858, allocations: 59.69 kB / 0.5773 GB, free: 1.719 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.186, allocations: 77.77 kB / 0.5773 GB, free: 1.637 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.186, allocations: 0 / 0.5773 GB, free: 1.637 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002194/0.1862, allocations: 117.3 kB / 0.5774 GB, free: 1.516 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.1863, allocations: 8.109 kB / 0.5774 GB, free: 1.508 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1863, allocations: 7.875 kB / 0.5775 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1863, allocations: 0 / 0.5775 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.314e-05/0.1864, allocations: 15.92 kB / 0.5775 GB, free: 1.484 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.1864, allocations: 4 kB / 0.5775 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.626e-05/0.1865, allocations: 7.938 kB / 0.5775 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.1865, allocations: 4.031 kB / 0.5775 GB, free: 1.469 MB / 446.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: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.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.0001406/0.1866, allocations: 145.8 kB / 0.5776 GB, free: 1.316 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.1867, allocations: 15.81 kB / 0.5776 GB, free: 1.301 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-05/0.1868, allocations: 25.31 kB / 0.5777 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.1868, allocations: 4 kB / 0.5777 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1868, allocations: 0 / 0.5777 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1868, allocations: 0 / 0.5777 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.187, allocations: 221.5 kB / 0.5779 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.187, allocations: 4 kB / 0.5779 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.275e-05/0.1871, allocations: 8 kB / 0.5779 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1871, allocations: 3.938 kB / 0.5779 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.1871, allocations: 11.92 kB / 0.5779 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1871, allocations: 0 / 0.5779 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1871, allocations: 0 / 0.5779 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.1874, allocations: 136.9 kB / 0.578 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.1875, allocations: 104.8 kB / 0.5781 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.1875, allocations: 3.938 kB / 0.5781 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.448e-05/0.1876, allocations: 8 kB / 0.5781 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.1877, allocations: 11.92 kB / 0.5782 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.1877, allocations: 4 kB / 0.5782 GB, free: 0.668 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.1879, allocations: 188.6 kB / 0.5783 GB, free: 496 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1879, allocations: 0 / 0.5783 GB, free: 496 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.1882, allocations: 35.97 kB / 0.5784 GB, free: 460 kB / 446.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: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.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.00105/0.1893, allocations: 430.1 kB / 0.5788 GB, free: 188 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002497/0.1895, allocations: 75.91 kB / 0.5789 GB, free: 112 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1895, allocations: 0 / 0.5789 GB, free: 112 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.005e-05/0.1896, allocations: 35.97 kB / 0.5789 GB, free: 76 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.19, allocations: 40.42 kB / 0.5789 GB, free: 40 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006035/0.1906, allocations: 287.1 kB / 0.5792 GB, free: 15.73 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.1909, allocations: 0.728 MB / 0.5799 GB, free: 14.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 8.26e-05/0.191, allocations: 21.72 kB / 0.5799 GB, free: 14.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/0.1911, allocations: 19.44 kB / 0.58 GB, free: 14.94 MB / 462.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1911, allocations: 0 / 0.58 GB, free: 14.94 MB / 462.1 MB Notification: Performance of Templates: time 0.006182/0.1973, allocations: 2.335 MB / 0.5822 GB, free: 12.62 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)