Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 101.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 190.7 kB / 16.64 MB, free: 6.594 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.092/1.092, allocations: 205.1 MB / 222.5 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.458/1.458, allocations: 292.3 MB / 0.549 GB, free: 12.78 MB / 462.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: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 66.77 kB / 0.6723 GB, free: 26.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1592, allocations: 114.5 MB / 0.7841 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002397/0.1616, allocations: 1.592 MB / 0.7857 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1627, allocations: 0.7344 MB / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.135e-05/0.1627, allocations: 4 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.249e-05/0.1628, allocations: 11.81 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.462e-05/0.1629, allocations: 19.78 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Utilities/IO/Files/BaseClasses/printRealArray.mo:2:1-45:19:writable] Warning: Pure function 'Buildings.Utilities.IO.Files.BaseClasses.printRealArray' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.1632, allocations: 111.8 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.1634, allocations: 135.5 kB / 0.7867 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1635, allocations: 36.89 kB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.245e-05/0.1636, allocations: 59.78 kB / 0.7868 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.937e-05/0.1637, allocations: 59.75 kB / 0.7868 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.1637, allocations: 12 kB / 0.7868 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.814e-05/0.1638, allocations: 51.89 kB / 0.7869 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.251e-05/0.1639, allocations: 31.91 kB / 0.7869 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.923e-05/0.1639, allocations: 59.66 kB / 0.787 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.1641, allocations: 175.3 kB / 0.7871 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1641, allocations: 4 kB / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1641, allocations: 0 / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.1641, allocations: 0 / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007054/0.1649, allocations: 0.5506 MB / 0.7877 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.715e-05/0.1649, allocations: 8.031 kB / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.124e-05/0.1649, allocations: 12.84 kB / 0.7877 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.1651, allocations: 223.9 kB / 0.7879 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.1652, allocations: 8.375 kB / 0.7879 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.1652, allocations: 12.38 kB / 0.7879 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.1654, allocations: 127.7 kB / 0.788 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.1655, allocations: 3.984 kB / 0.788 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.1655, allocations: 4 kB / 0.7881 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1655, allocations: 0 / 0.7881 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.1657, allocations: 71.88 kB / 0.7881 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005245/0.1662, allocations: 456.7 kB / 0.7886 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.1664, allocations: 101.1 kB / 0.7887 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.1665, allocations: 45.81 kB / 0.7887 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.1666, allocations: 0 / 0.7887 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.1668, allocations: 157 kB / 0.7888 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.1669, allocations: 0 / 0.7888 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0004706/0.1673, allocations: 189.3 kB / 0.789 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.1674, allocations: 85.05 kB / 0.7891 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.1675, allocations: 158.4 kB / 0.7893 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.1675, allocations: 29.7 kB / 0.7893 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.628e-05/0.1676, allocations: 112.3 kB / 0.7894 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.1676, allocations: 27.64 kB / 0.7894 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.1677, allocations: 37.7 kB / 0.7895 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.237e-05/0.1678, allocations: 326.8 kB / 0.7898 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.1679, allocations: 39.97 kB / 0.7898 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.1681, allocations: 114.3 kB / 0.7899 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.1683, allocations: 147.5 kB / 0.7901 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.1683, allocations: 4 kB / 0.7901 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003131/0.1686, allocations: 161.6 kB / 0.7902 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.1687, allocations: 8 kB / 0.7902 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.1687, allocations: 8.281 kB / 0.7902 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.1687, allocations: 0 / 0.7902 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.868e-05/0.1688, allocations: 23.86 kB / 0.7903 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1688, allocations: 7.984 kB / 0.7903 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.678e-05/0.1689, allocations: 15.94 kB / 0.7903 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.1689, allocations: 4 kB / 0.7903 GB, free: 6.113 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * 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 9.128e-05/0.169, allocations: 133.8 kB / 0.7904 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.169, allocations: 11.91 kB / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.1691, allocations: 25.39 kB / 0.7904 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1691, allocations: 0 / 0.7904 GB, free: 5.934 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1691, allocations: 4 kB / 0.7904 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1691, allocations: 7.875 kB / 0.7905 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005787/0.1697, allocations: 0.5326 MB / 0.791 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1697, allocations: 0 / 0.791 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.536e-05/0.1698, allocations: 15.98 kB / 0.791 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1698, allocations: 3.938 kB / 0.791 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.1698, allocations: 8 kB / 0.791 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1698, allocations: 0 / 0.791 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1698, allocations: 0 / 0.791 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.1701, allocations: 322.5 kB / 0.7913 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.931e-05/0.1702, allocations: 88.92 kB / 0.7914 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.1702, allocations: 7.938 kB / 0.7914 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.1704, allocations: 15.98 kB / 0.7914 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.638e-05/0.1704, allocations: 12.27 kB / 0.7914 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.1705, allocations: 11.98 kB / 0.7914 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.074e-05/0.1705, allocations: 128.2 kB / 0.7916 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1705, allocations: 0 / 0.7916 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003125/0.1709, allocations: 40 kB / 0.7916 GB, free: 4.656 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002959/0.1712, allocations: 208.7 kB / 0.7918 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002963/0.1715, allocations: 107.7 kB / 0.7919 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1715, allocations: 0 / 0.7919 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.1716, allocations: 56.47 kB / 0.792 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.1719, allocations: 23.98 kB / 0.792 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003422/0.1723, allocations: 243.6 kB / 0.7922 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.1725, allocations: 0.7157 MB / 0.7929 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.744e-05/0.1726, allocations: 24.53 kB / 0.7929 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.401e-05/0.1726, allocations: 15.44 kB / 0.7929 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of SimCode: time 1.91e-07/0.1726, allocations: 0 / 0.7929 GB, free: 3.254 MB / 0.6075 GB Notification: Performance of Templates: time 0.003978/0.1766, allocations: 1.772 MB / 0.7947 GB, free: 1.492 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)