Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.Reports.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Reports.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer") translateModel(Buildings.Utilities.Reports.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002036/0.002036, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002274/0.002274, allocations: 195 kB / 16.14 MB, free: 6.664 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.605/1.605, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6222/0.6222, allocations: 95.47 MB / 364.8 MB, free: 10.07 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 71.89 kB / 444.7 MB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3597/0.3612, allocations: 69.07 MB / 0.5017 GB, free: 17.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Reports.Examples.Printer): time 0.003144/0.3644, allocations: 1.62 MB / 0.5033 GB, free: 16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.3658, allocations: 0.7293 MB / 0.504 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.178e-05/0.366, allocations: 0 / 0.504 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.3662, allocations: 3.938 kB / 0.504 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.98e-05/0.3662, allocations: 23.78 kB / 0.504 GB, free: 15.23 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Utilities/Reports/printRealArray.mo:2:1-45:19:writable] Warning: Pure function ‘Buildings.Utilities.Reports.printRealArray‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0005884/0.3668, allocations: 91.84 kB / 0.5041 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.367, allocations: 127.5 kB / 0.5042 GB, free: 15.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.3672, allocations: 33.11 kB / 0.5042 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3673, allocations: 51.77 kB / 0.5043 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.96e-05/0.3674, allocations: 63.69 kB / 0.5044 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.3e-05/0.3674, allocations: 4 kB / 0.5044 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.3676, allocations: 47.97 kB / 0.5044 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.861e-05/0.3677, allocations: 27.91 kB / 0.5044 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.731e-05/0.3677, allocations: 63.64 kB / 0.5045 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.368, allocations: 149.5 kB / 0.5046 GB, free: 14.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.368, allocations: 0 / 0.5046 GB, free: 14.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.368, allocations: 0 / 0.5046 GB, free: 14.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.368, allocations: 0 / 0.5046 GB, free: 14.58 MB / 382.1 MB 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.0008186/0.3688, allocations: 0.5583 MB / 0.5052 GB, free: 13.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3689, allocations: 15.62 kB / 0.5052 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.527e-05/0.369, allocations: 16.75 kB / 0.5052 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.3692, allocations: 212.1 kB / 0.5054 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.3692, allocations: 4.375 kB / 0.5054 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.3692, allocations: 8.375 kB / 0.5054 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.3695, allocations: 135.6 kB / 0.5056 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3695, allocations: 7.938 kB / 0.5056 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.3695, allocations: 0 / 0.5056 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.3696, allocations: 7.938 kB / 0.5056 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.3698, allocations: 63.94 kB / 0.5056 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006043/0.3704, allocations: 468.7 kB / 0.5061 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.3706, allocations: 81.17 kB / 0.5062 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.3707, allocations: 49.81 kB / 0.5062 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.3707, allocations: 11.92 kB / 0.5062 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/0.371, allocations: 141 kB / 0.5063 GB, free: 12.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.371, allocations: 0 / 0.5063 GB, free: 12.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005421/0.3716, allocations: 193.3 kB / 0.5065 GB, free: 12.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.3716, allocations: 81.11 kB / 0.5066 GB, free: 12.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.3718, allocations: 159.4 kB / 0.5068 GB, free: 12.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.3718, allocations: 33.7 kB / 0.5068 GB, free: 12.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/0.3718, allocations: 116.2 kB / 0.5069 GB, free: 12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.759e-05/0.3719, allocations: 27.7 kB / 0.5069 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-05/0.3719, allocations: 33.7 kB / 0.507 GB, free: 11.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.067e-05/0.372, allocations: 331.1 kB / 0.5073 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.3721, allocations: 31.97 kB / 0.5073 GB, free: 11.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.3723, allocations: 121.2 kB / 0.5074 GB, free: 11.42 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.3725, allocations: 147.7 kB / 0.5076 GB, free: 11.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3725, allocations: 7.875 kB / 0.5076 GB, free: 11.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003154/0.3728, allocations: 165.2 kB / 0.5077 GB, free: 11.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3729, allocations: 11.94 kB / 0.5077 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3729, allocations: 0 / 0.5077 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3729, allocations: 4 kB / 0.5077 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.373, allocations: 20.27 kB / 0.5078 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.373, allocations: 7.984 kB / 0.5078 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.198e-05/0.3731, allocations: 15.88 kB / 0.5078 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.3731, allocations: 8 kB / 0.5078 GB, free: 11.01 MB / 382.1 MB 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 8.301e-05/0.3732, allocations: 137.8 kB / 0.5079 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.3733, allocations: 15.81 kB / 0.5079 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.4e-05/0.3733, allocations: 17.39 kB / 0.508 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3733, allocations: 0 / 0.508 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3733, allocations: 0 / 0.508 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3733, allocations: 7.938 kB / 0.508 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005381/0.3739, allocations: 0.5368 MB / 0.5085 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3739, allocations: 48 / 0.5085 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.874e-05/0.374, allocations: 15.97 kB / 0.5085 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.374, allocations: 3.938 kB / 0.5085 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.374, allocations: 8 kB / 0.5085 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.374, allocations: 0 / 0.5085 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.374, allocations: 3.938 kB / 0.5085 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.3743, allocations: 318.6 kB / 0.5088 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.712e-05/0.3744, allocations: 88.92 kB / 0.5089 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.3744, allocations: 7.938 kB / 0.5089 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.3746, allocations: 15.98 kB / 0.5089 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.3746, allocations: 11.98 kB / 0.5089 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.341e-05/0.3747, allocations: 15.98 kB / 0.509 GB, free: 9.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.647e-05/0.3747, allocations: 115.2 kB / 0.5091 GB, free: 9.605 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3747, allocations: 0 / 0.5091 GB, free: 9.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003325/0.3751, allocations: 43.94 kB / 0.5091 GB, free: 9.562 MB / 382.1 MB 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.0003705/0.3755, allocations: 193.9 kB / 0.5093 GB, free: 9.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003121/0.3758, allocations: 111.8 kB / 0.5094 GB, free: 9.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3758, allocations: 0 / 0.5094 GB, free: 9.285 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.3759, allocations: 47.97 kB / 0.5094 GB, free: 9.238 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.3763, allocations: 22.73 kB / 0.5095 GB, free: 9.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000408/0.3767, allocations: 293.3 kB / 0.5097 GB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.3768, allocations: 0.7121 MB / 0.5104 GB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.947e-05/0.3769, allocations: 20.53 kB / 0.5105 GB, free: 8.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.377, allocations: 15.44 kB / 0.5105 GB, free: 8.129 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.377, allocations: 0 / 0.5105 GB, free: 8.129 MB / 382.1 MB Notification: Performance of Templates: time 0.00419/0.3812, allocations: 1.632 MB / 0.5121 GB, free: 6.508 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer.makefile (rm -f Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer.sim & ./Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Reports.Examples.Printer.pipe 2>&1)