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.001472/0.001472, allocations: 105.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.001775/0.001775, allocations: 197.5 kB / 16.64 MB, free: 6.445 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.312/1.312, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.628/1.628, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001477/0.001477, allocations: 72 kB / 0.6718 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1995, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003072/0.2027, allocations: 1.589 MB / 0.7852 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001258/0.2039, allocations: 0.7344 MB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.879e-05/0.204, allocations: 0 / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.665e-05/0.2041, allocations: 15.81 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.718e-05/0.2042, allocations: 23.78 kB / 0.7859 GB, free: 10.89 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.0004277/0.2046, allocations: 103.7 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.2048, allocations: 139.5 kB / 0.7862 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.205, allocations: 36.84 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.205, allocations: 59.75 kB / 0.7863 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.859e-05/0.2051, allocations: 59.75 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.2052, allocations: 8 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.2053, allocations: 59.91 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.045e-05/0.2054, allocations: 39.83 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.5e-05/0.2054, allocations: 51.73 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.2056, allocations: 175.7 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2057, allocations: 0 / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2057, allocations: 0 / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.648e-06/0.2057, allocations: 0 / 0.7866 GB, free: 10.17 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.0008083/0.2065, allocations: 0.5467 MB / 0.7872 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2065, allocations: 8.031 kB / 0.7872 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.912e-05/0.2066, allocations: 42.73 kB / 0.7872 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.526e-05/0.2066, allocations: 12.84 kB / 0.7872 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.2069, allocations: 219.9 kB / 0.7874 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.2069, allocations: 8.375 kB / 0.7875 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.2069, allocations: 8.375 kB / 0.7875 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.2072, allocations: 138.8 kB / 0.7876 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.2072, allocations: 0 / 0.7876 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.2072, allocations: 4 kB / 0.7876 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2072, allocations: 0 / 0.7876 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.2075, allocations: 71.88 kB / 0.7877 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005737/0.2081, allocations: 476.6 kB / 0.7881 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.2082, allocations: 77.19 kB / 0.7882 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.2084, allocations: 49.81 kB / 0.7882 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.2084, allocations: 0 / 0.7882 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.2087, allocations: 149 kB / 0.7884 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.2087, allocations: 0 / 0.7884 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005202/0.2092, allocations: 189.3 kB / 0.7886 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.2093, allocations: 85.05 kB / 0.7886 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.2094, allocations: 166.3 kB / 0.7888 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.2095, allocations: 25.7 kB / 0.7888 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.904e-05/0.2095, allocations: 112.3 kB / 0.7889 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.2096, allocations: 28.02 kB / 0.789 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/0.2096, allocations: 45.7 kB / 0.789 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.2097, allocations: 318.8 kB / 0.7893 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.2099, allocations: 43.95 kB / 0.7894 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.2101, allocations: 125.6 kB / 0.7895 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.2103, allocations: 139.6 kB / 0.7896 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2103, allocations: 4 kB / 0.7896 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003525/0.2107, allocations: 169.2 kB / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.2107, allocations: 7.984 kB / 0.7898 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2107, allocations: 4 kB / 0.7898 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2108, allocations: 0 / 0.7898 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.2109, allocations: 19.92 kB / 0.7898 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.2109, allocations: 4.281 kB / 0.7898 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.415e-05/0.211, allocations: 23.92 kB / 0.7898 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.211, allocations: 4 kB / 0.7898 GB, free: 6.559 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.0001194/0.2111, allocations: 129.9 kB / 0.79 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.2112, allocations: 23.73 kB / 0.79 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.445e-05/0.2112, allocations: 17.41 kB / 0.79 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2112, allocations: 0 / 0.79 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.2112, allocations: 4 kB / 0.79 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2112, allocations: 3.938 kB / 0.79 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/0.2119, allocations: 0.5327 MB / 0.7905 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2119, allocations: 0 / 0.7905 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.693e-05/0.212, allocations: 11.98 kB / 0.7905 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.212, allocations: 3.938 kB / 0.7905 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.212, allocations: 11.98 kB / 0.7906 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.212, allocations: 0 / 0.7906 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.212, allocations: 4 kB / 0.7906 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.2125, allocations: 318.5 kB / 0.7909 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.223e-05/0.2125, allocations: 92.86 kB / 0.7909 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.2125, allocations: 0 / 0.7909 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.2127, allocations: 23.97 kB / 0.791 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.566e-05/0.2128, allocations: 11.98 kB / 0.791 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.2128, allocations: 11.94 kB / 0.791 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.431e-05/0.2129, allocations: 124.2 kB / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2129, allocations: 0 / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003339/0.2132, allocations: 39.98 kB / 0.7912 GB, free: 5.105 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.0009286/0.2142, allocations: 0.9537 MB / 0.7921 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003379/0.2145, allocations: 108.2 kB / 0.7922 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.2145, allocations: 4.062 kB / 0.7922 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.2147, allocations: 55.91 kB / 0.7922 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.2151, allocations: 26.88 kB / 0.7923 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.217, allocations: 1.885 MB / 0.7941 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.2173, allocations: 0.7158 MB / 0.7948 GB, free: 1.203 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.326e-05/0.2174, allocations: 20.53 kB / 0.7948 GB, free: 1.18 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.2175, allocations: 39.42 kB / 0.7949 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of SimCode: time 2.01e-07/0.2175, allocations: 0 / 0.7949 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01781/0.2353, allocations: 3.386 MB / 0.7982 GB, free: 13.85 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.148/7.383, allocations: 13.5 kB / 0.7982 GB, free: 13.84 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)