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.001123/0.001123, allocations: 106.6 kB / 16.29 MB, free: 6.43 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.001118/0.001118, allocations: 184 kB / 17.22 MB, free: 5.934 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.205/1.205, 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.601/1.601, allocations: 292.3 MB / 0.5495 GB, free: 17.5 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.00131/0.001311, allocations: 75.88 kB / 0.6722 GB, free: 6.516 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1901, allocations: 114.6 MB / 0.7841 GB, free: 3.848 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00224/0.1923, allocations: 1.582 MB / 0.7856 GB, free: 2.246 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.1934, allocations: 0.7333 MB / 0.7863 GB, free: 1.504 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.639e-05/0.1934, allocations: 4 kB / 0.7863 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 7.582e-05/0.1935, allocations: 15.86 kB / 0.7864 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.306e-05/0.1935, allocations: 19.75 kB / 0.7864 GB, free: 1.465 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.0003382/0.1939, allocations: 107.7 kB / 0.7865 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.1941, allocations: 139.5 kB / 0.7866 GB, free: 1.223 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1942, allocations: 40.88 kB / 0.7866 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.039e-05/0.1943, allocations: 47.84 kB / 0.7867 GB, free: 1.133 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.831e-05/0.1943, allocations: 67.67 kB / 0.7868 GB, free: 1.066 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.1944, allocations: 8 kB / 0.7868 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.1945, allocations: 59.91 kB / 0.7868 GB, free: 1 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.195e-05/0.1945, allocations: 27.91 kB / 0.7868 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.814e-05/0.1946, allocations: 55.66 kB / 0.7869 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.1948, allocations: 179.7 kB / 0.7871 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1948, allocations: 3.938 kB / 0.7871 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of FrontEnd: time 8.31e-07/0.1948, allocations: 0 / 0.7871 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.1948, allocations: 0 / 0.7871 GB, free: 0.7383 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.0006874/0.1955, allocations: 0.5351 MB / 0.7876 GB, free: 140 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.756e-05/0.1955, allocations: 12.03 kB / 0.7876 GB, free: 128 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.1956, allocations: 16.75 kB / 0.7876 GB, free: 112 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2793/0.4749, allocations: 216.6 kB / 0.7878 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.475, allocations: 8.344 kB / 0.7878 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.475, allocations: 6.469 kB / 0.7878 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.4753, allocations: 129 kB / 0.788 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.4753, allocations: 0 / 0.788 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.4754, allocations: 6.219 kB / 0.788 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.4754, allocations: 2.688 kB / 0.788 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.4756, allocations: 73.83 kB / 0.7881 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.4761, allocations: 461 kB / 0.7885 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.4762, allocations: 83.64 kB / 0.7886 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.4763, allocations: 53.05 kB / 0.7886 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.4764, allocations: 1.25 kB / 0.7886 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.4766, allocations: 149.5 kB / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.4766, allocations: 0 / 0.7888 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0004589/0.4771, allocations: 186.2 kB / 0.7889 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.4771, allocations: 84.17 kB / 0.789 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.819e-05/0.4772, allocations: 161.1 kB / 0.7892 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.4773, allocations: 33.53 kB / 0.7892 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.217e-05/0.4773, allocations: 118.7 kB / 0.7893 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.013e-05/0.4773, allocations: 22.66 kB / 0.7893 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.4774, allocations: 34.72 kB / 0.7894 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.049e-05/0.4775, allocations: 325.7 kB / 0.7897 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.4776, allocations: 39.06 kB / 0.7897 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.4777, allocations: 119.4 kB / 0.7898 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.4779, allocations: 149.7 kB / 0.79 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4779, allocations: 3.188 kB / 0.79 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002719/0.4782, allocations: 165.9 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.4782, allocations: 7.875 kB / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.4782, allocations: 0 / 0.7901 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.4783, allocations: 6.531 kB / 0.7902 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.147e-05/0.4784, allocations: 17.2 kB / 0.7902 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.4784, allocations: 2.781 kB / 0.7902 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.232e-05/0.4785, allocations: 15.77 kB / 0.7902 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.4785, allocations: 13.34 kB / 0.7902 GB, free: 47.2 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.627e-05/0.4786, allocations: 134 kB / 0.7903 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.346e-05/0.4786, allocations: 17.19 kB / 0.7903 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.822e-05/0.4786, allocations: 22.52 kB / 0.7904 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.4786, allocations: 0 / 0.7904 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4786, allocations: 1.469 kB / 0.7904 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.4787, allocations: 4.484 kB / 0.7904 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004988/0.4792, allocations: 0.5419 MB / 0.7909 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.4792, allocations: 0.5312 kB / 0.7909 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.192e-05/0.4792, allocations: 12.72 kB / 0.7909 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.4792, allocations: 2.125 kB / 0.7909 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.4793, allocations: 2.438 kB / 0.7909 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.4793, allocations: 7.812 kB / 0.7909 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.4793, allocations: 3.938 kB / 0.7909 GB, free: 46.7 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.4796, allocations: 316 kB / 0.7912 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.395e-05/0.4796, allocations: 92.58 kB / 0.7913 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.4796, allocations: 6.5 kB / 0.7913 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.4798, allocations: 16.36 kB / 0.7913 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.007e-05/0.4798, allocations: 17.38 kB / 0.7914 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.4799, allocations: 9.125 kB / 0.7914 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.4799, allocations: 122.8 kB / 0.7915 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.4799, allocations: 0 / 0.7915 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003098/0.4802, allocations: 43.45 kB / 0.7915 GB, free: 46.3 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.0003839/0.4806, allocations: 199.5 kB / 0.7917 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000298/0.4809, allocations: 110.8 kB / 0.7918 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.481, allocations: 3.172 kB / 0.7918 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.4811, allocations: 52.73 kB / 0.7919 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.4814, allocations: 28.67 kB / 0.7919 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003919/0.4818, allocations: 245.4 kB / 0.7921 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.482, allocations: 0.7098 MB / 0.7928 GB, free: 45.37 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.738e-05/0.482, allocations: 28.17 kB / 0.7929 GB, free: 45.37 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.803e-05/0.4821, allocations: 15.31 kB / 0.7929 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of SimCode: time 3.11e-07/0.4821, allocations: 0 / 0.7929 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of Templates: time 0.004406/0.4865, allocations: 1.769 MB / 0.7946 GB, free: 45.27 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 cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)