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.001107/0.001107, allocations: 112 kB / 16.36 MB, free: 6.008 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.001148/0.001148, allocations: 192.9 kB / 17.3 MB, free: 5.609 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.255/1.255, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.768/1.768, allocations: 292.3 MB / 0.5496 GB, free: 17.65 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.001366, allocations: 63.91 kB / 0.6729 GB, free: 5.859 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1965, allocations: 114.6 MB / 0.7848 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002632/0.1991, allocations: 1.586 MB / 0.7863 GB, free: 1.59 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.2003, allocations: 0.7373 MB / 0.787 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.555e-05/0.2004, allocations: 3.938 kB / 0.787 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 9.16e-05/0.2005, allocations: 15.86 kB / 0.7871 GB, free: 0.8242 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.393e-05/0.2005, allocations: 23.73 kB / 0.7871 GB, free: 0.8008 MB / 0.6544 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.0003844/0.2009, allocations: 103.8 kB / 0.7872 GB, free: 0.6992 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000184/0.2011, allocations: 139.6 kB / 0.7873 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.2013, allocations: 32.89 kB / 0.7874 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.439e-05/0.2014, allocations: 63.7 kB / 0.7874 GB, free: 476 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.2015, allocations: 59.75 kB / 0.7875 GB, free: 416 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.2015, allocations: 12 kB / 0.7875 GB, free: 404 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.2016, allocations: 51.97 kB / 0.7875 GB, free: 352 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 5.101e-05/0.2017, allocations: 27.91 kB / 0.7876 GB, free: 324 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.838e-05/0.2018, allocations: 63.64 kB / 0.7876 GB, free: 260 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.202, allocations: 171.3 kB / 0.7878 GB, free: 88 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.202, allocations: 4 kB / 0.7878 GB, free: 84 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.273e-06/0.202, allocations: 0 / 0.7878 GB, free: 84 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.202, allocations: 0 / 0.7878 GB, free: 84 kB / 0.6544 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.3468/0.5488, allocations: 0.5417 MB / 0.7883 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.5489, allocations: 9.797 kB / 0.7883 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.454e-05/0.549, allocations: 12.72 kB / 0.7883 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.5491, allocations: 226.2 kB / 0.7885 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.5491, allocations: 3 kB / 0.7886 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.5492, allocations: 8.75 kB / 0.7886 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002799/0.5495, allocations: 134.1 kB / 0.7887 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.5495, allocations: 0.5625 kB / 0.7887 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.5495, allocations: 3.938 kB / 0.7887 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.5495, allocations: 2.625 kB / 0.7887 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000217/0.5497, allocations: 70.89 kB / 0.7888 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004964/0.5502, allocations: 466.4 kB / 0.7892 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.5504, allocations: 83.83 kB / 0.7893 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.5505, allocations: 51.27 kB / 0.7893 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.5506, allocations: 2.875 kB / 0.7893 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.5509, allocations: 140.5 kB / 0.7895 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.5509, allocations: 0 / 0.7895 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0004958/0.5514, allocations: 195.5 kB / 0.7897 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.5514, allocations: 81.86 kB / 0.7897 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.254e-05/0.5515, allocations: 160.3 kB / 0.7899 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.5515, allocations: 31.42 kB / 0.7899 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.5516, allocations: 109.8 kB / 0.79 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.5516, allocations: 29.12 kB / 0.7901 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.563e-05/0.5517, allocations: 42.42 kB / 0.7901 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.5517, allocations: 326 kB / 0.7904 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.5518, allocations: 35.5 kB / 0.7904 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.552, allocations: 119.7 kB / 0.7906 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.5522, allocations: 146.3 kB / 0.7907 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.5522, allocations: 1.281 kB / 0.7907 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003157/0.5525, allocations: 174.4 kB / 0.7909 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.5526, allocations: 7.312 kB / 0.7909 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.5526, allocations: 2.125 kB / 0.7909 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.5526, allocations: 2.625 kB / 0.7909 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.5527, allocations: 23.42 kB / 0.7909 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.5527, allocations: 2.031 kB / 0.7909 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.579e-05/0.5528, allocations: 12.75 kB / 0.7909 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.5528, allocations: 12.56 kB / 0.7909 GB, free: 46.95 MB / 0.6544 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 7.783e-05/0.5529, allocations: 139.4 kB / 0.7911 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.553, allocations: 12.53 kB / 0.7911 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.553, allocations: 17.19 kB / 0.7911 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.553, allocations: 6.266 kB / 0.7911 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.553, allocations: 0 / 0.7911 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.553, allocations: 1.125 kB / 0.7911 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005499/0.5536, allocations: 0.538 MB / 0.7916 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.5536, allocations: 0 / 0.7916 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.132e-05/0.5537, allocations: 12.91 kB / 0.7916 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.5537, allocations: 1.469 kB / 0.7916 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.5537, allocations: 9.781 kB / 0.7916 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.5537, allocations: 6.469 kB / 0.7916 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.5537, allocations: 4.125 kB / 0.7916 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003259/0.554, allocations: 320.9 kB / 0.792 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.46e-05/0.5541, allocations: 86.83 kB / 0.792 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.5541, allocations: 6.562 kB / 0.792 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.5543, allocations: 24.12 kB / 0.7921 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.452e-05/0.5543, allocations: 10.45 kB / 0.7921 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.5544, allocations: 8.031 kB / 0.7921 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.66e-05/0.5544, allocations: 127.4 kB / 0.7922 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.5544, allocations: 0 / 0.7922 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000343/0.5548, allocations: 40.91 kB / 0.7922 GB, free: 46.05 MB / 0.6544 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.0003462/0.5551, allocations: 196.5 kB / 0.7924 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003263/0.5555, allocations: 112.9 kB / 0.7925 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5555, allocations: 3.438 kB / 0.7925 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.5556, allocations: 50.31 kB / 0.7926 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.556, allocations: 19.45 kB / 0.7926 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.5564, allocations: 243.2 kB / 0.7928 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.5565, allocations: 0.7202 MB / 0.7935 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.113e-05/0.5566, allocations: 25.17 kB / 0.7936 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.5566, allocations: 15.59 kB / 0.7936 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.5566, allocations: 4 kB / 0.7936 GB, free: 45.11 MB / 0.6544 GB Notification: Performance of Templates: time 0.004274/0.5609, allocations: 1.771 MB / 0.7953 GB, free: 45.01 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)