Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_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.001573/0.001573, allocations: 106.2 kB / 16.27 MB, free: 6.41 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.001534/0.001534, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.491/1.491, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.87/2.87, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 67.42 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7801/0.7821, allocations: 162.2 MB / 1.083 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002695/0.7848, allocations: 1.576 MB / 1.084 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001172/0.786, allocations: 0.6934 MB / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.466e-05/0.7861, allocations: 1.062 kB / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.765e-05/0.7862, allocations: 15.27 kB / 1.085 GB, free: 64 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.868e-05/0.7863, allocations: 16.64 kB / 1.085 GB, free: 52 kB / 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.0004667/0.7867, allocations: 128.3 kB / 1.085 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001949/0.787, allocations: 129.1 kB / 1.085 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.7871, allocations: 39.31 kB / 1.085 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.32e-05/0.7872, allocations: 53.3 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.7873, allocations: 74.09 kB / 1.086 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.7874, allocations: 10.12 kB / 1.086 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.7875, allocations: 49.34 kB / 1.086 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.184e-05/0.7876, allocations: 29.25 kB / 1.086 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.075e-05/0.7877, allocations: 61.17 kB / 1.086 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.788, allocations: 166.6 kB / 1.086 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.788, allocations: 0.75 kB / 1.086 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.182e-06/0.788, allocations: 0 / 1.086 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.788, allocations: 0 / 1.086 GB, free: 15.71 MB / 0.8419 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.000942/0.7889, allocations: 0.546 MB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.789, allocations: 9.562 kB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.104e-05/0.789, allocations: 17.8 kB / 1.086 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.7893, allocations: 224.4 kB / 1.087 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.7893, allocations: 5.094 kB / 1.087 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.7894, allocations: 14.5 kB / 1.087 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000361/0.7897, allocations: 133.3 kB / 1.087 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.7897, allocations: 0 / 1.087 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.7898, allocations: 2.141 kB / 1.087 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.7898, allocations: 1.156 kB / 1.087 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.79, allocations: 69.91 kB / 1.087 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006777/0.7907, allocations: 464.6 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.791, allocations: 88.17 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.7911, allocations: 46.83 kB / 1.087 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.7911, allocations: 2.984 kB / 1.087 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003444/0.7915, allocations: 149.7 kB / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.7915, allocations: 0 / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12): time 0.0006009/0.7921, allocations: 183.8 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/0.7922, allocations: 87.39 kB / 1.088 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.7924, allocations: 159.8 kB / 1.088 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.7924, allocations: 32.94 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.008e-05/0.7925, allocations: 112.3 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.647e-05/0.7925, allocations: 29.8 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.22e-05/0.7926, allocations: 34.44 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.7928, allocations: 330.4 kB / 1.089 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.7929, allocations: 34.61 kB / 1.089 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.7931, allocations: 115.3 kB / 1.089 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.7934, allocations: 152.4 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.7935, allocations: 1.375 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004148/0.7939, allocations: 160.7 kB / 1.089 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.7939, allocations: 9.438 kB / 1.089 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.7939, allocations: 2.766 kB / 1.089 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.7939, allocations: 3.812 kB / 1.089 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.7941, allocations: 23.38 kB / 1.089 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.7941, allocations: 3.188 kB / 1.089 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.7942, allocations: 15.98 kB / 1.089 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.7942, allocations: 5.375 kB / 1.089 GB, free: 13.17 MB / 0.8419 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.00014/0.7943, allocations: 144.8 kB / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.7944, allocations: 19.77 kB / 1.089 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.775e-05/0.7945, allocations: 15.7 kB / 1.089 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.7945, allocations: 6.484 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.7945, allocations: 0.7812 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.7945, allocations: 5.438 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007912/0.7953, allocations: 0.536 MB / 1.09 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.7953, allocations: 8.734 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.261e-05/0.7954, allocations: 11.97 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.7954, allocations: 6.125 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.7954, allocations: 2 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.7954, allocations: 1.156 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7954, allocations: 1 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.7959, allocations: 323.5 kB / 1.09 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.459e-05/0.796, allocations: 88.22 kB / 1.09 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.796, allocations: 5.25 kB / 1.09 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.7962, allocations: 17.72 kB / 1.09 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.7962, allocations: 8.594 kB / 1.09 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.7963, allocations: 15.52 kB / 1.09 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001007/0.7964, allocations: 123.3 kB / 1.09 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7964, allocations: 0 / 1.09 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003593/0.7967, allocations: 41.98 kB / 1.09 GB, free: 12.09 MB / 0.8419 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.0005072/0.7973, allocations: 210 kB / 1.091 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004039/0.7977, allocations: 113.8 kB / 1.091 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7977, allocations: 8.688 kB / 1.091 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.7979, allocations: 51.58 kB / 1.091 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.7982, allocations: 19.31 kB / 1.091 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005285/0.7988, allocations: 279.8 kB / 1.091 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.7992, allocations: 0.7228 MB / 1.092 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.7992, allocations: 19.09 kB / 1.092 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.7992, allocations: 0 / 1.092 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of Templates: time 0.004943/0.8042, allocations: 2.052 MB / 1.094 GB, free: 10.77 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches