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.001153/0.001153, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001176/0.001176, allocations: 193.8 kB / 16.25 MB, free: 6.617 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.223/1.223, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.621/1.621, allocations: 292.3 MB / 0.5486 GB, free: 13.64 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.001233/0.001233, allocations: 65.92 kB / 0.6711 GB, free: 26.38 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1872, allocations: 114.6 MB / 0.783 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002548/0.1898, allocations: 1.644 MB / 0.7846 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001127/0.1909, allocations: 0.7295 MB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.136e-05/0.191, allocations: 0 / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.335e-05/0.1911, allocations: 11.88 kB / 0.7853 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.719e-05/0.1911, allocations: 15.86 kB / 0.7853 GB, free: 11.38 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.0003403/0.1915, allocations: 95.83 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.1916, allocations: 139.6 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.782e-05/0.1917, allocations: 33.09 kB / 0.7856 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.213e-05/0.1918, allocations: 51.78 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.954e-05/0.1919, allocations: 63.73 kB / 0.7857 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.1919, allocations: 16 kB / 0.7857 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.192, allocations: 59.89 kB / 0.7858 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.601e-05/0.1921, allocations: 23.92 kB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.041e-05/0.1921, allocations: 59.66 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.1923, allocations: 167.7 kB / 0.786 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.195e-06/0.1923, allocations: 0 / 0.786 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.82e-07/0.1924, allocations: 0 / 0.786 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.447e-06/0.1924, allocations: 0 / 0.786 GB, free: 10.69 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.0006854/0.1931, allocations: 0.5467 MB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.747e-05/0.1931, allocations: 8.031 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.31e-05/0.1931, allocations: 42.73 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.865e-05/0.1932, allocations: 12.84 kB / 0.7866 GB, free: 10 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.1933, allocations: 216 kB / 0.7868 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.1934, allocations: 12.31 kB / 0.7868 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.1934, allocations: 12.38 kB / 0.7868 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002567/0.1936, allocations: 131.5 kB / 0.7869 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1937, allocations: 3.984 kB / 0.787 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1937, allocations: 7.938 kB / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.1937, allocations: 0 / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002159/0.1939, allocations: 67.94 kB / 0.787 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005318/0.1944, allocations: 460.7 kB / 0.7875 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.1946, allocations: 93.11 kB / 0.7876 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.1948, allocations: 45.81 kB / 0.7876 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.1948, allocations: 0 / 0.7876 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002822/0.1951, allocations: 145 kB / 0.7877 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.1951, allocations: 0 / 0.7877 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0004984/0.1956, allocations: 193.3 kB / 0.7879 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.1957, allocations: 81.11 kB / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.1958, allocations: 171.3 kB / 0.7882 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.1958, allocations: 29.7 kB / 0.7882 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.579e-05/0.1959, allocations: 108.3 kB / 0.7883 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.1959, allocations: 35.62 kB / 0.7883 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.196, allocations: 37.7 kB / 0.7884 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.1961, allocations: 322.8 kB / 0.7887 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1962, allocations: 39.91 kB / 0.7887 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.1964, allocations: 117.6 kB / 0.7888 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.1967, allocations: 155.5 kB / 0.789 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1967, allocations: 0 / 0.789 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003429/0.197, allocations: 165.2 kB / 0.7891 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.197, allocations: 4.281 kB / 0.7891 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1971, allocations: 8 kB / 0.7891 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.696e-06/0.1971, allocations: 0 / 0.7891 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.805e-05/0.1972, allocations: 19.92 kB / 0.7892 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1972, allocations: 11.98 kB / 0.7892 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.367e-05/0.1973, allocations: 15.94 kB / 0.7892 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.1973, allocations: 4 kB / 0.7892 GB, free: 7.074 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.801e-05/0.1974, allocations: 129.8 kB / 0.7893 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.1974, allocations: 23.75 kB / 0.7893 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.253e-05/0.1975, allocations: 21.39 kB / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1975, allocations: 4 kB / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.1975, allocations: 0 / 0.7894 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1975, allocations: 3.938 kB / 0.7894 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006299/0.1981, allocations: 0.5252 MB / 0.7899 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1982, allocations: 7.938 kB / 0.7899 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.028e-05/0.1982, allocations: 11.98 kB / 0.7899 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1982, allocations: 7.938 kB / 0.7899 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.1983, allocations: 4.047 kB / 0.7899 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.1983, allocations: 480 / 0.7899 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.1983, allocations: 7.984 kB / 0.7899 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003764/0.1987, allocations: 330.4 kB / 0.7902 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.1987, allocations: 96.8 kB / 0.7903 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.1987, allocations: 4 kB / 0.7903 GB, free: 5.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.1989, allocations: 11.98 kB / 0.7903 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.199, allocations: 11.98 kB / 0.7903 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.199, allocations: 11.98 kB / 0.7904 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.305e-05/0.1991, allocations: 123.2 kB / 0.7905 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.51e-07/0.1991, allocations: 4 kB / 0.7905 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003237/0.1994, allocations: 36 kB / 0.7905 GB, free: 5.609 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.0008536/0.2003, allocations: 0.9404 MB / 0.7914 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003197/0.2006, allocations: 111.8 kB / 0.7915 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2006, allocations: 0 / 0.7915 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.2008, allocations: 59.88 kB / 0.7916 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.2011, allocations: 27.61 kB / 0.7916 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.2031, allocations: 1.927 MB / 0.7935 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.2034, allocations: 0.7157 MB / 0.7942 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.915e-05/0.2034, allocations: 24.53 kB / 0.7942 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.524e-05/0.2035, allocations: 35.62 kB / 0.7943 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of SimCode: time 3.41e-07/0.2035, allocations: 3.938 kB / 0.7943 GB, free: 1.625 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01252/0.216, allocations: 3.222 MB / 0.7974 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/0.2162, allocations: 245 kB / 0.7976 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/1.929, allocations: 0 / 0.7976 GB, free: 14.25 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)