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.001171/0.001171, allocations: 107.7 kB / 15.99 MB, free: 6.352 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.001163/0.001163, allocations: 185.2 kB / 16.9 MB, free: 6.188 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.383/1.383, allocations: 205.1 MB / 222.8 MB, free: 4.668 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.81/1.81, allocations: 292.3 MB / 0.5492 GB, free: 13.62 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.001366/0.001367, allocations: 67.94 kB / 0.6716 GB, free: 26.42 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2573, allocations: 114.6 MB / 0.7835 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002909/0.2602, allocations: 1.644 MB / 0.7851 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2615, allocations: 0.7334 MB / 0.7858 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.123e-05/0.2616, allocations: 0 / 0.7858 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.2618, allocations: 15.86 kB / 0.7858 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.556e-05/0.2618, allocations: 11.86 kB / 0.7859 GB, free: 11.49 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.0004408/0.2623, allocations: 91.84 kB / 0.7859 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001919/0.2625, allocations: 147.5 kB / 0.7861 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.2626, allocations: 29.12 kB / 0.7861 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.997e-05/0.2627, allocations: 55.81 kB / 0.7862 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.352e-05/0.2628, allocations: 67.64 kB / 0.7862 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.2629, allocations: 8 kB / 0.7862 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.263, allocations: 51.95 kB / 0.7863 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.581e-05/0.2631, allocations: 27.91 kB / 0.7863 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.424e-05/0.2631, allocations: 63.66 kB / 0.7864 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.2633, allocations: 120 kB / 0.7865 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2633, allocations: 0 / 0.7865 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2634, allocations: 0 / 0.7865 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.2634, allocations: 0 / 0.7865 GB, free: 10.84 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.0008482/0.2642, allocations: 0.539 MB / 0.787 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.2643, allocations: 12.03 kB / 0.787 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.539e-05/0.2643, allocations: 12.84 kB / 0.787 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.2645, allocations: 219.9 kB / 0.7873 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.2646, allocations: 20.31 kB / 0.7873 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.2646, allocations: 4.375 kB / 0.7873 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.2649, allocations: 131.7 kB / 0.7874 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.2649, allocations: 4 kB / 0.7874 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.2649, allocations: 0 / 0.7874 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.265, allocations: 4 kB / 0.7874 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.2652, allocations: 63.94 kB / 0.7875 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00065/0.2659, allocations: 476.6 kB / 0.7879 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.2661, allocations: 81.12 kB / 0.788 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.2662, allocations: 45.81 kB / 0.788 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.2662, allocations: 11.92 kB / 0.7881 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003626/0.2666, allocations: 145 kB / 0.7882 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.2666, allocations: 0 / 0.7882 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005739/0.2672, allocations: 185.3 kB / 0.7884 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.2672, allocations: 81.09 kB / 0.7884 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.2674, allocations: 163.4 kB / 0.7886 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.2674, allocations: 33.81 kB / 0.7886 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.2675, allocations: 112.2 kB / 0.7887 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.965e-05/0.2675, allocations: 35.62 kB / 0.7888 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.349e-05/0.2676, allocations: 33.72 kB / 0.7888 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.2677, allocations: 330.8 kB / 0.7891 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.2678, allocations: 39.91 kB / 0.7892 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.268, allocations: 120.7 kB / 0.7893 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002762/0.2683, allocations: 147.5 kB / 0.7894 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2683, allocations: 0 / 0.7894 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003505/0.2687, allocations: 165.5 kB / 0.7896 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2687, allocations: 8 kB / 0.7896 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2687, allocations: 0 / 0.7896 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.2687, allocations: 4 kB / 0.7896 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.2689, allocations: 23.91 kB / 0.7896 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.2689, allocations: 288 / 0.7896 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.867e-05/0.269, allocations: 27.92 kB / 0.7896 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.269, allocations: 4 kB / 0.7896 GB, free: 7.277 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.0001196/0.2691, allocations: 129.8 kB / 0.7898 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.2692, allocations: 19.84 kB / 0.7898 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.145e-05/0.2692, allocations: 13.41 kB / 0.7898 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2692, allocations: 3.984 kB / 0.7898 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2692, allocations: 0 / 0.7898 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2692, allocations: 3.938 kB / 0.7898 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006731/0.2699, allocations: 0.5409 MB / 0.7903 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2699, allocations: 3.938 kB / 0.7903 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.889e-05/0.27, allocations: 12.08 kB / 0.7903 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.27, allocations: 7.875 kB / 0.7904 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.27, allocations: 4 kB / 0.7904 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.27, allocations: 4 kB / 0.7904 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.27, allocations: 0 / 0.7904 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003974/0.2705, allocations: 330.4 kB / 0.7907 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.2705, allocations: 88.92 kB / 0.7908 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.2705, allocations: 7.922 kB / 0.7908 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.2707, allocations: 19.98 kB / 0.7908 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.2708, allocations: 11.98 kB / 0.7908 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.46e-05/0.2708, allocations: 8 kB / 0.7908 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.925e-05/0.2709, allocations: 123.2 kB / 0.7909 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2709, allocations: 0 / 0.7909 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003436/0.2713, allocations: 36 kB / 0.791 GB, free: 5.82 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.0004021/0.2717, allocations: 182.5 kB / 0.7911 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000357/0.272, allocations: 119.7 kB / 0.7912 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2721, allocations: 4 kB / 0.7913 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.2722, allocations: 51.91 kB / 0.7913 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.2726, allocations: 24.47 kB / 0.7913 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005369/0.2731, allocations: 320 kB / 0.7916 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.2735, allocations: 0.7158 MB / 0.7923 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.59e-05/0.2735, allocations: 15.44 kB / 0.7923 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of SimCode: time 3.51e-07/0.2735, allocations: 0 / 0.7923 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of Templates: time 0.003879/0.2774, allocations: 2.059 MB / 0.7944 GB, free: 2.316 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)