Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.744/1.744, allocations: 287.5 MB / 302.6 MB, free: 8.258 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.00108/0.00108, allocations: 178 kB / 371.2 MB, free: 10.82 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.728/1.728, allocations: 205.4 MB / 0.6298 GB, free: 10.54 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009135/0.0009137, allocations: 107.2 kB / 0.7432 GB, free: 6.512 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004397, allocations: 12.33 kB / 0.8661 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2379, allocations: 115.3 MB / 0.9787 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001618/0.2396, allocations: 1.273 MB / 0.9799 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2408, allocations: 0.6879 MB / 0.9806 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.339e-05/0.2409, allocations: 0 / 0.9806 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001099/0.2411, allocations: 7.922 kB / 0.9806 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.711e-05/0.2411, allocations: 23.8 kB / 0.9806 GB, free: 26.17 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0004923/0.2416, allocations: 99.81 kB / 0.9807 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.2418, allocations: 119.6 kB / 0.9808 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.242, allocations: 33.09 kB / 0.9809 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.417e-05/0.2421, allocations: 47.83 kB / 0.9809 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.425e-05/0.2422, allocations: 51.75 kB / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.2422, allocations: 8 kB / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.2423, allocations: 39.97 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.679e-05/0.2424, allocations: 23.91 kB / 0.981 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.206e-05/0.2424, allocations: 41.64 kB / 0.9811 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.2426, allocations: 112 kB / 0.9812 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.2426, allocations: 7.938 kB / 0.9812 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2426, allocations: 3.938 kB / 0.9812 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.2426, allocations: 4 kB / 0.9812 GB, free: 25.58 MB / 0.6198 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.000725/0.2434, allocations: 0.5275 MB / 0.9817 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.2434, allocations: 8.031 kB / 0.9817 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.2435, allocations: 20.69 kB / 0.9817 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.2437, allocations: 215.9 kB / 0.9819 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.2437, allocations: 4.375 kB / 0.9819 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.2437, allocations: 12.38 kB / 0.9819 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.244, allocations: 140.8 kB / 0.9821 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.244, allocations: 0 / 0.9821 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.2441, allocations: 4 kB / 0.9821 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.2441, allocations: 3.938 kB / 0.9821 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.2443, allocations: 83.94 kB / 0.9822 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/0.2449, allocations: 480.7 kB / 0.9826 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.2451, allocations: 85.19 kB / 0.9827 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.2452, allocations: 57.81 kB / 0.9828 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.2453, allocations: 0 / 0.9828 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.2456, allocations: 160.9 kB / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.2456, allocations: 0 / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12): time 0.0005329/0.2461, allocations: 201.4 kB / 0.9831 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.2461, allocations: 85.11 kB / 0.9832 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.2463, allocations: 162.8 kB / 0.9833 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.2463, allocations: 41.69 kB / 0.9834 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.763e-05/0.2463, allocations: 104.5 kB / 0.9835 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.2464, allocations: 35.48 kB / 0.9835 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-06/0.2464, allocations: 4 kB / 0.9835 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.168e-05/0.2464, allocations: 326.8 kB / 0.9838 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.2466, allocations: 43.95 kB / 0.9839 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.2467, allocations: 123.7 kB / 0.984 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.247, allocations: 163.6 kB / 0.9842 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.247, allocations: 0 / 0.9842 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003223/0.2473, allocations: 181.6 kB / 0.9843 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.2473, allocations: 7.984 kB / 0.9843 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.2474, allocations: 4.375 kB / 0.9843 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.2474, allocations: 4 kB / 0.9843 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.2475, allocations: 19.92 kB / 0.9844 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.2475, allocations: 4 kB / 0.9844 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.582e-05/0.2476, allocations: 27.77 kB / 0.9844 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.2476, allocations: 12.06 kB / 0.9844 GB, free: 21.95 MB / 0.6198 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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.624e-05/0.2477, allocations: 135.3 kB / 0.9845 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.2478, allocations: 15.89 kB / 0.9845 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.2478, allocations: 21.39 kB / 0.9846 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.2478, allocations: 4 kB / 0.9846 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.2478, allocations: 0 / 0.9846 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2479, allocations: 3.938 kB / 0.9846 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005597/0.2484, allocations: 0.5444 MB / 0.9851 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2484, allocations: 0 / 0.9851 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.2485, allocations: 19.98 kB / 0.9851 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.2485, allocations: 7.938 kB / 0.9851 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.2485, allocations: 7.984 kB / 0.9851 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.2485, allocations: 0 / 0.9851 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.2486, allocations: 8 kB / 0.9851 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003368/0.2489, allocations: 334.4 kB / 0.9855 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.2489, allocations: 85.02 kB / 0.9855 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.249, allocations: 11.94 kB / 0.9856 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.2491, allocations: 23.97 kB / 0.9856 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.2492, allocations: 15.98 kB / 0.9856 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.2492, allocations: 4 kB / 0.9856 GB, free: 20.63 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.729e-05/0.2493, allocations: 124.2 kB / 0.9857 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.11e-07/0.2493, allocations: 0 / 0.9857 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003137/0.2496, allocations: 43.89 kB / 0.9858 GB, free: 20.46 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003932/0.25, allocations: 192.4 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003578/0.2504, allocations: 119.8 kB / 0.9861 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2504, allocations: 11.88 kB / 0.9861 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.2505, allocations: 60.52 kB / 0.9861 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.2509, allocations: 15.98 kB / 0.9861 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000454/0.2514, allocations: 264.5 kB / 0.9864 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.2516, allocations: 0.72 MB / 0.9871 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.169e-05/0.2516, allocations: 20.53 kB / 0.9871 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.958e-05/0.2517, allocations: 15.44 kB / 0.9871 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of SimCode: time 5.01e-07/0.2517, allocations: 0 / 0.9871 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of Templates: time 0.004595/0.2563, allocations: 1.581 MB / 0.9887 GB, free: 17.46 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)