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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.432/1.432, allocations: 252 MB / 267.6 MB, free: 10.91 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.001018/0.001018, allocations: 176.2 kB / 327.3 MB, free: 2.211 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.792/1.792, allocations: 205.4 MB / 0.5783 GB, free: 20.23 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.0007824/0.0007823, allocations: 90.3 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003744/0.0003744, allocations: 8.719 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2492, allocations: 106.3 MB / 0.9008 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00157/0.2508, allocations: 1.274 MB / 0.9021 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.2519, allocations: 0.7101 MB / 0.9028 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.033e-05/0.2519, allocations: 0 / 0.9028 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 9.176e-05/0.252, allocations: 7.875 kB / 0.9028 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.698e-05/0.2521, allocations: 23.78 kB / 0.9028 GB, free: 61.86 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.0003802/0.2525, allocations: 91.83 kB / 0.9029 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.2526, allocations: 119.6 kB / 0.903 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.2527, allocations: 29 kB / 0.903 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.659e-05/0.2528, allocations: 51.77 kB / 0.9031 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.104e-05/0.2529, allocations: 51.75 kB / 0.9031 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.2529, allocations: 15.98 kB / 0.9031 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.599e-05/0.253, allocations: 39.92 kB / 0.9032 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.499e-05/0.2531, allocations: 27.89 kB / 0.9032 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.6e-05/0.2531, allocations: 41.64 kB / 0.9032 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.2533, allocations: 99.81 kB / 0.9033 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2533, allocations: 0 / 0.9033 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2533, allocations: 0 / 0.9033 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.2533, allocations: 4 kB / 0.9033 GB, free: 61.29 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.0007473/0.254, allocations: 0.5352 MB / 0.9039 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2541, allocations: 8.031 kB / 0.9039 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.179e-05/0.2541, allocations: 23.81 kB / 0.9039 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.2543, allocations: 214.8 kB / 0.9041 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.2544, allocations: 8 kB / 0.9041 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.2544, allocations: 8 kB / 0.9041 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.2547, allocations: 139.3 kB / 0.9042 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.2547, allocations: 4 kB / 0.9042 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.2547, allocations: 4 kB / 0.9042 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2547, allocations: 0 / 0.9042 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.2549, allocations: 83.88 kB / 0.9043 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005231/0.2555, allocations: 476.7 kB / 0.9048 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.2557, allocations: 93.12 kB / 0.9049 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.2558, allocations: 53.81 kB / 0.9049 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.2558, allocations: 11.98 kB / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002885/0.2561, allocations: 152.9 kB / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.2561, allocations: 0 / 0.9051 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12): time 0.0005294/0.2567, allocations: 205.3 kB / 0.9053 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.2567, allocations: 81.09 kB / 0.9054 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.493e-05/0.2568, allocations: 162.9 kB / 0.9055 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.2569, allocations: 33.7 kB / 0.9055 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.203e-05/0.2569, allocations: 112.2 kB / 0.9056 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.2569, allocations: 27.7 kB / 0.9057 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.2569, allocations: 4.375 kB / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.154e-05/0.257, allocations: 326.8 kB / 0.906 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.2571, allocations: 39.97 kB / 0.906 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.2573, allocations: 126.2 kB / 0.9061 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.2574, allocations: 59.91 kB / 0.9062 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2574, allocations: 0 / 0.9062 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003407/0.2578, allocations: 177.6 kB / 0.9064 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2578, allocations: 19.88 kB / 0.9064 GB, free: 57.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2578, allocations: 3.953 kB / 0.9064 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.2579, allocations: 4 kB / 0.9064 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.258, allocations: 23.98 kB / 0.9064 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.258, allocations: 0 / 0.9064 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.426e-05/0.2581, allocations: 15.98 kB / 0.9064 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.2581, allocations: 12 kB / 0.9065 GB, free: 57.79 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 9.125e-05/0.2582, allocations: 137.9 kB / 0.9066 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.111e-05/0.2582, allocations: 15.81 kB / 0.9066 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.2583, allocations: 21.38 kB / 0.9066 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2583, allocations: 7.953 kB / 0.9066 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.2583, allocations: 0 / 0.9066 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2583, allocations: 0 / 0.9066 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005531/0.2589, allocations: 0.5445 MB / 0.9072 GB, free: 57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2589, allocations: 7.953 kB / 0.9072 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.083e-05/0.259, allocations: 19.98 kB / 0.9072 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.259, allocations: 0 / 0.9072 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.259, allocations: 0 / 0.9072 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.259, allocations: 4 kB / 0.9072 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.259, allocations: 3.938 kB / 0.9072 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003374/0.2593, allocations: 338.5 kB / 0.9075 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.135e-05/0.2594, allocations: 96.86 kB / 0.9076 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.2594, allocations: 4 kB / 0.9076 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.2596, allocations: 27.98 kB / 0.9076 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.2596, allocations: 7.984 kB / 0.9076 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.265e-05/0.2597, allocations: 11.98 kB / 0.9077 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.638e-05/0.2597, allocations: 119.2 kB / 0.9078 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2597, allocations: 0 / 0.9078 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003019/0.26, allocations: 32 kB / 0.9078 GB, free: 56.3 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.0003552/0.2604, allocations: 210.7 kB / 0.908 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003381/0.2607, allocations: 123.8 kB / 0.9081 GB, free: 56.01 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2608, allocations: 0 / 0.9081 GB, free: 56.01 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.2609, allocations: 64.53 kB / 0.9082 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.2613, allocations: 16.67 kB / 0.9082 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004087/0.2617, allocations: 304.4 kB / 0.9085 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001549/0.2618, allocations: 0.716 MB / 0.9092 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.025e-05/0.2619, allocations: 11.44 kB / 0.9092 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2619, allocations: 4 kB / 0.9092 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of Templates: time 0.003582/0.2655, allocations: 2.035 MB / 0.9112 GB, free: 52.82 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)