Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002279/0.002279, allocations: 83.69 kB / 20.24 MB, free: 4.176 MB / 18.57 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.002044/0.002044, allocations: 165.3 kB / 23.56 MB, free: 0.8594 MB / 18.57 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.535/1.535, allocations: 177.1 MB / 203.9 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.031/3.031, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 0.8108 GB, free: 2.156 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.504e-05/2.622e-05, allocations: 6.25 kB / 0.8108 GB, free: 2.148 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002935/0.002961, allocations: 1.628 MB / 0.8124 GB, free: 0.5352 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001643/0.004604, allocations: 0.7386 MB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.87e-05/0.004653, allocations: 3.938 kB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.004755, allocations: 13.41 kB / 0.8131 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 5.739e-05/0.004812, allocations: 19.73 kB / 0.8131 GB, free: 15.76 MB / 0.7761 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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.0004543/0.005266, allocations: 115.6 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.005503, allocations: 141.2 kB / 0.8134 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.005616, allocations: 25.28 kB / 0.8134 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.00576, allocations: 75.81 kB / 0.8135 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.005863, allocations: 55.8 kB / 0.8135 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.005892, allocations: 9.188 kB / 0.8135 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.006019, allocations: 55.89 kB / 0.8136 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.109e-05/0.00608, allocations: 27.91 kB / 0.8136 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.117e-05/0.006161, allocations: 45.7 kB / 0.8137 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.006468, allocations: 187.4 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.006471, allocations: 0 / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.61e-07/0.006471, allocations: 0 / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.006475, allocations: 0 / 0.8138 GB, free: 15.04 MB / 0.7761 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.0009549/0.00743, allocations: 0.5734 MB / 0.8144 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.007464, allocations: 12.03 kB / 0.8144 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.171e-05/0.007536, allocations: 17.61 kB / 0.8144 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.007782, allocations: 164.2 kB / 0.8146 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.007798, allocations: 8.906 kB / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.007821, allocations: 8.375 kB / 0.8146 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.008114, allocations: 123.2 kB / 0.8147 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.008123, allocations: 192 / 0.8147 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.008138, allocations: 384 / 0.8147 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.008147, allocations: 7.938 kB / 0.8147 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.008327, allocations: 49.59 kB / 0.8148 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008845/0.009212, allocations: 486.5 kB / 0.8152 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.009422, allocations: 99.19 kB / 0.8153 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.009536, allocations: 40.86 kB / 0.8154 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.009562, allocations: 4 kB / 0.8154 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000292/0.009854, allocations: 141.4 kB / 0.8155 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.009855, allocations: 0 / 0.8155 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.000516/0.01037, allocations: 170.2 kB / 0.8157 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.01044, allocations: 81.7 kB / 0.8157 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.01066, allocations: 238.8 kB / 0.816 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.01069, allocations: 30.55 kB / 0.816 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.01082, allocations: 163.1 kB / 0.8162 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 5.745e-05/0.01088, allocations: 41.69 kB / 0.8162 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-05/0.01097, allocations: 43.36 kB / 0.8162 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002902/0.01126, allocations: 0.5001 MB / 0.8167 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.01136, allocations: 23.98 kB / 0.8167 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.01164, allocations: 222 kB / 0.817 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.01195, allocations: 165.2 kB / 0.8171 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01196, allocations: 0 / 0.8171 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003484/0.0123, allocations: 155.8 kB / 0.8173 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.01232, allocations: 8 kB / 0.8173 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01233, allocations: 0 / 0.8173 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.01235, allocations: 4.719 kB / 0.8173 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.832e-05/0.01244, allocations: 11.94 kB / 0.8173 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.01246, allocations: 8.641 kB / 0.8173 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.489e-05/0.01254, allocations: 15.69 kB / 0.8173 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.01255, allocations: 4 kB / 0.8173 GB, free: 11.12 MB / 0.7761 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.0001623/0.01272, allocations: 180.4 kB / 0.8175 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.01276, allocations: 27.89 kB / 0.8175 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.39e-05/0.0128, allocations: 13.47 kB / 0.8175 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01281, allocations: 0 / 0.8175 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.01281, allocations: 8 kB / 0.8175 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.01282, allocations: 3.984 kB / 0.8175 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007687/0.01359, allocations: 0.5491 MB / 0.8181 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01359, allocations: 0 / 0.8181 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.328e-05/0.01365, allocations: 15.98 kB / 0.8181 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.01365, allocations: 0 / 0.8181 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.01367, allocations: 4 kB / 0.8181 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.01367, allocations: 0.9688 kB / 0.8181 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01367, allocations: 0 / 0.8181 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009138/0.01458, allocations: 411.9 kB / 0.8185 GB, free: 9.848 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.01461, allocations: 19.91 kB / 0.8185 GB, free: 9.828 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.01463, allocations: 4 kB / 0.8185 GB, free: 9.824 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.0148, allocations: 13.11 kB / 0.8185 GB, free: 9.812 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.01485, allocations: 11.98 kB / 0.8185 GB, free: 9.801 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/0.01489, allocations: 13.02 kB / 0.8185 GB, free: 9.789 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001385/0.01503, allocations: 172.2 kB / 0.8187 GB, free: 9.621 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01503, allocations: 0 / 0.8187 GB, free: 9.621 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003392/0.01537, allocations: 40.75 kB / 0.8187 GB, free: 9.582 MB / 0.7761 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.0006365/0.01601, allocations: 201.8 kB / 0.8189 GB, free: 9.414 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003159/0.01632, allocations: 96.83 kB / 0.819 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.01632, allocations: 0 / 0.819 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.01646, allocations: 59.59 kB / 0.8191 GB, free: 9.258 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.01683, allocations: 25.86 kB / 0.8191 GB, free: 9.234 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005497/0.01738, allocations: 267.1 kB / 0.8194 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.01751, allocations: 110.1 kB / 0.8195 GB, free: 8.812 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.93e-05/0.01758, allocations: 28.48 kB / 0.8195 GB, free: 8.785 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.856e-05/0.01762, allocations: 16.5 kB / 0.8195 GB, free: 8.77 MB / 0.7761 GB Notification: Performance of SimCode: time 4.71e-07/0.01762, allocations: 0 / 0.8195 GB, free: 8.77 MB / 0.7761 GB Notification: Performance of Templates: time 0.006083/0.0237, allocations: 1.789 MB / 0.8213 GB, free: 7.023 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 7.927855804096907]