Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_1.6_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001099/0.001099, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 191.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.714/2.714, allocations: 472.6 MB / 0.7451 GB, free: 4.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 61.03 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3194, allocations: 159.9 MB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002738/0.3222, allocations: 1.583 MB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3234, allocations: 0.7089 MB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.658e-05/0.3235, allocations: 0 / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.79e-05/0.3236, allocations: 15.8 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.009e-05/0.3237, allocations: 15.81 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.0004128/0.3241, allocations: 115.7 kB / 1.071 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.3243, allocations: 127.6 kB / 1.071 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.3244, allocations: 48.84 kB / 1.071 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.668e-05/0.3245, allocations: 51.78 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.518e-05/0.3246, allocations: 71.67 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.3246, allocations: 12 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.3247, allocations: 47.97 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.383e-05/0.3248, allocations: 35.91 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.684e-05/0.3249, allocations: 59.66 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.3251, allocations: 167.7 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3251, allocations: 0 / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3251, allocations: 0 / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3251, allocations: 0 / 1.071 GB, free: 7.426 MB / 0.8262 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.0008217/0.326, allocations: 0.5467 MB / 1.072 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.326, allocations: 8.031 kB / 1.072 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.47e-05/0.3261, allocations: 12.84 kB / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.3263, allocations: 216.9 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3263, allocations: 8.359 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.3263, allocations: 12.38 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.3266, allocations: 131.7 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.3266, allocations: 0 / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.3267, allocations: 4 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3267, allocations: 4 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.3269, allocations: 63.88 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.3275, allocations: 468.7 kB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.3278, allocations: 85.12 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.3279, allocations: 49.92 kB / 1.073 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.3279, allocations: 11.92 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.3282, allocations: 137 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.3282, allocations: 11.94 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005561/0.3288, allocations: 185.3 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.3289, allocations: 81.05 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.329, allocations: 162.4 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.329, allocations: 33.7 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.176e-05/0.3291, allocations: 112.4 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.813e-05/0.3292, allocations: 31.59 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/0.3292, allocations: 29.72 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3293, allocations: 334.8 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.3295, allocations: 35.91 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.3297, allocations: 118.3 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.33, allocations: 147.5 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.33, allocations: 0 / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003684/0.3304, allocations: 169.2 kB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.3304, allocations: 4 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3304, allocations: 4 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3304, allocations: 8 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.3305, allocations: 20.2 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3305, allocations: 4 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.94e-05/0.3306, allocations: 15.92 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.3307, allocations: 12 kB / 1.074 GB, free: 3.859 MB / 0.8262 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 0.0001153/0.3308, allocations: 139.2 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.3308, allocations: 11.91 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.3309, allocations: 17.41 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3309, allocations: 7.938 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3309, allocations: 4 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3309, allocations: 7.922 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006721/0.3316, allocations: 0.5253 MB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3316, allocations: 0 / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.854e-05/0.3317, allocations: 19.97 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3317, allocations: 7.938 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3317, allocations: 4.094 kB / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3317, allocations: 7.938 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3317, allocations: 0 / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000412/0.3321, allocations: 314.5 kB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.3322, allocations: 92.95 kB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.3322, allocations: 15.92 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.3324, allocations: 11.98 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.3325, allocations: 11.98 kB / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.3325, allocations: 8 kB / 1.075 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.951e-05/0.3326, allocations: 124.2 kB / 1.076 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3326, allocations: 3.938 kB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000343/0.3329, allocations: 39.91 kB / 1.076 GB, free: 2.398 MB / 0.8262 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.0003872/0.3333, allocations: 203.6 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003748/0.3337, allocations: 107.8 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3337, allocations: 4.5 kB / 1.076 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001592/0.3339, allocations: 55.97 kB / 1.076 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.3343, allocations: 19.98 kB / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004552/0.3347, allocations: 251.7 kB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.335, allocations: 0.712 MB / 1.077 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.267e-05/0.3351, allocations: 24.53 kB / 1.077 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.3352, allocations: 19.38 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.3352, allocations: 0 / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of Templates: time 0.005048/0.3402, allocations: 1.781 MB / 1.079 GB, free: 15.22 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)