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.00119/0.00119, allocations: 101.7 kB / 16.27 MB, free: 6.418 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.001092/0.001091, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.465/1.465, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.894/1.894, allocations: 292.3 MB / 0.5495 GB, free: 17.58 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.001413/0.001413, allocations: 63.91 kB / 0.6722 GB, free: 6.527 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2266, allocations: 114.6 MB / 0.784 GB, free: 3.855 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003009/0.2296, allocations: 1.582 MB / 0.7856 GB, free: 2.254 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001338/0.231, allocations: 0.7373 MB / 0.7863 GB, free: 1.508 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.41e-05/0.2311, allocations: 7.938 kB / 0.7863 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.2312, allocations: 7.875 kB / 0.7863 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.307e-05/0.2313, allocations: 19.73 kB / 0.7863 GB, free: 1.473 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.0004793/0.2317, allocations: 115.7 kB / 0.7864 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001867/0.2319, allocations: 127.6 kB / 0.7866 GB, free: 1.234 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.2321, allocations: 40.88 kB / 0.7866 GB, free: 1.191 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.682e-05/0.2322, allocations: 51.78 kB / 0.7866 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.238e-05/0.2323, allocations: 75.61 kB / 0.7867 GB, free: 1.066 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.2323, allocations: 8 kB / 0.7867 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.2325, allocations: 55.97 kB / 0.7868 GB, free: 1.004 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 5.803e-05/0.2325, allocations: 31.91 kB / 0.7868 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.226e-05/0.2326, allocations: 59.66 kB / 0.7869 GB, free: 0.9141 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.2328, allocations: 163.7 kB / 0.787 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2328, allocations: 0 / 0.787 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.024e-06/0.2328, allocations: 4 kB / 0.787 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.2329, allocations: 0 / 0.787 GB, free: 0.75 MB / 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.0008396/0.2337, allocations: 0.5429 MB / 0.7876 GB, free: 144 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.2337, allocations: 8.031 kB / 0.7876 GB, free: 136 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.661e-05/0.2338, allocations: 16.75 kB / 0.7876 GB, free: 120 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3444/0.5782, allocations: 208.7 kB / 0.7878 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.5783, allocations: 9.219 kB / 0.7878 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.5783, allocations: 6.438 kB / 0.7878 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003444/0.5787, allocations: 134.3 kB / 0.7879 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.5787, allocations: 0 / 0.7879 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.5787, allocations: 7.547 kB / 0.7879 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.5787, allocations: 0 / 0.7879 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002356/0.579, allocations: 79.69 kB / 0.788 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005446/0.5795, allocations: 459.1 kB / 0.7884 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.5797, allocations: 87.8 kB / 0.7885 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.5799, allocations: 46.42 kB / 0.7886 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.5799, allocations: 7.375 kB / 0.7886 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.5802, allocations: 145.1 kB / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 2.264e-06/0.5802, allocations: 3.047 kB / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0005162/0.5807, allocations: 187.3 kB / 0.7889 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.5807, allocations: 82.61 kB / 0.789 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.271e-05/0.5808, allocations: 160.2 kB / 0.7891 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.5809, allocations: 32.14 kB / 0.7892 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.5809, allocations: 110.8 kB / 0.7893 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.5809, allocations: 26.69 kB / 0.7893 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.581, allocations: 39.28 kB / 0.7893 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.962e-05/0.5811, allocations: 328.6 kB / 0.7896 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.5812, allocations: 32.95 kB / 0.7897 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.5813, allocations: 126.2 kB / 0.7898 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.5816, allocations: 152.2 kB / 0.7899 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5816, allocations: 0.5938 kB / 0.7899 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003101/0.5819, allocations: 166.2 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.5819, allocations: 8.469 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5819, allocations: 5.219 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.582, allocations: 2.625 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.5821, allocations: 20.22 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.5821, allocations: 5.406 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.061e-05/0.5822, allocations: 11.98 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.5822, allocations: 6.812 kB / 0.7902 GB, free: 47.43 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 8.318e-05/0.5823, allocations: 139.6 kB / 0.7903 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.5823, allocations: 15.81 kB / 0.7903 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.5824, allocations: 17.45 kB / 0.7903 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.5824, allocations: 1.875 kB / 0.7903 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5824, allocations: 2.094 kB / 0.7903 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.5824, allocations: 2.594 kB / 0.7903 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005445/0.5829, allocations: 0.5336 MB / 0.7908 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.583, allocations: 5.688 kB / 0.7908 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.966e-05/0.583, allocations: 15.36 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.583, allocations: 5.438 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.5831, allocations: 2.188 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.5831, allocations: 3.656 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5831, allocations: 6.234 kB / 0.7909 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.5834, allocations: 315.5 kB / 0.7912 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.43e-05/0.5834, allocations: 95.88 kB / 0.7913 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.5835, allocations: 1.938 kB / 0.7913 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.5836, allocations: 18.73 kB / 0.7913 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.582e-05/0.5837, allocations: 17.69 kB / 0.7913 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.5837, allocations: 10.77 kB / 0.7913 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.831e-05/0.5838, allocations: 122.6 kB / 0.7914 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5838, allocations: 0.75 kB / 0.7914 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003322/0.5841, allocations: 43.36 kB / 0.7915 GB, free: 46.53 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.0003695/0.5845, allocations: 197.4 kB / 0.7917 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003446/0.5849, allocations: 112.7 kB / 0.7918 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5849, allocations: 1.781 kB / 0.7918 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.585, allocations: 56.45 kB / 0.7918 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.5854, allocations: 24.77 kB / 0.7919 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004512/0.5859, allocations: 282.9 kB / 0.7921 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.586, allocations: 0.7105 MB / 0.7928 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.83e-05/0.5861, allocations: 20.09 kB / 0.7928 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of SimCode: time 5.21e-07/0.5861, allocations: 0 / 0.7928 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of Templates: time 0.004101/0.5902, allocations: 2.053 MB / 0.7948 GB, free: 45.41 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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)