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.0009891/0.0009891, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001434/0.001434, allocations: 161 kB / 23.82 MB, free: 0.75 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 0.9969/0.9969, allocations: 177.1 MB / 204.2 MB, free: 5.254 MB / 186.7 MB " [Timeout remaining time 179] 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 1.798/1.798, allocations: 377.8 MB / 0.6236 GB, free: 8.523 MB / 0.5886 GB " [Timeout remaining time 178] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0.7656 kB / 0.8115 GB, free: 1.766 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.504e-05/1.652e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.762 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00185/0.001866, allocations: 1.643 MB / 0.8131 GB, free: 132 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.002954, allocations: 0.7575 MB / 0.8138 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.767e-05/0.003001, allocations: 3.938 kB / 0.8139 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 9.613e-05/0.003097, allocations: 8.531 kB / 0.8139 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.595e-05/0.003143, allocations: 28.47 kB / 0.8139 GB, free: 15.33 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.0004098/0.003553, allocations: 108.8 kB / 0.814 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.00372, allocations: 139.5 kB / 0.8141 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.003837, allocations: 25.28 kB / 0.8141 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.003937, allocations: 80.33 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.448e-05/0.004012, allocations: 51.86 kB / 0.8143 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.004035, allocations: 12.5 kB / 0.8143 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.004138, allocations: 48.45 kB / 0.8143 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.923e-05/0.004188, allocations: 37.08 kB / 0.8144 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.538e-05/0.004243, allocations: 39.89 kB / 0.8144 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.004449, allocations: 151.5 kB / 0.8146 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.004451, allocations: 0 / 0.8146 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of FrontEnd: time 4.61e-07/0.004451, allocations: 2.312 kB / 0.8146 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.004455, allocations: 0 / 0.8146 GB, free: 14.65 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.0005539/0.005009, allocations: 0.5641 MB / 0.8151 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.005041, allocations: 12.62 kB / 0.8151 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.005093, allocations: 30.17 kB / 0.8151 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.005256, allocations: 156.4 kB / 0.8153 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.005269, allocations: 8.312 kB / 0.8153 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.005291, allocations: 16.36 kB / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.005468, allocations: 111.8 kB / 0.8154 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.00548, allocations: 192 / 0.8154 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.005495, allocations: 8.375 kB / 0.8154 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.005504, allocations: 7.922 kB / 0.8154 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.377e-05/0.005548, allocations: 17.89 kB / 0.8155 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004133/0.005961, allocations: 474.4 kB / 0.8159 GB, free: 13.13 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.564e-05/0.006047, allocations: 79.3 kB / 0.816 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.628e-05/0.006083, allocations: 19.38 kB / 0.816 GB, free: 13 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.006106, allocations: 8.125 kB / 0.816 GB, free: 13 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001434/0.006249, allocations: 117.7 kB / 0.8161 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.00625, allocations: 0 / 0.8161 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12): time 0.0002417/0.006492, allocations: 121.4 kB / 0.8162 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.006529, allocations: 77.64 kB / 0.8163 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.00664, allocations: 220.2 kB / 0.8165 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.006659, allocations: 33.64 kB / 0.8166 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.496e-05/0.006724, allocations: 160 kB / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.006757, allocations: 31.73 kB / 0.8167 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.006804, allocations: 40.17 kB / 0.8168 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.006912, allocations: 0.5001 MB / 0.8173 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.446e-05/0.006936, allocations: 8.531 kB / 0.8173 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.00704, allocations: 205.3 kB / 0.8175 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.007147, allocations: 124.2 kB / 0.8176 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.007149, allocations: 4.719 kB / 0.8176 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001367/0.007286, allocations: 123.1 kB / 0.8177 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.0073, allocations: 13.27 kB / 0.8177 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.007304, allocations: 0 / 0.8177 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.007321, allocations: 4 kB / 0.8177 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.624e-05/0.007388, allocations: 12.61 kB / 0.8177 GB, free: 11.03 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.007396, allocations: 12.7 kB / 0.8177 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.441e-05/0.00744, allocations: 12 kB / 0.8178 GB, free: 11 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.007451, allocations: 9.656 kB / 0.8178 GB, free: 11 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.0003299/0.00778, allocations: 176.4 kB / 0.8179 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.007804, allocations: 27.89 kB / 0.818 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.007842, allocations: 13.47 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.007844, allocations: 0.875 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.00785, allocations: 0 / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.007855, allocations: 7.453 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003543/0.008209, allocations: 0.516 MB / 0.8185 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.008211, allocations: 0 / 0.8185 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.375e-05/0.008245, allocations: 8 kB / 0.8185 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.008247, allocations: 0 / 0.8185 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.008257, allocations: 7.984 kB / 0.8185 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.008259, allocations: 0 / 0.8185 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.00826, allocations: 0 / 0.8185 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.008448, allocations: 379.2 kB / 0.8189 GB, free: 9.805 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.21e-05/0.00846, allocations: 19.83 kB / 0.8189 GB, free: 9.785 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.008473, allocations: 0.5 kB / 0.8189 GB, free: 9.785 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.549e-05/0.008558, allocations: 13.11 kB / 0.8189 GB, free: 9.773 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.0086, allocations: 15.97 kB / 0.8189 GB, free: 9.758 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.008623, allocations: 13.03 kB / 0.8189 GB, free: 9.746 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.103e-05/0.008684, allocations: 159.4 kB / 0.8191 GB, free: 9.59 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.008685, allocations: 0 / 0.8191 GB, free: 9.59 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002381/0.008923, allocations: 40.58 kB / 0.8191 GB, free: 9.551 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.0003329/0.009256, allocations: 208.3 kB / 0.8193 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001415/0.009397, allocations: 64.53 kB / 0.8194 GB, free: 9.316 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.009398, allocations: 0 / 0.8194 GB, free: 9.316 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.009449, allocations: 44.62 kB / 0.8194 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.009697, allocations: 23.89 kB / 0.8194 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000375/0.01007, allocations: 259.3 kB / 0.8197 GB, free: 8.965 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.186e-05/0.01011, allocations: 68.41 kB / 0.8198 GB, free: 8.879 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.545e-05/0.01016, allocations: 25.72 kB / 0.8198 GB, free: 8.852 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/0.01019, allocations: 12.5 kB / 0.8198 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of SimCode: time 5.61e-07/0.01019, allocations: 4 kB / 0.8198 GB, free: 8.836 MB / 0.7761 GB Notification: Performance of Templates: time 0.003588/0.01378, allocations: 1.801 MB / 0.8216 GB, free: 7.086 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.140558977145702]