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.001167/0.001167, allocations: 106.3 kB / 16.36 MB, free: 6.297 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.001169/0.001169, allocations: 192.5 kB / 17.29 MB, free: 5.875 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.509/1.509, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.773/1.773, allocations: 292.3 MB / 0.5496 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.001409/0.00141, allocations: 63.91 kB / 0.6729 GB, free: 5.871 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2156, allocations: 114.5 MB / 0.7848 GB, free: 3.203 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002805/0.2184, allocations: 1.592 MB / 0.7863 GB, free: 1.598 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.2197, allocations: 0.7411 MB / 0.7871 GB, free: 0.8477 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.791e-05/0.2198, allocations: 3.938 kB / 0.7871 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 9.517e-05/0.2199, allocations: 11.88 kB / 0.7871 GB, free: 0.832 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.101e-05/0.22, allocations: 27.72 kB / 0.7871 GB, free: 0.8047 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.0003812/0.2203, allocations: 103.8 kB / 0.7872 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.2205, allocations: 131.6 kB / 0.7873 GB, free: 0.5742 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.2207, allocations: 33.11 kB / 0.7874 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.785e-05/0.2207, allocations: 55.78 kB / 0.7874 GB, free: 496 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.3e-05/0.2208, allocations: 67.67 kB / 0.7875 GB, free: 428 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.2209, allocations: 12 kB / 0.7875 GB, free: 416 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.221, allocations: 51.95 kB / 0.7875 GB, free: 364 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.923e-05/0.221, allocations: 27.92 kB / 0.7876 GB, free: 336 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.923e-05/0.2211, allocations: 63.64 kB / 0.7876 GB, free: 272 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.2213, allocations: 167.4 kB / 0.7878 GB, free: 104 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.2214, allocations: 3.938 kB / 0.7878 GB, free: 100 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2214, allocations: 0 / 0.7878 GB, free: 100 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.2214, allocations: 4 kB / 0.7878 GB, free: 96 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.3605/0.5818, allocations: 0.5405 MB / 0.7883 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.5819, allocations: 9.5 kB / 0.7883 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.033e-05/0.582, allocations: 16.39 kB / 0.7883 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.5822, allocations: 221.9 kB / 0.7885 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.5822, allocations: 7.828 kB / 0.7886 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.5822, allocations: 10.44 kB / 0.7886 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.5825, allocations: 130.1 kB / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.5826, allocations: 0 / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.5826, allocations: 10.83 kB / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.5826, allocations: 2.75 kB / 0.7887 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.5828, allocations: 64.52 kB / 0.7888 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005577/0.5834, allocations: 464.3 kB / 0.7892 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.5836, allocations: 82.47 kB / 0.7893 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.5837, allocations: 49.22 kB / 0.7893 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.5838, allocations: 0 / 0.7893 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.5841, allocations: 147 kB / 0.7895 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.5841, allocations: 0 / 0.7895 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=12): time 0.0005511/0.5846, allocations: 194.4 kB / 0.7897 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.5847, allocations: 80.33 kB / 0.7897 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.5848, allocations: 162 kB / 0.7899 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.5848, allocations: 34.89 kB / 0.7899 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.5849, allocations: 103.7 kB / 0.79 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.015e-05/0.5849, allocations: 37.58 kB / 0.7901 GB, free: 47.47 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.585, allocations: 35.7 kB / 0.7901 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.073e-05/0.585, allocations: 328.6 kB / 0.7904 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.5852, allocations: 40.7 kB / 0.7904 GB, free: 47.14 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.5853, allocations: 114.9 kB / 0.7906 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.5856, allocations: 148.8 kB / 0.7907 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.5856, allocations: 0 / 0.7907 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003358/0.586, allocations: 170 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.586, allocations: 6.5 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.586, allocations: 4.094 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.586, allocations: 3.469 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.5862, allocations: 19.59 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.5862, allocations: 3.5 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.639e-05/0.5863, allocations: 17.23 kB / 0.7909 GB, free: 46.94 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.5863, allocations: 10.27 kB / 0.7909 GB, free: 46.94 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 9.732e-05/0.5864, allocations: 140.1 kB / 0.7911 GB, free: 46.82 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.5864, allocations: 9.781 kB / 0.7911 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.433e-05/0.5865, allocations: 21.53 kB / 0.7911 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.5865, allocations: 3.125 kB / 0.7911 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.5865, allocations: 3.375 kB / 0.7911 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.5865, allocations: 1.266 kB / 0.7911 GB, free: 46.81 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005908/0.5871, allocations: 0.5404 MB / 0.7916 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5871, allocations: 0 / 0.7916 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.831e-05/0.5872, allocations: 10.97 kB / 0.7916 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.5872, allocations: 5.969 kB / 0.7916 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.5872, allocations: 3.938 kB / 0.7916 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5872, allocations: 2.562 kB / 0.7916 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.5873, allocations: 0 / 0.7916 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.5876, allocations: 323.5 kB / 0.7919 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.588e-05/0.5876, allocations: 83.64 kB / 0.792 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.5877, allocations: 15.98 kB / 0.792 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.5878, allocations: 14.86 kB / 0.7921 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.679e-05/0.5879, allocations: 9.656 kB / 0.7921 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.5879, allocations: 10.97 kB / 0.7921 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.259e-05/0.588, allocations: 129.8 kB / 0.7922 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.31e-07/0.588, allocations: 4.125 kB / 0.7922 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003514/0.5884, allocations: 40.19 kB / 0.7922 GB, free: 46.04 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.000398/0.5888, allocations: 188.5 kB / 0.7924 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003529/0.5891, allocations: 110.8 kB / 0.7925 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5891, allocations: 3.828 kB / 0.7925 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.5893, allocations: 55.53 kB / 0.7926 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/0.5897, allocations: 21.95 kB / 0.7926 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004645/0.5902, allocations: 277 kB / 0.7929 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.5903, allocations: 0.7141 MB / 0.7936 GB, free: 45.07 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.236e-05/0.5903, allocations: 16.72 kB / 0.7936 GB, free: 45.06 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.5904, allocations: 6.625 kB / 0.7936 GB, free: 45.06 MB / 0.6544 GB Notification: Performance of Templates: time 0.003732/0.5941, allocations: 2.053 MB / 0.7956 GB, free: 44.91 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)