Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.000959/0.0009591, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007044/0.007045, allocations: 173.8 kB / 16.27 MB, free: 6.66 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.601/1.601, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.947/2.947, allocations: 473.4 MB / 0.7469 GB, free: 6.082 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004636/0.0004636, allocations: 9.469 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3416, allocations: 162.2 MB / 1.074 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002133/0.3438, allocations: 1.297 MB / 1.075 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.3452, allocations: 0.6857 MB / 1.076 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.528e-05/0.3453, allocations: 4 kB / 1.076 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.3455, allocations: 7.922 kB / 1.076 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.998e-05/0.3455, allocations: 19.8 kB / 1.076 GB, free: 5.492 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.0005179/0.3461, allocations: 99.83 kB / 1.076 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002084/0.3463, allocations: 127.5 kB / 1.076 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.3465, allocations: 40.88 kB / 1.076 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.981e-05/0.3466, allocations: 47.83 kB / 1.076 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.939e-05/0.3467, allocations: 55.69 kB / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.3467, allocations: 4 kB / 1.076 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.3469, allocations: 39.97 kB / 1.076 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.222e-05/0.3469, allocations: 23.91 kB / 1.077 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.563e-05/0.347, allocations: 81.36 kB / 1.077 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002515/0.3473, allocations: 155.7 kB / 1.077 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3473, allocations: 3.938 kB / 1.077 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3473, allocations: 0 / 1.077 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3473, allocations: 4 kB / 1.077 GB, free: 4.816 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.0008658/0.3482, allocations: 0.5313 MB / 1.077 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.3482, allocations: 12.03 kB / 1.077 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.997e-05/0.3483, allocations: 16.75 kB / 1.077 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.3485, allocations: 208.1 kB / 1.077 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.3486, allocations: 12.36 kB / 1.078 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.3486, allocations: 4.375 kB / 1.078 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003462/0.3489, allocations: 147.1 kB / 1.078 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.349, allocations: 0 / 1.078 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.349, allocations: 7.938 kB / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.349, allocations: 8 kB / 1.078 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/0.3493, allocations: 83.94 kB / 1.078 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006897/0.35, allocations: 484.6 kB / 1.078 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.3502, allocations: 81.19 kB / 1.078 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.3504, allocations: 61.86 kB / 1.078 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.3504, allocations: 3.938 kB / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003073/0.3507, allocations: 156.9 kB / 1.078 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3507, allocations: 0 / 1.078 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0006309/0.3514, allocations: 209.4 kB / 1.079 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.3514, allocations: 81.11 kB / 1.079 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.3516, allocations: 172 kB / 1.079 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.3516, allocations: 29.7 kB / 1.079 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.3517, allocations: 108.4 kB / 1.079 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.3517, allocations: 27.61 kB / 1.079 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.3518, allocations: 21.7 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3519, allocations: 330.8 kB / 1.079 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.3521, allocations: 47.91 kB / 1.079 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.3523, allocations: 126.2 kB / 1.08 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/0.3526, allocations: 163.5 kB / 1.08 GB, free: 1.402 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3526, allocations: 0 / 1.08 GB, free: 1.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000409/0.353, allocations: 181.6 kB / 1.08 GB, free: 1.219 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3531, allocations: 8 kB / 1.08 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.3531, allocations: 0 / 1.08 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.3531, allocations: 4 kB / 1.08 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.3532, allocations: 19.98 kB / 1.08 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.3532, allocations: 3.984 kB / 1.08 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.3533, allocations: 23.84 kB / 1.08 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.3534, allocations: 16 kB / 1.08 GB, free: 1.145 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.0001162/0.3535, allocations: 129.8 kB / 1.08 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.3535, allocations: 7.906 kB / 1.08 GB, free: 1 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.3536, allocations: 21.39 kB / 1.08 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3536, allocations: 7.938 kB / 1.08 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3536, allocations: 384 / 1.08 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3536, allocations: 3.938 kB / 1.08 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007632/0.3544, allocations: 0.5483 MB / 1.081 GB, free: 368 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3544, allocations: 0 / 1.081 GB, free: 368 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.873e-05/0.3545, allocations: 19.98 kB / 1.081 GB, free: 348 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.373e-06/0.3545, allocations: 3.938 kB / 1.081 GB, free: 344 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.3545, allocations: 8 kB / 1.081 GB, free: 336 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3545, allocations: 3.938 kB / 1.081 GB, free: 332 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3545, allocations: 0 / 1.081 GB, free: 332 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005154/0.355, allocations: 330.8 kB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.509e-05/0.3551, allocations: 92.95 kB / 1.081 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.3551, allocations: 7.938 kB / 1.081 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.3553, allocations: 23.97 kB / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.3554, allocations: 15.97 kB / 1.081 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.3554, allocations: 8 kB / 1.081 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.432e-05/0.3555, allocations: 119.2 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3555, allocations: 3.938 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003452/0.3559, allocations: 39.98 kB / 1.081 GB, free: 15.66 MB / 0.8419 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.0004287/0.3563, allocations: 204.1 kB / 1.082 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003766/0.3567, allocations: 124.1 kB / 1.082 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3567, allocations: 0 / 1.082 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.3569, allocations: 59.91 kB / 1.082 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.3573, allocations: 26.55 kB / 1.082 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005036/0.3578, allocations: 283.1 kB / 1.082 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.3581, allocations: 0.716 MB / 1.083 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.13e-05/0.3582, allocations: 24.53 kB / 1.083 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.3582, allocations: 11.44 kB / 1.083 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3582, allocations: 0 / 1.083 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of Templates: time 0.005237/0.3635, allocations: 1.631 MB / 1.084 GB, free: 12.59 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)