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.001447/0.001447, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.001517/0.001517, allocations: 211 kB / 22.24 MB, free: 4.855 MB / 14.72 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 1.442/1.442, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.333/3.333, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.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=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 67.67 kB / 1.186 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3587, allocations: 181.9 MB / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002935/0.3616, allocations: 1.583 MB / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001483/0.3631, allocations: 0.7297 MB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.505e-05/0.3631, allocations: 0 / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.3632, allocations: 19.8 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.671e-05/0.3633, allocations: 19.8 kB / 1.366 GB, free: 11.21 MB / 1.061 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.0004486/0.3638, allocations: 111.7 kB / 1.366 GB, free: 11.1 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002201/0.364, allocations: 135.5 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.3641, allocations: 29.28 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.913e-05/0.3642, allocations: 59.72 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.3643, allocations: 59.75 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.3643, allocations: 12 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.3645, allocations: 47.97 kB / 1.367 GB, free: 10.76 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.311e-05/0.3645, allocations: 35.89 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.865e-05/0.3646, allocations: 47.73 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.3649, allocations: 175.3 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3649, allocations: 0 / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3649, allocations: 0 / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3649, allocations: 0 / 1.367 GB, free: 10.51 MB / 1.061 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.0008958/0.3658, allocations: 482.6 kB / 1.367 GB, free: 9.988 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.3658, allocations: 12.03 kB / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.901e-05/0.3659, allocations: 20.84 kB / 1.367 GB, free: 9.957 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.3661, allocations: 166.7 kB / 1.367 GB, free: 9.77 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.3661, allocations: 4.375 kB / 1.367 GB, free: 9.766 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.3661, allocations: 16.38 kB / 1.367 GB, free: 9.75 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.3665, allocations: 135.6 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3665, allocations: 3.938 kB / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.3665, allocations: 4 kB / 1.368 GB, free: 9.598 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3665, allocations: 0 / 1.368 GB, free: 9.598 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002615/0.3668, allocations: 67.94 kB / 1.368 GB, free: 9.531 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/0.3674, allocations: 384.5 kB / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002195/0.3676, allocations: 81.17 kB / 1.368 GB, free: 9.023 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.3678, allocations: 45.81 kB / 1.368 GB, free: 8.973 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.3678, allocations: 7.938 kB / 1.368 GB, free: 8.965 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003452/0.3682, allocations: 141 kB / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.3682, allocations: 0 / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0006049/0.3688, allocations: 193.5 kB / 1.368 GB, free: 8.613 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.3688, allocations: 85.05 kB / 1.369 GB, free: 8.512 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.369, allocations: 158.3 kB / 1.369 GB, free: 8.348 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.369, allocations: 37.69 kB / 1.369 GB, free: 8.305 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.893e-05/0.3691, allocations: 112.3 kB / 1.369 GB, free: 8.188 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.079e-05/0.3691, allocations: 35.8 kB / 1.369 GB, free: 8.152 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.978e-05/0.3692, allocations: 33.7 kB / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.3694, allocations: 330.8 kB / 1.369 GB, free: 7.781 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.3695, allocations: 39.95 kB / 1.369 GB, free: 7.742 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.3698, allocations: 194.2 kB / 1.369 GB, free: 7.5 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.3701, allocations: 143.6 kB / 1.37 GB, free: 7.332 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3701, allocations: 0 / 1.37 GB, free: 7.332 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004189/0.3705, allocations: 173.3 kB / 1.37 GB, free: 7.156 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3705, allocations: 8 kB / 1.37 GB, free: 7.148 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3705, allocations: 3.938 kB / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3705, allocations: 4 kB / 1.37 GB, free: 7.141 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.3706, allocations: 15.98 kB / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3707, allocations: 288 / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.3708, allocations: 19.98 kB / 1.37 GB, free: 7.105 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.3708, allocations: 8.375 kB / 1.37 GB, free: 7.098 MB / 1.061 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.000139/0.3709, allocations: 141.6 kB / 1.37 GB, free: 6.949 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.3709, allocations: 15.91 kB / 1.37 GB, free: 6.934 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.334e-05/0.371, allocations: 17.41 kB / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.371, allocations: 3.938 kB / 1.37 GB, free: 6.906 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.371, allocations: 240 / 1.37 GB, free: 6.906 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.371, allocations: 7.984 kB / 1.37 GB, free: 6.898 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007313/0.3717, allocations: 477.2 kB / 1.37 GB, free: 6.395 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3717, allocations: 0 / 1.37 GB, free: 6.395 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.763e-05/0.3718, allocations: 11.98 kB / 1.37 GB, free: 6.383 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3718, allocations: 4 kB / 1.37 GB, free: 6.379 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3718, allocations: 0 / 1.37 GB, free: 6.379 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.3718, allocations: 3.938 kB / 1.37 GB, free: 6.375 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3718, allocations: 4 kB / 1.37 GB, free: 6.371 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004657/0.3723, allocations: 334.5 kB / 1.371 GB, free: 6.027 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.235e-05/0.3723, allocations: 11.91 kB / 1.371 GB, free: 6.016 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.3724, allocations: 8 kB / 1.371 GB, free: 6.008 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.3725, allocations: 23.91 kB / 1.371 GB, free: 5.984 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.3726, allocations: 11.98 kB / 1.371 GB, free: 5.973 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.3726, allocations: 4 kB / 1.371 GB, free: 5.969 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001094/0.3727, allocations: 124.2 kB / 1.371 GB, free: 5.848 MB / 1.061 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3727, allocations: 0 / 1.371 GB, free: 5.848 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003576/0.3731, allocations: 39.92 kB / 1.371 GB, free: 5.809 MB / 1.061 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.0004684/0.3736, allocations: 188 kB / 1.371 GB, free: 5.652 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003876/0.374, allocations: 111.7 kB / 1.371 GB, free: 5.543 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.374, allocations: 0 / 1.371 GB, free: 5.543 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.3741, allocations: 43.95 kB / 1.371 GB, free: 5.5 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.3745, allocations: 30.11 kB / 1.371 GB, free: 5.473 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005522/0.375, allocations: 255.7 kB / 1.372 GB, free: 5.195 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.3752, allocations: 110.1 kB / 1.372 GB, free: 5.066 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.141e-05/0.3752, allocations: 20.47 kB / 1.372 GB, free: 5.047 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.975e-05/0.3753, allocations: 23.44 kB / 1.372 GB, free: 5.023 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/0.3753, allocations: 0 / 1.372 GB, free: 5.023 MB / 1.061 GB Notification: Performance of Templates: time 0.005855/0.3811, allocations: 1.865 MB / 1.374 GB, free: 3.199 MB / 1.061 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 800] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.888631729409099]