Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.373/1.373, allocations: 252 MB / 267 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 182.3 kB / 326.6 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.4 MB / 0.5777 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007751/0.0007749, allocations: 96.84 kB / 0.6823 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004737/0.0004741, allocations: 12.14 kB / 0.7965 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2118, allocations: 106.3 MB / 0.9003 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001775/0.2136, allocations: 1.285 MB / 0.9016 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001239/0.2149, allocations: 0.6984 MB / 0.9022 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.456e-05/0.215, allocations: 3.938 kB / 0.9022 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 9.748e-05/0.2151, allocations: 7.875 kB / 0.9023 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.842e-05/0.2152, allocations: 15.86 kB / 0.9023 GB, free: 61.8 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.0004992/0.2157, allocations: 103.8 kB / 0.9024 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.2158, allocations: 115.6 kB / 0.9025 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.216, allocations: 29.09 kB / 0.9025 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.205e-05/0.2161, allocations: 39.84 kB / 0.9025 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.632e-05/0.2161, allocations: 63.73 kB / 0.9026 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.2162, allocations: 4 kB / 0.9026 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.2163, allocations: 39.92 kB / 0.9026 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.2163, allocations: 31.89 kB / 0.9027 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.2164, allocations: 41.64 kB / 0.9027 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.2165, allocations: 99.8 kB / 0.9028 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2166, allocations: 0 / 0.9028 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.512e-06/0.2166, allocations: 0 / 0.9028 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.588e-06/0.2166, allocations: 0 / 0.9028 GB, free: 61.23 MB / 0.6042 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.0007454/0.2173, allocations: 0.5392 MB / 0.9033 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.2174, allocations: 11.97 kB / 0.9034 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.2174, allocations: 46.55 kB / 0.9034 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.961e-05/0.2175, allocations: 19.77 kB / 0.9034 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.2177, allocations: 210.8 kB / 0.9036 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.2177, allocations: 8 kB / 0.9036 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.2178, allocations: 4 kB / 0.9036 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.2181, allocations: 142.1 kB / 0.9038 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2181, allocations: 0 / 0.9038 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.2181, allocations: 7.938 kB / 0.9038 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2181, allocations: 4 kB / 0.9038 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.2184, allocations: 79.88 kB / 0.9039 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005908/0.219, allocations: 468.8 kB / 0.9043 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.2192, allocations: 97.11 kB / 0.9044 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.2193, allocations: 53.81 kB / 0.9044 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.2194, allocations: 4 kB / 0.9044 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003071/0.2197, allocations: 156.9 kB / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.2197, allocations: 0 / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12): time 0.000553/0.2202, allocations: 209.3 kB / 0.9048 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.2203, allocations: 81.11 kB / 0.9049 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.2204, allocations: 154.9 kB / 0.905 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.2204, allocations: 37.69 kB / 0.9051 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.2205, allocations: 116.2 kB / 0.9052 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.2205, allocations: 31.64 kB / 0.9052 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-06/0.2205, allocations: 4 kB / 0.9052 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.467e-05/0.2206, allocations: 322.8 kB / 0.9055 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.2207, allocations: 47.95 kB / 0.9056 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.2209, allocations: 118.4 kB / 0.9057 GB, free: 58 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.221, allocations: 59.84 kB / 0.9057 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2211, allocations: 0 / 0.9057 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003397/0.2214, allocations: 193.4 kB / 0.9059 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.2214, allocations: 7.953 kB / 0.9059 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.2214, allocations: 7.984 kB / 0.9059 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.2215, allocations: 0 / 0.9059 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.2216, allocations: 20.36 kB / 0.9059 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.2216, allocations: 7.938 kB / 0.906 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.2217, allocations: 24.02 kB / 0.906 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.2217, allocations: 8.234 kB / 0.906 GB, free: 57.67 MB / 0.6042 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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.443e-05/0.2218, allocations: 133.8 kB / 0.9061 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.2219, allocations: 19.8 kB / 0.9061 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.2219, allocations: 21.36 kB / 0.9061 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2219, allocations: 0 / 0.9061 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2219, allocations: 0 / 0.9061 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2219, allocations: 7.984 kB / 0.9062 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005712/0.2225, allocations: 0.5406 MB / 0.9067 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2225, allocations: 0 / 0.9067 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.766e-05/0.2226, allocations: 27.92 kB / 0.9067 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.2226, allocations: 0 / 0.9067 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2226, allocations: 7.984 kB / 0.9067 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2226, allocations: 4 kB / 0.9067 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2226, allocations: 0 / 0.9067 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003539/0.223, allocations: 334.5 kB / 0.907 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.223, allocations: 92.88 kB / 0.9071 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.2231, allocations: 0 / 0.9071 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.2233, allocations: 31.97 kB / 0.9072 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.405e-05/0.2233, allocations: 7.984 kB / 0.9072 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.2234, allocations: 8 kB / 0.9072 GB, free: 56.35 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.679e-05/0.2234, allocations: 119.2 kB / 0.9073 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2234, allocations: 0 / 0.9073 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003186/0.2237, allocations: 43.92 kB / 0.9073 GB, free: 56.19 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008108/0.2246, allocations: 0.9528 MB / 0.9083 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003366/0.2249, allocations: 127.7 kB / 0.9084 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2249, allocations: 0.5625 kB / 0.9084 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.2251, allocations: 59.91 kB / 0.9084 GB, free: 55.06 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.2255, allocations: 23.98 kB / 0.9085 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.2268, allocations: 0.86 MB / 0.9093 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.2269, allocations: 0.716 MB / 0.91 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.947e-05/0.227, allocations: 20.53 kB / 0.91 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.989e-05/0.227, allocations: 47.36 kB / 0.9101 GB, free: 53.29 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/0.227, allocations: 0 / 0.9101 GB, free: 53.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.242, allocations: 3.037 MB / 0.913 GB, free: 50.39 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.2421, allocations: 230 kB / 0.9133 GB, free: 50.15 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/1.895, allocations: 4 kB / 0.9133 GB, free: 50.15 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)