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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002012/0.002012, allocations: 114.2 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00202/0.00202, allocations: 189 kB / 22.22 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.74/2.74, allocations: 476.7 MB / 0.7646 GB, free: 9.914 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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=2500,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=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 67.88 kB / 1.11 GB, free: 6.371 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.88/0.882, allocations: 168.8 MB / 1.274 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003098/0.8851, allocations: 1.607 MB / 1.276 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.8865, allocations: 0.7146 MB / 1.277 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-05/0.8865, allocations: 0 / 1.277 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.8866, allocations: 19.73 kB / 1.277 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.824e-05/0.8867, allocations: 23.8 kB / 1.277 GB, free: 1.875 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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.0004604/0.8872, allocations: 107.7 kB / 1.277 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.8874, allocations: 135.5 kB / 1.277 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.8875, allocations: 17.31 kB / 1.277 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.8876, allocations: 59.83 kB / 1.277 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.8877, allocations: 71.62 kB / 1.277 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.8877, allocations: 11.98 kB / 1.277 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.8879, allocations: 51.97 kB / 1.277 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.063e-05/0.8879, allocations: 31.91 kB / 1.277 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.4e-05/0.888, allocations: 59.66 kB / 1.277 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000246/0.8882, allocations: 165.8 kB / 1.277 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.8883, allocations: 0 / 1.277 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.252e-06/0.8883, allocations: 0 / 1.277 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.8883, allocations: 0 / 1.277 GB, free: 1.184 MB / 0.9669 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.0008805/0.8891, allocations: 494.5 kB / 1.278 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.8892, allocations: 12.03 kB / 1.278 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.535e-05/0.8892, allocations: 16.84 kB / 1.278 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.8895, allocations: 162.2 kB / 1.278 GB, free: 452 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.8895, allocations: 8.375 kB / 1.278 GB, free: 444 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.8895, allocations: 8.312 kB / 1.278 GB, free: 436 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.8898, allocations: 138.8 kB / 1.278 GB, free: 288 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.8898, allocations: 4 kB / 1.278 GB, free: 284 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.8898, allocations: 11.98 kB / 1.278 GB, free: 272 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.8898, allocations: 0 / 1.278 GB, free: 272 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.8901, allocations: 67.88 kB / 1.278 GB, free: 204 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007008/0.8908, allocations: 439.8 kB / 1.279 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.891, allocations: 69.19 kB / 1.279 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.8911, allocations: 45.81 kB / 1.279 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.8911, allocations: 7.984 kB / 1.279 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.8914, allocations: 152.9 kB / 1.279 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.8914, allocations: 0 / 1.279 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005629/0.892, allocations: 193.4 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.8921, allocations: 77.11 kB / 1.279 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.8922, allocations: 162.3 kB / 1.279 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.8923, allocations: 33.7 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.8923, allocations: 116.3 kB / 1.279 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.8924, allocations: 31.78 kB / 1.279 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.038e-05/0.8924, allocations: 29.72 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.8926, allocations: 338.8 kB / 1.28 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.8927, allocations: 36.08 kB / 1.28 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.8929, allocations: 126.1 kB / 1.28 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.8932, allocations: 147.5 kB / 1.28 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8932, allocations: 0 / 1.28 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003608/0.8936, allocations: 169.4 kB / 1.28 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.8936, allocations: 8 kB / 1.28 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.8936, allocations: 0 / 1.28 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.8936, allocations: 4 kB / 1.28 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.8937, allocations: 15.92 kB / 1.28 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.8938, allocations: 4 kB / 1.28 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.8939, allocations: 20.14 kB / 1.28 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.8939, allocations: 16 kB / 1.28 GB, free: 13.78 MB / 0.9825 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.0001259/0.894, allocations: 134.3 kB / 1.28 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.894, allocations: 12.28 kB / 1.28 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.332e-05/0.8941, allocations: 17.41 kB / 1.28 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.8941, allocations: 4 kB / 1.28 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.8941, allocations: 3.984 kB / 1.28 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.8941, allocations: 7.875 kB / 1.28 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008084/0.8949, allocations: 0.4929 MB / 1.281 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.8949, allocations: 0 / 1.281 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/0.895, allocations: 15.98 kB / 1.281 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.895, allocations: 3.938 kB / 1.281 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.895, allocations: 7.984 kB / 1.281 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.895, allocations: 4 kB / 1.281 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.895, allocations: 0 / 1.281 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004195/0.8954, allocations: 318.5 kB / 1.281 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.342e-05/0.8954, allocations: 23.84 kB / 1.281 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.8955, allocations: 3.938 kB / 1.281 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.8956, allocations: 15.97 kB / 1.281 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.76e-05/0.8957, allocations: 15.98 kB / 1.281 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.8957, allocations: 8 kB / 1.281 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.798e-05/0.8958, allocations: 128.2 kB / 1.282 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.8958, allocations: 0 / 1.282 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003398/0.8962, allocations: 35.94 kB / 1.282 GB, free: 12.46 MB / 0.9825 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.0005217/0.8967, allocations: 210.5 kB / 1.282 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003602/0.897, allocations: 99.88 kB / 1.282 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.8971, allocations: 4 kB / 1.282 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.8972, allocations: 55.83 kB / 1.282 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.8976, allocations: 26.86 kB / 1.282 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005134/0.8981, allocations: 263.3 kB / 1.282 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.8985, allocations: 0.7119 MB / 1.283 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.059e-05/0.8986, allocations: 24.47 kB / 1.283 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.8986, allocations: 15.44 kB / 1.283 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.8986, allocations: 0 / 1.283 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of Templates: time 0.005781/0.9044, allocations: 1.827 MB / 1.285 GB, free: 9.223 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (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) [Timeout 400] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.653863956220448]