Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_1.6_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001686/0.001686, 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.002155/0.002155, allocations: 193.6 kB / 16.14 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.845/2.845, allocations: 472.6 MB / 0.7447 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 64.62 kB / 0.9113 GB, free: 33.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3282, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002787/0.331, allocations: 1.646 MB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.3323, allocations: 0.6896 MB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.604e-05/0.3324, allocations: 8 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.943e-05/0.3325, allocations: 7.875 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.069e-05/0.3326, allocations: 19.84 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.0004446/0.333, allocations: 99.83 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.3332, allocations: 123.6 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.3334, allocations: 40.88 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.3335, allocations: 51.77 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.299e-05/0.3336, allocations: 63.73 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.128e-05/0.3336, allocations: 7.938 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.3338, allocations: 43.92 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.792e-05/0.3339, allocations: 27.89 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.472e-05/0.334, allocations: 59.66 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.3342, allocations: 163.7 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3342, allocations: 0 / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3343, allocations: 0 / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.125e-06/0.3343, allocations: 0 / 1.07 GB, free: 7.852 MB / 0.8262 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.001005/0.3353, allocations: 0.5506 MB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3353, allocations: 8.031 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.839e-05/0.3354, allocations: 16.84 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.3356, allocations: 212 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.3357, allocations: 8.375 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.3357, allocations: 8.312 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.3361, allocations: 131.6 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3361, allocations: 4 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.3361, allocations: 11.94 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.3361, allocations: 4 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.3364, allocations: 63.94 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007717/0.3372, allocations: 476.6 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002028/0.3374, allocations: 77.12 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.3375, allocations: 45.81 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.3376, allocations: 8 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.3379, allocations: 145 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.3379, allocations: 0 / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.00058/0.3385, allocations: 189.3 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.3386, allocations: 77.11 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.3387, allocations: 168.1 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.3387, allocations: 29.7 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.634e-05/0.3388, allocations: 108.4 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.485e-05/0.3388, allocations: 27.61 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.734e-05/0.3389, allocations: 41.7 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.339, allocations: 326.8 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.3392, allocations: 48.2 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.3394, allocations: 118.4 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/0.3397, allocations: 143.5 kB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3397, allocations: 0 / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004312/0.3401, allocations: 173.2 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.3402, allocations: 11.98 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3402, allocations: 0 / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3402, allocations: 4 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.3403, allocations: 19.92 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.3403, allocations: 4.266 kB / 1.074 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.3405, allocations: 23.92 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.3405, allocations: 8.234 kB / 1.074 GB, free: 4.273 MB / 0.8262 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.0001287/0.3406, allocations: 129.8 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.3407, allocations: 15.89 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.672e-05/0.3407, allocations: 21.34 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3407, allocations: 0 / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3407, allocations: 0 / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3407, allocations: 3.938 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007653/0.3415, allocations: 0.5289 MB / 1.074 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3415, allocations: 4 kB / 1.074 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.002e-05/0.3416, allocations: 15.92 kB / 1.074 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.3416, allocations: 3.938 kB / 1.074 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.08e-05/0.3417, allocations: 11.98 kB / 1.074 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3417, allocations: 4 kB / 1.074 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3417, allocations: 0 / 1.074 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004499/0.3421, allocations: 322.5 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.3422, allocations: 88.95 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.3422, allocations: 11.88 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.3424, allocations: 19.97 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.107e-05/0.3425, allocations: 15.98 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.152e-05/0.3425, allocations: 4 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.135e-05/0.3426, allocations: 119.2 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.71e-07/0.3426, allocations: 0 / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003555/0.343, allocations: 43.89 kB / 1.075 GB, free: 2.82 MB / 0.8262 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.0004266/0.3434, allocations: 196.8 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003671/0.3438, allocations: 107.8 kB / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3438, allocations: 0 / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.344, allocations: 56.45 kB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.3444, allocations: 27.98 kB / 1.075 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005185/0.3449, allocations: 277.4 kB / 1.076 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.3453, allocations: 0.7121 MB / 1.076 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.022e-05/0.3454, allocations: 28.47 kB / 1.076 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.543e-05/0.3454, allocations: 15.44 kB / 1.076 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3454, allocations: 0 / 1.076 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of Templates: time 0.005179/0.3506, allocations: 1.65 MB / 1.078 GB, free: 15.75 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)