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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.515/1.515, allocations: 292.3 MB / 308.1 MB, free: 4.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001552/0.001552, allocations: 197.5 kB / 376.9 MB, free: 1.809 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.1 MB / 0.6354 GB, free: 9.781 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009745/0.0009746, allocations: 100.1 kB / 0.748 GB, free: 61.15 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.00107, allocations: 47.92 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2112, allocations: 114.5 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00277/0.214, allocations: 1.639 MB / 0.9838 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.2152, allocations: 0.7335 MB / 0.9845 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.191e-05/0.2153, allocations: 3.938 kB / 0.9845 GB, free: 7.98 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.2154, allocations: 7.938 kB / 0.9845 GB, free: 7.973 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 5.112e-05/0.2155, allocations: 19.84 kB / 0.9846 GB, free: 7.953 MB / 0.7136 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.0003951/0.2159, allocations: 95.77 kB / 0.9847 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.2161, allocations: 127.6 kB / 0.9848 GB, free: 7.734 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.2162, allocations: 29.11 kB / 0.9848 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.048e-05/0.2163, allocations: 55.77 kB / 0.9849 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 8.079e-05/0.2164, allocations: 59.73 kB / 0.9849 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.2164, allocations: 8 kB / 0.9849 GB, free: 7.586 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.2165, allocations: 47.98 kB / 0.985 GB, free: 7.539 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 5.19e-05/0.2166, allocations: 31.83 kB / 0.985 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 6.737e-05/0.2167, allocations: 55.66 kB / 0.985 GB, free: 7.453 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.2169, allocations: 167.7 kB / 0.9852 GB, free: 7.289 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2169, allocations: 3.938 kB / 0.9852 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of FrontEnd: time 6.61e-07/0.2169, allocations: 0 / 0.9852 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.2169, allocations: 0 / 0.9852 GB, free: 7.285 MB / 0.7136 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.0007846/0.2177, allocations: 0.539 MB / 0.9857 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2178, allocations: 8.031 kB / 0.9857 GB, free: 6.672 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.875e-05/0.2178, allocations: 16.75 kB / 0.9858 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.218, allocations: 220 kB / 0.986 GB, free: 6.402 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.2181, allocations: 8.375 kB / 0.986 GB, free: 6.395 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.2181, allocations: 8.375 kB / 0.986 GB, free: 6.387 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.2184, allocations: 143.6 kB / 0.9861 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2184, allocations: 0 / 0.9861 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.2184, allocations: 0 / 0.9861 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2184, allocations: 4 kB / 0.9861 GB, free: 6.23 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000228/0.2187, allocations: 67.88 kB / 0.9862 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005877/0.2193, allocations: 468.7 kB / 0.9866 GB, free: 5.652 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.2195, allocations: 85.12 kB / 0.9867 GB, free: 5.551 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.2196, allocations: 45.81 kB / 0.9868 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.2196, allocations: 8 kB / 0.9868 GB, free: 5.492 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002949/0.2199, allocations: 149 kB / 0.9869 GB, free: 5.328 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 2.985e-06/0.2199, allocations: 112 / 0.9869 GB, free: 5.328 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0005176/0.2205, allocations: 185.3 kB / 0.9871 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.2205, allocations: 85.05 kB / 0.9872 GB, free: 5.039 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.2206, allocations: 162.1 kB / 0.9873 GB, free: 4.871 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.2207, allocations: 37.69 kB / 0.9874 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.675e-05/0.2207, allocations: 112.3 kB / 0.9875 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.2208, allocations: 31.64 kB / 0.9875 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.257e-05/0.2208, allocations: 33.7 kB / 0.9875 GB, free: 4.645 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.221, allocations: 326.8 kB / 0.9878 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.2211, allocations: 35.97 kB / 0.9879 GB, free: 4.281 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.2213, allocations: 120.5 kB / 0.988 GB, free: 4.129 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.2215, allocations: 147.5 kB / 0.9881 GB, free: 3.957 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2216, allocations: 4 kB / 0.9881 GB, free: 3.953 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003485/0.2219, allocations: 161.2 kB / 0.9883 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.2219, allocations: 4.375 kB / 0.9883 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.2219, allocations: 4 kB / 0.9883 GB, free: 3.781 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.222, allocations: 12.27 kB / 0.9883 GB, free: 3.77 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.567e-05/0.2221, allocations: 19.92 kB / 0.9883 GB, free: 3.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2221, allocations: 7.938 kB / 0.9883 GB, free: 3.742 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.326e-05/0.2222, allocations: 19.92 kB / 0.9884 GB, free: 3.723 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.2222, allocations: 4 kB / 0.9884 GB, free: 3.719 MB / 0.7136 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 9.618e-05/0.2223, allocations: 137.8 kB / 0.9885 GB, free: 3.574 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.2223, allocations: 15.81 kB / 0.9885 GB, free: 3.559 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.074e-05/0.2224, allocations: 17.39 kB / 0.9885 GB, free: 3.539 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2224, allocations: 8 kB / 0.9885 GB, free: 3.531 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2224, allocations: 0 / 0.9885 GB, free: 3.531 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.2224, allocations: 3.938 kB / 0.9885 GB, free: 3.527 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006241/0.223, allocations: 0.5288 MB / 0.9891 GB, free: 2.941 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2231, allocations: 0 / 0.9891 GB, free: 2.941 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.856e-05/0.2231, allocations: 19.98 kB / 0.9891 GB, free: 2.922 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.2231, allocations: 3.938 kB / 0.9891 GB, free: 2.918 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.2232, allocations: 0 / 0.9891 GB, free: 2.918 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2232, allocations: 0 / 0.9891 GB, free: 2.918 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2232, allocations: 7.984 kB / 0.9891 GB, free: 2.91 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007819/0.224, allocations: 0.926 MB / 0.99 GB, free: 1.926 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.944e-05/0.224, allocations: 92.91 kB / 0.9901 GB, free: 1.816 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.224, allocations: 4 kB / 0.9901 GB, free: 1.812 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.2242, allocations: 15.98 kB / 0.9901 GB, free: 1.797 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.2243, allocations: 15.92 kB / 0.9901 GB, free: 1.781 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/0.2243, allocations: 11.98 kB / 0.9901 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.655e-05/0.2244, allocations: 119.2 kB / 0.9902 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.4e-07/0.2244, allocations: 0 / 0.9902 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004052/0.2248, allocations: 32 kB / 0.9903 GB, free: 1.621 MB / 0.7136 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.0003905/0.2252, allocations: 211.7 kB / 0.9905 GB, free: 1.43 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000347/0.2256, allocations: 112.2 kB / 0.9906 GB, free: 1.32 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2256, allocations: 0 / 0.9906 GB, free: 1.32 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.2257, allocations: 59.95 kB / 0.9906 GB, free: 1.262 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.2261, allocations: 18.66 kB / 0.9906 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005734/0.2267, allocations: 416.2 kB / 0.991 GB, free: 0.8008 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.227, allocations: 0.7239 MB / 0.9918 GB, free: 52 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.927e-05/0.2271, allocations: 24.47 kB / 0.9918 GB, free: 28 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.2271, allocations: 15.44 kB / 0.9918 GB, free: 12 kB / 0.7136 GB Notification: Performance of SimCode: time 2.21e-07/0.2271, allocations: 0 / 0.9918 GB, free: 12 kB / 0.7136 GB Notification: Performance of Templates: time 0.005322/0.2324, allocations: 1.697 MB / 0.9934 GB, free: 14.32 MB / 0.7292 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)