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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001668/0.002735, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001425/0.002506, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9283/0.9283, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07753/1.006, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.395/2.395, allocations: 447.1 MB / 0.675 GB, free: 5.902 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2591/2.654, allocations: 146 MB / 0.8176 GB, free: 3.816 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 0.8189 GB, free: 2.516 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.613e-05/2.743e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.512 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002603/0.00263, allocations: 1.691 MB / 0.8206 GB, free: 0.8047 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.007263/0.009893, allocations: 0.7672 MB / 0.8213 GB, free: 32 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.754e-05/0.00995, allocations: 0 / 0.8213 GB, free: 32 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 7.288e-05/0.01002, allocations: 11.86 kB / 0.8213 GB, free: 20 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 6.259e-05/0.01009, allocations: 23.78 kB / 0.8213 GB, free: 15.99 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.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.0004219/0.01051, allocations: 107.6 kB / 0.8214 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.0107, allocations: 143.5 kB / 0.8216 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.01081, allocations: 29.89 kB / 0.8216 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.01096, allocations: 95.66 kB / 0.8217 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 9.026e-05/0.01105, allocations: 47.86 kB / 0.8217 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.01107, allocations: 16 kB / 0.8218 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.01121, allocations: 59.83 kB / 0.8218 GB, free: 15.51 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 5.011e-05/0.01126, allocations: 19.94 kB / 0.8218 GB, free: 15.49 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.708e-05/0.0113, allocations: 31.88 kB / 0.8219 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.01151, allocations: 127.6 kB / 0.822 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.261e-05/0.01152, allocations: 0 / 0.822 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.713e-06/0.01153, allocations: 0 / 0.822 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.296e-05/0.01154, allocations: 0 / 0.822 GB, free: 15.33 MB / 0.8073 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.003707/0.01524, allocations: 492.8 kB / 0.8225 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.01528, allocations: 12.03 kB / 0.8225 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.371e-05/0.01533, allocations: 12.92 kB / 0.8225 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.01552, allocations: 149.6 kB / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.01553, allocations: 8.359 kB / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.01556, allocations: 16.31 kB / 0.8226 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.01575, allocations: 103.4 kB / 0.8227 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.01576, allocations: 192 / 0.8227 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.01577, allocations: 12.38 kB / 0.8228 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.01578, allocations: 3.938 kB / 0.8228 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.48e-05/0.01581, allocations: 15.98 kB / 0.8228 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000378/0.01619, allocations: 299.1 kB / 0.8231 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.642e-05/0.01627, allocations: 53.12 kB / 0.8231 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.088e-05/0.0163, allocations: 21.72 kB / 0.8231 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.01632, allocations: 3.938 kB / 0.8231 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.01647, allocations: 119.9 kB / 0.8232 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.01647, allocations: 4 kB / 0.8233 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.0001735/0.01664, allocations: 77.59 kB / 0.8233 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.01668, allocations: 85.09 kB / 0.8234 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.906e-05/0.01678, allocations: 162.6 kB / 0.8236 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.0168, allocations: 33.7 kB / 0.8236 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.794e-05/0.01685, allocations: 100.4 kB / 0.8237 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.01689, allocations: 31.78 kB / 0.8237 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.419e-05/0.01694, allocations: 37.69 kB / 0.8238 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.01703, allocations: 326.8 kB / 0.8241 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.136e-05/0.01706, allocations: 7.938 kB / 0.8241 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.01718, allocations: 228.7 kB / 0.8243 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.459e-05/0.01727, allocations: 93.53 kB / 0.8244 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01727, allocations: 64 / 0.8244 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001343/0.01741, allocations: 101.5 kB / 0.8245 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.01742, allocations: 8 kB / 0.8245 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.01743, allocations: 3.938 kB / 0.8245 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.01744, allocations: 4 kB / 0.8245 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.49e-05/0.01753, allocations: 15.98 kB / 0.8245 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.01753, allocations: 4 kB / 0.8245 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.619e-05/0.01759, allocations: 8 kB / 0.8245 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.01761, allocations: 12.23 kB / 0.8245 GB, free: 12.41 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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.128e-05/0.0177, allocations: 129.4 kB / 0.8247 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.01772, allocations: 15.92 kB / 0.8247 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.01777, allocations: 21.64 kB / 0.8247 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.01777, allocations: 7.984 kB / 0.8247 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.01778, allocations: 0 / 0.8247 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.01778, allocations: 3.938 kB / 0.8247 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.02008, allocations: 345.8 kB / 0.825 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.02009, allocations: 0 / 0.825 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.999e-05/0.02015, allocations: 12 kB / 0.825 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.716e-05/0.02016, allocations: 23.83 kB / 0.8251 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.02017, allocations: 0 / 0.8251 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.02017, allocations: 4 kB / 0.8251 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.02018, allocations: 0 / 0.8251 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.02018, allocations: 0 / 0.8251 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.02033, allocations: 250.7 kB / 0.8253 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.02034, allocations: 0 / 0.8253 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.02046, allocations: 11.98 kB / 0.8253 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.0205, allocations: 11.98 kB / 0.8253 GB, free: 11.53 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.02053, allocations: 7.984 kB / 0.8253 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.397e-05/0.02057, allocations: 57.8 kB / 0.8254 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.02057, allocations: 0 / 0.8254 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000309/0.02088, allocations: 39.94 kB / 0.8254 GB, free: 11.43 MB / 0.8073 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.0005015/0.02138, allocations: 222.6 kB / 0.8256 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001416/0.02152, allocations: 60.75 kB / 0.8257 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/0.02153, allocations: 7.938 kB / 0.8257 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.37e-05/0.02159, allocations: 29.59 kB / 0.8257 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.02192, allocations: 143 kB / 0.8259 GB, free: 11 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005659/0.02249, allocations: 252.7 kB / 0.8261 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.655e-05/0.02254, allocations: 67.84 kB / 0.8262 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.73e-05/0.0226, allocations: 24.41 kB / 0.8262 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.358e-05/0.02268, allocations: 75.36 kB / 0.8263 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of SimCode: time 6.91e-07/0.02268, allocations: 0 / 0.8263 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of Templates: time 0.00394/0.02662, allocations: 2.032 MB / 0.8283 GB, free: 8.547 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.190696781501174]