Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001329/0.001329, allocations: 104.4 kB / 15.98 MB, free: 6.355 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.001322/0.001322, allocations: 199.1 kB / 16.91 MB, free: 6.188 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.436/1.436, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.69/2.69, allocations: 469.8 MB / 0.7427 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 67.48 kB / 0.9087 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3051, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002939/0.3081, allocations: 1.65 MB / 1.066 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.3094, allocations: 0.6935 MB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.901e-05/0.3094, allocations: 0 / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.3096, allocations: 11.92 kB / 1.066 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.875e-05/0.3096, allocations: 19.8 kB / 1.066 GB, free: 12.74 MB / 0.8419 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.000432/0.3101, allocations: 95.83 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.3103, allocations: 139.5 kB / 1.067 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.3104, allocations: 29.11 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.393e-05/0.3105, allocations: 55.83 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.939e-05/0.3106, allocations: 63.69 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.3106, allocations: 12 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.3108, allocations: 51.97 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.98e-05/0.3108, allocations: 27.91 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.052e-05/0.3109, allocations: 63.64 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.3111, allocations: 112 kB / 1.067 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 1.536e-05/0.3111, allocations: 4 kB / 1.067 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3111, allocations: 3.938 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.3111, allocations: 0 / 1.067 GB, free: 12.09 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.0008849/0.312, allocations: 0.539 MB / 1.068 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3121, allocations: 12.02 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.3121, allocations: 16.75 kB / 1.068 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.3124, allocations: 212 kB / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.3124, allocations: 12.38 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.3124, allocations: 8.375 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.3128, allocations: 135.1 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3128, allocations: 4 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.3128, allocations: 11.92 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3128, allocations: 0 / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.3131, allocations: 71.94 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006767/0.3137, allocations: 460.7 kB / 1.069 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.314, allocations: 85.17 kB / 1.069 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.3141, allocations: 49.75 kB / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.3142, allocations: 0 / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003176/0.3145, allocations: 145 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.3145, allocations: 0 / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12): time 0.0005837/0.3151, allocations: 193.3 kB / 1.069 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.3152, allocations: 85.11 kB / 1.069 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.3153, allocations: 164.5 kB / 1.069 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.3154, allocations: 29.7 kB / 1.069 GB, free: 9.648 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.3154, allocations: 104.4 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.3155, allocations: 31.59 kB / 1.069 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/0.3156, allocations: 41.7 kB / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3157, allocations: 326.8 kB / 1.07 GB, free: 9.133 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.3159, allocations: 43.91 kB / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.3161, allocations: 116.6 kB / 1.07 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003112/0.3164, allocations: 151.5 kB / 1.07 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3164, allocations: 7.938 kB / 1.07 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003695/0.3168, allocations: 165.6 kB / 1.07 GB, free: 8.59 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3168, allocations: 4 kB / 1.07 GB, free: 8.586 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3168, allocations: 4 kB / 1.07 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3168, allocations: 0 / 1.07 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.3169, allocations: 15.98 kB / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.317, allocations: 7.984 kB / 1.07 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.3171, allocations: 19.84 kB / 1.07 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.3171, allocations: 4 kB / 1.07 GB, free: 8.535 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.0001292/0.3172, allocations: 147.8 kB / 1.07 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.054e-05/0.3173, allocations: 11.91 kB / 1.07 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.754e-05/0.3173, allocations: 21.39 kB / 1.07 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3173, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3173, allocations: 4 kB / 1.07 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3174, allocations: 3.938 kB / 1.07 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007374/0.3181, allocations: 0.5327 MB / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3181, allocations: 0 / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.741e-05/0.3182, allocations: 15.98 kB / 1.071 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.3182, allocations: 7.938 kB / 1.071 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.3182, allocations: 480 / 1.071 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.3182, allocations: 3.938 kB / 1.071 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3182, allocations: 0 / 1.071 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000446/0.3187, allocations: 334.4 kB / 1.071 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.3187, allocations: 88.95 kB / 1.071 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.3188, allocations: 7.938 kB / 1.071 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.319, allocations: 15.98 kB / 1.071 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.319, allocations: 7.984 kB / 1.071 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.3191, allocations: 15.98 kB / 1.071 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.623e-05/0.3192, allocations: 120.2 kB / 1.072 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3192, allocations: 0 / 1.072 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003347/0.3195, allocations: 39.91 kB / 1.072 GB, free: 7.074 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.0004922/0.32, allocations: 198.5 kB / 1.072 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000368/0.3204, allocations: 115.8 kB / 1.072 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3204, allocations: 0 / 1.072 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.3206, allocations: 59.91 kB / 1.072 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.3209, allocations: 15.98 kB / 1.072 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005238/0.3215, allocations: 306.1 kB / 1.072 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.3218, allocations: 0.7195 MB / 1.073 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.703e-05/0.3219, allocations: 15.44 kB / 1.073 GB, free: 5.625 MB / 0.8419 GB Notification: Performance of SimCode: time 2.124e-06/0.3219, allocations: 0 / 1.073 GB, free: 5.625 MB / 0.8419 GB Notification: Performance of Templates: time 0.004266/0.3262, allocations: 2.071 MB / 1.075 GB, free: 3.562 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches