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.004405/0.004405, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001049/0.00105, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.165/1.165, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.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.238/1.238, allocations: 251.7 MB / 0.5094 GB, free: 432 kB / 430.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.001288/0.001288, allocations: 67.89 kB / 0.7258 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4661/0.4674, allocations: 104.7 MB / 0.828 GB, free: 2.738 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002165/0.4696, allocations: 1.578 MB / 0.8296 GB, free: 1.141 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.4707, allocations: 0.7469 MB / 0.8303 GB, free: 396 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.4707, allocations: 0 / 0.8303 GB, free: 396 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 9.286e-05/0.4708, allocations: 15.81 kB / 0.8303 GB, free: 380 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 4.682e-05/0.4709, allocations: 23.78 kB / 0.8303 GB, free: 356 kB / 0.6231 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.0003956/0.4713, allocations: 111.7 kB / 0.8304 GB, free: 244 kB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.4715, allocations: 135.5 kB / 0.8306 GB, free: 108 kB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.4716, allocations: 29.12 kB / 0.8306 GB, free: 80 kB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 7.54e-05/0.4717, allocations: 55.81 kB / 0.8306 GB, free: 24 kB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 9.427e-05/0.4718, allocations: 67.69 kB / 0.8307 GB, free: 15.96 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.4718, allocations: 8 kB / 0.8307 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.4719, allocations: 55.91 kB / 0.8308 GB, free: 15.89 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 4.671e-05/0.4719, allocations: 35.89 kB / 0.8308 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 6.886e-05/0.472, allocations: 55.67 kB / 0.8309 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.4722, allocations: 171.2 kB / 0.831 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.4722, allocations: 0 / 0.831 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.032e-06/0.4722, allocations: 4 kB / 0.831 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.4723, allocations: 0 / 0.831 GB, free: 15.64 MB / 0.6387 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.0007566/0.473, allocations: 0.5373 MB / 0.8315 GB, free: 15.04 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.4731, allocations: 12.02 kB / 0.8316 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.073e-05/0.4731, allocations: 20.75 kB / 0.8316 GB, free: 15 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.4733, allocations: 213.8 kB / 0.8318 GB, free: 14.76 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.4733, allocations: 4.375 kB / 0.8318 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.4733, allocations: 12.38 kB / 0.8318 GB, free: 14.74 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.4736, allocations: 131.6 kB / 0.8319 GB, free: 14.6 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.4736, allocations: 0 / 0.8319 GB, free: 14.6 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.4737, allocations: 7.984 kB / 0.8319 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4737, allocations: 4 kB / 0.8319 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.4739, allocations: 67.88 kB / 0.832 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000536/0.4744, allocations: 460.8 kB / 0.8324 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000184/0.4746, allocations: 101 kB / 0.8325 GB, free: 13.9 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.4748, allocations: 45.81 kB / 0.8326 GB, free: 13.85 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.4748, allocations: 0 / 0.8326 GB, free: 13.85 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.475, allocations: 152.8 kB / 0.8327 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=12): time 1.103e-06/0.4751, allocations: 0 / 0.8327 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of matching and sorting (n=12): time 0.0005074/0.4756, allocations: 185.4 kB / 0.8329 GB, free: 13.5 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.4756, allocations: 89.05 kB / 0.833 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.4757, allocations: 156.1 kB / 0.8331 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.4758, allocations: 33.7 kB / 0.8332 GB, free: 13.19 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.4758, allocations: 112.2 kB / 0.8333 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.4759, allocations: 31.69 kB / 0.8333 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.647e-05/0.4759, allocations: 33.7 kB / 0.8333 GB, free: 13.01 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 9.633e-05/0.476, allocations: 330.8 kB / 0.8337 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.4761, allocations: 40.08 kB / 0.8337 GB, free: 12.64 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.4763, allocations: 114.2 kB / 0.8338 GB, free: 12.49 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.4766, allocations: 151.5 kB / 0.8339 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4766, allocations: 0 / 0.8339 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003291/0.4769, allocations: 169.4 kB / 0.8341 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.4769, allocations: 4 kB / 0.8341 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.477, allocations: 4 kB / 0.8341 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.477, allocations: 4 kB / 0.8341 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.736e-05/0.4771, allocations: 15.92 kB / 0.8341 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.4771, allocations: 7.984 kB / 0.8341 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.953e-05/0.4772, allocations: 15.88 kB / 0.8342 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.4772, allocations: 8 kB / 0.8342 GB, free: 12.08 MB / 0.6387 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.57e-05/0.4773, allocations: 138.9 kB / 0.8343 GB, free: 11.94 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.533e-05/0.4773, allocations: 15.81 kB / 0.8343 GB, free: 11.92 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.875e-05/0.4774, allocations: 21.39 kB / 0.8343 GB, free: 11.9 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.4774, allocations: 4 kB / 0.8343 GB, free: 11.9 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4774, allocations: 0 / 0.8343 GB, free: 11.9 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.4774, allocations: 3.938 kB / 0.8343 GB, free: 11.89 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005967/0.478, allocations: 0.533 MB / 0.8349 GB, free: 11.3 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.478, allocations: 0 / 0.8349 GB, free: 11.3 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.817e-05/0.4781, allocations: 11.98 kB / 0.8349 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.4781, allocations: 7.938 kB / 0.8349 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.4781, allocations: 4 kB / 0.8349 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4781, allocations: 0 / 0.8349 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4781, allocations: 4 kB / 0.8349 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.4785, allocations: 322.5 kB / 0.8352 GB, free: 10.95 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/0.4785, allocations: 88.92 kB / 0.8353 GB, free: 10.84 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.4786, allocations: 12.22 kB / 0.8353 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.4787, allocations: 11.98 kB / 0.8353 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.674e-05/0.4788, allocations: 15.98 kB / 0.8353 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.4788, allocations: 11.98 kB / 0.8353 GB, free: 10.79 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 6.619e-05/0.4789, allocations: 128.2 kB / 0.8355 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4789, allocations: 4 kB / 0.8355 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0003087/0.4792, allocations: 35.94 kB / 0.8355 GB, free: 10.62 MB / 0.6387 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.0003209/0.4795, allocations: 208.7 kB / 0.8357 GB, free: 10.45 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0003292/0.4799, allocations: 107.8 kB / 0.8358 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4799, allocations: 0.5625 kB / 0.8358 GB, free: 10.34 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.48, allocations: 55.91 kB / 0.8358 GB, free: 10.29 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.4804, allocations: 15.98 kB / 0.8359 GB, free: 10.27 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000397/0.4808, allocations: 251.5 kB / 0.8361 GB, free: 10 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.481, allocations: 0.7158 MB / 0.8368 GB, free: 9.258 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 5.998e-05/0.4811, allocations: 20.72 kB / 0.8368 GB, free: 9.234 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.898e-05/0.4811, allocations: 15.44 kB / 0.8368 GB, free: 9.219 MB / 0.6387 GB Notification: Performance of SimCode: time 2.5e-07/0.4811, allocations: 3.938 kB / 0.8368 GB, free: 9.215 MB / 0.6387 GB Notification: Performance of Templates: time 0.004273/0.4854, allocations: 1.791 MB / 0.8386 GB, free: 7.438 MB / 0.6387 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)