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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 108 kB / 15.61 MB, free: 152 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.001179/0.001179, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.215/1.215, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.61/1.61, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.001334/0.001334, allocations: 65.94 kB / 0.6716 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1776, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002448/0.1801, allocations: 1.586 MB / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.1812, allocations: 0.7344 MB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.1812, allocations: 0 / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.886e-05/0.1813, allocations: 15.81 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.676e-05/0.1814, allocations: 19.8 kB / 0.7858 GB, free: 11.03 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.0003564/0.1817, allocations: 107.7 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.1819, allocations: 139.5 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.182, allocations: 33.11 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.402e-05/0.1821, allocations: 51.84 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.77e-05/0.1822, allocations: 67.67 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.23e-05/0.1822, allocations: 12 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.1823, allocations: 55.97 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.425e-05/0.1824, allocations: 27.84 kB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.617e-05/0.1825, allocations: 59.66 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.1827, allocations: 171.7 kB / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1827, allocations: 0 / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.172e-06/0.1827, allocations: 0 / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.1827, allocations: 0 / 0.7865 GB, free: 10.32 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.000733/0.1834, allocations: 0.5467 MB / 0.787 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1835, allocations: 12.03 kB / 0.787 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.265e-05/0.1835, allocations: 34.75 kB / 0.787 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.354e-05/0.1836, allocations: 16.83 kB / 0.7871 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.1837, allocations: 220 kB / 0.7873 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1838, allocations: 8.375 kB / 0.7873 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.1838, allocations: 12.31 kB / 0.7873 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.1841, allocations: 135.4 kB / 0.7874 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1841, allocations: 3.984 kB / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.1841, allocations: 7.984 kB / 0.7874 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1841, allocations: 7.938 kB / 0.7874 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.1844, allocations: 63.94 kB / 0.7875 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005433/0.1849, allocations: 468.7 kB / 0.788 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.1851, allocations: 85.11 kB / 0.788 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.1852, allocations: 45.81 kB / 0.7881 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.1853, allocations: 4 kB / 0.7881 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/0.1856, allocations: 145 kB / 0.7882 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.1856, allocations: 0 / 0.7882 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005214/0.1861, allocations: 185.3 kB / 0.7884 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.1862, allocations: 81.09 kB / 0.7885 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.1863, allocations: 162.3 kB / 0.7886 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.1863, allocations: 33.7 kB / 0.7887 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.805e-05/0.1864, allocations: 116.3 kB / 0.7888 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.1864, allocations: 27.64 kB / 0.7888 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.1865, allocations: 37.7 kB / 0.7888 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.971e-05/0.1866, allocations: 322.8 kB / 0.7891 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.1867, allocations: 35.97 kB / 0.7892 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1869, allocations: 122.2 kB / 0.7893 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.1872, allocations: 147.7 kB / 0.7894 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1872, allocations: 3.938 kB / 0.7894 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003444/0.1875, allocations: 165.2 kB / 0.7896 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.1875, allocations: 4 kB / 0.7896 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1875, allocations: 4.281 kB / 0.7896 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1876, allocations: 8 kB / 0.7896 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.55e-05/0.1877, allocations: 11.98 kB / 0.7896 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1877, allocations: 7.938 kB / 0.7896 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.434e-05/0.1878, allocations: 19.92 kB / 0.7896 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1878, allocations: 8 kB / 0.7897 GB, free: 6.703 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.312e-05/0.1879, allocations: 129.8 kB / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.786e-05/0.1879, allocations: 12.19 kB / 0.7898 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.229e-05/0.188, allocations: 25.39 kB / 0.7898 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.188, allocations: 4 kB / 0.7898 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.188, allocations: 0 / 0.7898 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.188, allocations: 7.875 kB / 0.7898 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006109/0.1886, allocations: 0.5291 MB / 0.7903 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1886, allocations: 0 / 0.7903 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.247e-05/0.1887, allocations: 31.92 kB / 0.7904 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.1887, allocations: 3.984 kB / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.1887, allocations: 3.984 kB / 0.7904 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1887, allocations: 4 kB / 0.7904 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1888, allocations: 0 / 0.7904 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003751/0.1891, allocations: 322.5 kB / 0.7907 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.947e-05/0.1892, allocations: 96.84 kB / 0.7908 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.1892, allocations: 0 / 0.7908 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.1894, allocations: 15.98 kB / 0.7908 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.1894, allocations: 11.92 kB / 0.7908 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.1895, allocations: 11.98 kB / 0.7908 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.55e-05/0.1895, allocations: 128.2 kB / 0.7909 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1896, allocations: 4 kB / 0.7909 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003191/0.1899, allocations: 32 kB / 0.791 GB, free: 5.242 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.0008435/0.1907, allocations: 0.9527 MB / 0.7919 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003455/0.1911, allocations: 115.8 kB / 0.792 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.1911, allocations: 4 kB / 0.792 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.1913, allocations: 63.83 kB / 0.7921 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.1916, allocations: 23.36 kB / 0.7921 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.1935, allocations: 1.881 MB / 0.7939 GB, free: 2.082 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.1938, allocations: 0.7157 MB / 0.7946 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.927e-05/0.1938, allocations: 20.48 kB / 0.7947 GB, free: 1.32 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.45e-05/0.1939, allocations: 43.42 kB / 0.7947 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.1939, allocations: 0 / 0.7947 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.2128, allocations: 3.374 MB / 0.798 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.826/10.04, allocations: 6.406 kB / 0.798 GB, free: 13.98 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)