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.001371/0.001371, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001162/0.001163, allocations: 192.9 kB / 16.14 MB, free: 6.715 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.381/1.381, allocations: 205.1 MB / 222 MB, free: 4.988 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.601/1.601, allocations: 292.3 MB / 0.5484 GB, free: 13.69 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.001278/0.001278, allocations: 68.81 kB / 0.6709 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1807, allocations: 114.5 MB / 0.7828 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002727/0.1835, allocations: 1.644 MB / 0.7844 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.1846, allocations: 0.7296 MB / 0.7851 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.666e-05/0.1847, allocations: 0 / 0.7851 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.1848, allocations: 7.938 kB / 0.7851 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.281e-05/0.1849, allocations: 23.78 kB / 0.7851 GB, free: 11.51 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.0004002/0.1853, allocations: 95.84 kB / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001576/0.1855, allocations: 135.5 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.1856, allocations: 33.11 kB / 0.7854 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.897e-05/0.1857, allocations: 47.78 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.932e-05/0.1858, allocations: 59.73 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.1858, allocations: 8 kB / 0.7855 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1859, allocations: 43.97 kB / 0.7855 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.764e-05/0.186, allocations: 27.91 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.349e-05/0.1861, allocations: 63.58 kB / 0.7856 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.1863, allocations: 159.8 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1863, allocations: 0 / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.114e-06/0.1863, allocations: 0 / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.1863, allocations: 7.938 kB / 0.7858 GB, free: 10.84 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.0008947/0.1872, allocations: 0.539 MB / 0.7863 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.1873, allocations: 8.031 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.1873, allocations: 38.75 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.365e-05/0.1874, allocations: 24.73 kB / 0.7864 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.1876, allocations: 216 kB / 0.7866 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1876, allocations: 4.375 kB / 0.7866 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.1877, allocations: 12.38 kB / 0.7866 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.188, allocations: 129.5 kB / 0.7867 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.188, allocations: 4 kB / 0.7867 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.188, allocations: 7.984 kB / 0.7867 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.188, allocations: 0 / 0.7867 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002315/0.1883, allocations: 67.94 kB / 0.7868 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007512/0.189, allocations: 464.7 kB / 0.7873 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.1892, allocations: 89.11 kB / 0.7873 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.1894, allocations: 45.81 kB / 0.7874 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.1894, allocations: 0 / 0.7874 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.1897, allocations: 145 kB / 0.7875 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.1897, allocations: 0 / 0.7875 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.00055/0.1902, allocations: 193.5 kB / 0.7877 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.1903, allocations: 85.09 kB / 0.7878 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.1904, allocations: 163.3 kB / 0.7879 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.1905, allocations: 34.08 kB / 0.788 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.919e-05/0.1905, allocations: 108.3 kB / 0.7881 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.154e-05/0.1906, allocations: 27.75 kB / 0.7881 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.206e-05/0.1906, allocations: 41.64 kB / 0.7881 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1907, allocations: 334.8 kB / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.1909, allocations: 35.97 kB / 0.7885 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.1911, allocations: 125.2 kB / 0.7886 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.1913, allocations: 147.5 kB / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1914, allocations: 0 / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003541/0.1917, allocations: 169.4 kB / 0.7889 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.1917, allocations: 4 kB / 0.7889 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1917, allocations: 7.984 kB / 0.7889 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1918, allocations: 0 / 0.7889 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.1919, allocations: 15.98 kB / 0.7889 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.1919, allocations: 7.938 kB / 0.789 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.614e-05/0.192, allocations: 19.92 kB / 0.789 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.192, allocations: 8.156 kB / 0.789 GB, free: 7.234 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 0.0001058/0.1921, allocations: 130.5 kB / 0.7891 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.816e-05/0.1922, allocations: 15.81 kB / 0.7891 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.425e-05/0.1922, allocations: 21.39 kB / 0.7891 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1922, allocations: 0 / 0.7891 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.1922, allocations: 8 kB / 0.7891 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1922, allocations: 3.938 kB / 0.7891 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006603/0.1929, allocations: 0.5327 MB / 0.7897 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.1929, allocations: 0 / 0.7897 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.172e-05/0.193, allocations: 15.92 kB / 0.7897 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.193, allocations: 7.938 kB / 0.7897 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.193, allocations: 4 kB / 0.7897 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.193, allocations: 0 / 0.7897 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.193, allocations: 0 / 0.7897 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004632/0.1935, allocations: 318.5 kB / 0.79 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.1936, allocations: 96.84 kB / 0.7901 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.1936, allocations: 4 kB / 0.7901 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.1938, allocations: 19.98 kB / 0.7901 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.1938, allocations: 15.92 kB / 0.7901 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.1939, allocations: 11.98 kB / 0.7901 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.428e-05/0.1939, allocations: 119.2 kB / 0.7903 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1939, allocations: 0 / 0.7903 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003448/0.1943, allocations: 40.09 kB / 0.7903 GB, free: 5.781 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.0008808/0.1952, allocations: 0.9633 MB / 0.7912 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000309/0.1955, allocations: 99.86 kB / 0.7913 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.1955, allocations: 4 kB / 0.7913 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.1957, allocations: 60.45 kB / 0.7914 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.196, allocations: 15.98 kB / 0.7914 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.1983, allocations: 1.917 MB / 0.7933 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1985, allocations: 0.7121 MB / 0.794 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.364e-05/0.1986, allocations: 24.62 kB / 0.794 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.046e-05/0.1986, allocations: 35.42 kB / 0.794 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.1987, allocations: 0 / 0.794 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01289/0.2115, allocations: 3.146 MB / 0.7971 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.2118, allocations: 233.3 kB / 0.7973 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/1.975, allocations: 4 kB / 0.7973 GB, free: 14.5 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)