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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, 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.001527/0.001527, allocations: 194.8 kB / 16.14 MB, free: 6.703 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.294/1.294, allocations: 205.1 MB / 222 MB, free: 4.781 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.589/1.589, allocations: 292.2 MB / 0.5484 GB, free: 13.67 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.001255/0.001255, allocations: 63.98 kB / 0.6708 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2147, allocations: 114.5 MB / 0.7827 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002974/0.2177, allocations: 1.647 MB / 0.7843 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.2191, allocations: 0.7296 MB / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.656e-05/0.2192, allocations: 11.94 kB / 0.785 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.2193, allocations: 3.938 kB / 0.785 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.324e-05/0.2194, allocations: 15.84 kB / 0.785 GB, free: 11.59 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.0004481/0.2198, allocations: 103.8 kB / 0.7851 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.22, allocations: 123.6 kB / 0.7852 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.2202, allocations: 37.05 kB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.2203, allocations: 55.7 kB / 0.7853 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.739e-05/0.2204, allocations: 63.73 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.2204, allocations: 4 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.2206, allocations: 35.98 kB / 0.7854 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.99e-05/0.2206, allocations: 31.89 kB / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.442e-05/0.2207, allocations: 55.66 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.2209, allocations: 163.7 kB / 0.7857 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.221, allocations: 4 kB / 0.7857 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.71e-07/0.221, allocations: 0 / 0.7857 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.221, allocations: 0 / 0.7857 GB, free: 10.92 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.0008612/0.2218, allocations: 0.5467 MB / 0.7862 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2219, allocations: 12.03 kB / 0.7862 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.236e-05/0.222, allocations: 12.84 kB / 0.7862 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.2222, allocations: 215.9 kB / 0.7864 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.2222, allocations: 4.375 kB / 0.7864 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.753e-05/0.2222, allocations: 16.31 kB / 0.7864 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.2226, allocations: 131.6 kB / 0.7866 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2226, allocations: 0 / 0.7866 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.2226, allocations: 8 kB / 0.7866 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2226, allocations: 4 kB / 0.7866 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.2229, allocations: 63.88 kB / 0.7866 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006359/0.2235, allocations: 464.7 kB / 0.7871 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.2237, allocations: 89.11 kB / 0.7872 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.2238, allocations: 45.81 kB / 0.7872 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.2239, allocations: 8 kB / 0.7872 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.2242, allocations: 141 kB / 0.7874 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.2242, allocations: 4 kB / 0.7874 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005259/0.2247, allocations: 189.3 kB / 0.7875 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.2248, allocations: 81.05 kB / 0.7876 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.2249, allocations: 159.4 kB / 0.7878 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.225, allocations: 37.69 kB / 0.7878 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.225, allocations: 112.3 kB / 0.7879 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.2251, allocations: 28.02 kB / 0.7879 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/0.2251, allocations: 37.7 kB / 0.788 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.2253, allocations: 330.9 kB / 0.7883 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.2254, allocations: 35.91 kB / 0.7883 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.2256, allocations: 125.3 kB / 0.7884 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.2258, allocations: 147.5 kB / 0.7886 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2258, allocations: 0 / 0.7886 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003346/0.2262, allocations: 173.2 kB / 0.7888 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.2262, allocations: 4 kB / 0.7888 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.2262, allocations: 4 kB / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2262, allocations: 4 kB / 0.7888 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.2263, allocations: 19.91 kB / 0.7888 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2264, allocations: 7.984 kB / 0.7888 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.628e-05/0.2265, allocations: 20.2 kB / 0.7888 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.2265, allocations: 12 kB / 0.7888 GB, free: 7.348 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.0001145/0.2266, allocations: 130 kB / 0.7889 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.2266, allocations: 11.91 kB / 0.789 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.016e-05/0.2267, allocations: 21.39 kB / 0.789 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2267, allocations: 4 kB / 0.789 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2267, allocations: 0 / 0.789 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2267, allocations: 3.938 kB / 0.789 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006761/0.2274, allocations: 0.5327 MB / 0.7895 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2274, allocations: 0 / 0.7895 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.037e-05/0.2275, allocations: 15.98 kB / 0.7895 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2275, allocations: 3.938 kB / 0.7895 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.2275, allocations: 4 kB / 0.7895 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2275, allocations: 8 kB / 0.7895 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2275, allocations: 0 / 0.7895 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003791/0.2279, allocations: 318.4 kB / 0.7898 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.228, allocations: 88.92 kB / 0.7899 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.228, allocations: 11.94 kB / 0.7899 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.2282, allocations: 19.97 kB / 0.79 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.2282, allocations: 11.98 kB / 0.79 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.2283, allocations: 8 kB / 0.79 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.071e-05/0.2283, allocations: 123.2 kB / 0.7901 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2283, allocations: 0 / 0.7901 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003309/0.2287, allocations: 39.98 kB / 0.7901 GB, free: 5.902 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.0003506/0.229, allocations: 198.2 kB / 0.7903 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000329/0.2294, allocations: 107.9 kB / 0.7904 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2294, allocations: 0 / 0.7904 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.2295, allocations: 55.89 kB / 0.7905 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.2299, allocations: 15.94 kB / 0.7905 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000442/0.2303, allocations: 281.8 kB / 0.7908 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.2306, allocations: 0.72 MB / 0.7915 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.848e-05/0.2307, allocations: 20.53 kB / 0.7915 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.2307, allocations: 15.44 kB / 0.7915 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2307, allocations: 0 / 0.7915 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of Templates: time 0.004458/0.2352, allocations: 1.653 MB / 0.7931 GB, free: 2.84 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.makefile (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 & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)