Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001488/0.001488, allocations: 108.1 kB / 16.41 MB, free: 6.512 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.0016/0.0016, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 0.9515 GB, free: 7.711 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.882/0.8835, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002704/0.8862, allocations: 1.585 MB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.8876, allocations: 0.6967 MB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.62e-05/0.8876, allocations: 0.9062 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.8878, allocations: 9.469 kB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.645e-05/0.8878, allocations: 23.83 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.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.0004874/0.8883, allocations: 100.6 kB / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002099/0.8886, allocations: 138.7 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.8887, allocations: 32.31 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.8888, allocations: 61.72 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.8889, allocations: 61.83 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.06e-05/0.889, allocations: 10.28 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.8891, allocations: 52.19 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.381e-05/0.8892, allocations: 26.91 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.754e-05/0.8893, allocations: 69.86 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.8896, allocations: 173.1 kB / 1.092 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.8896, allocations: 1.406 kB / 1.092 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8896, allocations: 3.938 kB / 1.092 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.168e-05/0.8896, allocations: 0 / 1.092 GB, free: 3.617 MB / 0.8575 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.0008534/0.8905, allocations: 0.5392 MB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.8905, allocations: 8.062 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.733e-05/0.8906, allocations: 30.33 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.8908, allocations: 214.8 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.8908, allocations: 4.312 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.8909, allocations: 10.62 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003467/0.8912, allocations: 136.6 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.8913, allocations: 4 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.8913, allocations: 2.234 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.8913, allocations: 1.5 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.8916, allocations: 66.56 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006361/0.8922, allocations: 463.6 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.8924, allocations: 84.81 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.8926, allocations: 47.5 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.8926, allocations: 10.69 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.8929, allocations: 145.3 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 2.675e-06/0.8929, allocations: 7.922 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0006327/0.8936, allocations: 182.4 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.8936, allocations: 84.53 kB / 1.094 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.8938, allocations: 167.5 kB / 1.094 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.381e-05/0.8938, allocations: 33.09 kB / 1.094 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.8939, allocations: 111.4 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.8939, allocations: 26.61 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-05/0.894, allocations: 34.22 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.703e-05/0.8941, allocations: 334.6 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.8942, allocations: 33.64 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.8944, allocations: 120.6 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.8947, allocations: 147.5 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.8947, allocations: 1 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003863/0.8951, allocations: 160.7 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.8951, allocations: 6.703 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.8951, allocations: 7.141 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.8952, allocations: 3.25 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.8953, allocations: 18.83 kB / 1.095 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.8953, allocations: 7.578 kB / 1.095 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.8954, allocations: 24.28 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.8954, allocations: 9.188 kB / 1.095 GB, free: 1.066 MB / 0.8575 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.84e-05/0.8955, allocations: 139.8 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.8956, allocations: 12.47 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.945e-05/0.8956, allocations: 15.5 kB / 1.095 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.8956, allocations: 2.531 kB / 1.095 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.8956, allocations: 0.5312 kB / 1.095 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.356e-05/0.8957, allocations: 89.17 kB / 1.095 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.8957, allocations: 10.64 kB / 1.095 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.8958, allocations: 18.66 kB / 1.095 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.246e-05/0.8959, allocations: 16.97 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004509/0.8964, allocations: 304.6 kB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004184/0.8968, allocations: 401.7 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001602/0.897, allocations: 50.3 kB / 1.096 GB, free: 260 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.561e-05/0.8971, allocations: 119.7 kB / 1.096 GB, free: 172 kB / 0.8575 GB Notification: Performance of Backend: time 6.81e-07/0.8971, allocations: 0 / 1.096 GB, free: 172 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009622/0.8981, allocations: 242.1 kB / 1.096 GB, free: 56 kB / 0.8575 GB Notification: Performance of SimCode: time 0.0006735/0.8987, allocations: 0.6767 MB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of Templates: time 0.008784/0.9075, allocations: 1.947 MB / 1.099 GB, free: 15.21 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches