Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.00101/0.00101, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009715/0.0009716, allocations: 198.8 kB / 16.14 MB, free: 6.656 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.189/1.189, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.31/1.31, allocations: 251.7 MB / 0.5088 GB, free: 3.211 MB / 414.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.001158/0.001158, allocations: 63.91 kB / 0.6216 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3971, allocations: 104.7 MB / 0.7238 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002836/0.4, allocations: 1.636 MB / 0.7254 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00128/0.4013, allocations: 0.7448 MB / 0.7261 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.259e-05/0.4014, allocations: 4 kB / 0.7261 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.951e-05/0.4015, allocations: 11.81 kB / 0.7261 GB, free: 10.7 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.592e-05/0.4015, allocations: 19.84 kB / 0.7262 GB, free: 10.68 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.000336/0.4019, allocations: 103.8 kB / 0.7263 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000143/0.402, allocations: 123.6 kB / 0.7264 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.4021, allocations: 41 kB / 0.7264 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 6.898e-05/0.4022, allocations: 43.84 kB / 0.7265 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.39e-05/0.4023, allocations: 71.61 kB / 0.7265 GB, free: 10.3 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.4023, allocations: 4 kB / 0.7265 GB, free: 10.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.4024, allocations: 43.98 kB / 0.7266 GB, free: 10.25 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.943e-05/0.4025, allocations: 31.89 kB / 0.7266 GB, free: 10.22 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.465e-05/0.4025, allocations: 55.66 kB / 0.7267 GB, free: 10.17 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.4028, allocations: 161.5 kB / 0.7268 GB, free: 10.01 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.4028, allocations: 0 / 0.7268 GB, free: 10.01 MB / 0.545 GB Notification: Performance of FrontEnd: time 6.61e-07/0.4028, allocations: 0 / 0.7268 GB, free: 10.01 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.4028, allocations: 0 / 0.7268 GB, free: 10.01 MB / 0.545 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.000921/0.4037, allocations: 0.5429 MB / 0.7273 GB, free: 9.402 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.4038, allocations: 16.03 kB / 0.7274 GB, free: 9.387 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.995e-05/0.4038, allocations: 16.75 kB / 0.7274 GB, free: 9.371 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/0.404, allocations: 212.5 kB / 0.7276 GB, free: 9.125 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.404, allocations: 8.375 kB / 0.7276 GB, free: 9.117 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.4041, allocations: 4.375 kB / 0.7276 GB, free: 9.113 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.4044, allocations: 131.6 kB / 0.7277 GB, free: 8.973 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.4044, allocations: 0 / 0.7277 GB, free: 8.973 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.4044, allocations: 12 kB / 0.7277 GB, free: 8.961 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4044, allocations: 0 / 0.7277 GB, free: 8.961 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.4046, allocations: 71.86 kB / 0.7278 GB, free: 8.891 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.4053, allocations: 460.8 kB / 0.7282 GB, free: 8.387 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.4054, allocations: 85.11 kB / 0.7283 GB, free: 8.285 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.4056, allocations: 49.81 kB / 0.7284 GB, free: 8.23 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.4056, allocations: 4 kB / 0.7284 GB, free: 8.227 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/0.406, allocations: 149 kB / 0.7285 GB, free: 8.062 MB / 0.545 GB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.406, allocations: 0 / 0.7285 GB, free: 8.062 MB / 0.545 GB Notification: Performance of matching and sorting (n=12): time 0.0005151/0.4065, allocations: 189.6 kB / 0.7287 GB, free: 7.871 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.4065, allocations: 81.11 kB / 0.7288 GB, free: 7.773 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.4067, allocations: 167.6 kB / 0.7289 GB, free: 7.602 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.4067, allocations: 33.72 kB / 0.729 GB, free: 7.562 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.551e-05/0.4068, allocations: 120.2 kB / 0.7291 GB, free: 7.441 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.4068, allocations: 23.7 kB / 0.7291 GB, free: 7.418 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.236e-05/0.4069, allocations: 41.7 kB / 0.7291 GB, free: 7.371 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.407, allocations: 326.8 kB / 0.7295 GB, free: 7.043 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.4071, allocations: 35.97 kB / 0.7295 GB, free: 7.008 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.4073, allocations: 118.3 kB / 0.7296 GB, free: 6.855 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/0.4076, allocations: 143.5 kB / 0.7297 GB, free: 6.688 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4076, allocations: 0 / 0.7297 GB, free: 6.688 MB / 0.545 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003286/0.4079, allocations: 169.2 kB / 0.7299 GB, free: 6.516 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.4079, allocations: 8 kB / 0.7299 GB, free: 6.508 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.408, allocations: 4 kB / 0.7299 GB, free: 6.504 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.408, allocations: 4 kB / 0.7299 GB, free: 6.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.4081, allocations: 23.91 kB / 0.7299 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.4081, allocations: 0 / 0.7299 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.532e-05/0.4082, allocations: 32.14 kB / 0.73 GB, free: 6.445 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.4082, allocations: 4 kB / 0.73 GB, free: 6.441 MB / 0.545 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.0001059/0.4083, allocations: 129.8 kB / 0.7301 GB, free: 6.305 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.727e-05/0.4084, allocations: 15.81 kB / 0.7301 GB, free: 6.289 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.323e-05/0.4084, allocations: 21.39 kB / 0.7301 GB, free: 6.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4084, allocations: 0 / 0.7301 GB, free: 6.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4084, allocations: 0 / 0.7301 GB, free: 6.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.4084, allocations: 7.938 kB / 0.7301 GB, free: 6.262 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/0.4091, allocations: 0.5365 MB / 0.7307 GB, free: 5.668 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4091, allocations: 0 / 0.7307 GB, free: 5.668 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.635e-05/0.4092, allocations: 11.98 kB / 0.7307 GB, free: 5.656 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.4092, allocations: 3.938 kB / 0.7307 GB, free: 5.652 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.4092, allocations: 8 kB / 0.7307 GB, free: 5.645 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4092, allocations: 0 / 0.7307 GB, free: 5.645 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4092, allocations: 4 kB / 0.7307 GB, free: 5.641 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003885/0.4096, allocations: 318.9 kB / 0.731 GB, free: 5.312 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.661e-05/0.4097, allocations: 92.91 kB / 0.7311 GB, free: 5.203 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.4097, allocations: 3.938 kB / 0.7311 GB, free: 5.199 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.4099, allocations: 23.97 kB / 0.7311 GB, free: 5.176 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.4099, allocations: 11.98 kB / 0.7311 GB, free: 5.164 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.4099, allocations: 4.094 kB / 0.7311 GB, free: 5.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.607e-05/0.41, allocations: 123.2 kB / 0.7312 GB, free: 5.039 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.41, allocations: 0 / 0.7312 GB, free: 5.039 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003102/0.4103, allocations: 43.92 kB / 0.7313 GB, free: 4.996 MB / 0.545 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.0003406/0.4107, allocations: 197.1 kB / 0.7315 GB, free: 4.836 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003094/0.411, allocations: 111.8 kB / 0.7316 GB, free: 4.727 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.411, allocations: 0 / 0.7316 GB, free: 4.727 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.4112, allocations: 55.89 kB / 0.7316 GB, free: 4.672 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.4115, allocations: 15.94 kB / 0.7316 GB, free: 4.656 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004193/0.412, allocations: 282 kB / 0.7319 GB, free: 4.352 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.4122, allocations: 0.7199 MB / 0.7326 GB, free: 3.605 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.047e-05/0.4123, allocations: 20.53 kB / 0.7326 GB, free: 3.582 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.74e-05/0.4123, allocations: 15.44 kB / 0.7326 GB, free: 3.57 MB / 0.545 GB Notification: Performance of SimCode: time 1.342e-06/0.4123, allocations: 0 / 0.7326 GB, free: 3.57 MB / 0.545 GB Notification: Performance of Templates: time 0.004085/0.4164, allocations: 1.652 MB / 0.7343 GB, free: 1.93 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1)