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.001386/0.001386, 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.001419/0.00142, allocations: 196.9 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.346/1.346, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.617/1.617, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001414/0.001415, allocations: 71.31 kB / 0.6716 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1859, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002562/0.1885, allocations: 1.578 MB / 0.785 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.1896, allocations: 0.7422 MB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.969e-05/0.1897, allocations: 0 / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.537e-05/0.1898, allocations: 15.75 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.965e-05/0.1898, allocations: 23.78 kB / 0.7858 GB, free: 11 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.0003842/0.1902, allocations: 107.7 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.1904, allocations: 135.6 kB / 0.786 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.1906, allocations: 33.09 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.75e-05/0.1906, allocations: 63.7 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.174e-05/0.1907, allocations: 59.77 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.18e-05/0.1908, allocations: 12 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.1909, allocations: 55.95 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.893e-05/0.1909, allocations: 27.91 kB / 0.7862 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.251e-05/0.191, allocations: 59.66 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.1912, allocations: 167.7 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1912, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.21e-07/0.1912, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.1912, allocations: 0 / 0.7865 GB, free: 10.29 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.0007599/0.192, allocations: 0.5467 MB / 0.787 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1921, allocations: 12.03 kB / 0.787 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.1921, allocations: 34.73 kB / 0.787 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.1921, allocations: 12.84 kB / 0.7871 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.1923, allocations: 227.9 kB / 0.7873 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.1923, allocations: 8.375 kB / 0.7873 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.1924, allocations: 12.38 kB / 0.7873 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.1926, allocations: 134.7 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1927, allocations: 0 / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.1927, allocations: 3.938 kB / 0.7874 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1927, allocations: 4 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.1929, allocations: 71.88 kB / 0.7875 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005407/0.1935, allocations: 468.6 kB / 0.7879 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.1937, allocations: 81.19 kB / 0.788 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.1938, allocations: 45.81 kB / 0.7881 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.1938, allocations: 7.984 kB / 0.7881 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.1941, allocations: 152.9 kB / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.1941, allocations: 0 / 0.7882 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005405/0.1947, allocations: 181.6 kB / 0.7884 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.1947, allocations: 89.14 kB / 0.7885 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.1948, allocations: 166.2 kB / 0.7886 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.1949, allocations: 33.7 kB / 0.7887 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/0.1949, allocations: 112.3 kB / 0.7888 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.195, allocations: 23.66 kB / 0.7888 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.265e-05/0.195, allocations: 33.7 kB / 0.7888 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.254e-05/0.1951, allocations: 326.8 kB / 0.7891 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.1953, allocations: 39.95 kB / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.1954, allocations: 114.4 kB / 0.7893 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.1957, allocations: 151.5 kB / 0.7894 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1957, allocations: 0 / 0.7894 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003381/0.1961, allocations: 169.5 kB / 0.7896 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.1961, allocations: 4 kB / 0.7896 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.1961, allocations: 4 kB / 0.7896 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1961, allocations: 4 kB / 0.7896 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.1962, allocations: 23.92 kB / 0.7896 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.1962, allocations: 7.984 kB / 0.7896 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.273e-05/0.1963, allocations: 15.92 kB / 0.7897 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.1964, allocations: 8 kB / 0.7897 GB, free: 6.668 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.532e-05/0.1965, allocations: 138.1 kB / 0.7898 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1965, allocations: 19.8 kB / 0.7898 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.026e-05/0.1965, allocations: 13.41 kB / 0.7898 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.1965, allocations: 4 kB / 0.7898 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1966, allocations: 0 / 0.7898 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1966, allocations: 7.922 kB / 0.7898 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006267/0.1972, allocations: 0.5327 MB / 0.7904 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1972, allocations: 0 / 0.7904 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.021e-05/0.1973, allocations: 15.98 kB / 0.7904 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1973, allocations: 3.938 kB / 0.7904 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.1973, allocations: 3.984 kB / 0.7904 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1973, allocations: 4 kB / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1973, allocations: 0 / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.1977, allocations: 326.5 kB / 0.7907 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.788e-05/0.1977, allocations: 92.86 kB / 0.7908 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.1978, allocations: 0 / 0.7908 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.1979, allocations: 20.06 kB / 0.7908 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.934e-05/0.198, allocations: 11.92 kB / 0.7908 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.198, allocations: 16 kB / 0.7908 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.092e-05/0.1981, allocations: 128.2 kB / 0.7909 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1981, allocations: 0 / 0.7909 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003159/0.1984, allocations: 35.98 kB / 0.791 GB, free: 5.207 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.0008504/0.1993, allocations: 0.9557 MB / 0.7919 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003332/0.1996, allocations: 115.8 kB / 0.792 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1996, allocations: 0 / 0.792 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.1998, allocations: 56.47 kB / 0.7921 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.2002, allocations: 19.98 kB / 0.7921 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.202, allocations: 1.881 MB / 0.7939 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.2022, allocations: 0.7157 MB / 0.7946 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.986e-05/0.2023, allocations: 24.53 kB / 0.7947 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.2024, allocations: 39.42 kB / 0.7947 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2024, allocations: 0 / 0.7947 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.2198, allocations: 3.383 MB / 0.798 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.376/7.596, allocations: 3.75 kB / 0.798 GB, free: 13.94 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)