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.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.001313/0.001313, allocations: 78.64 kB / 19.76 MB, free: 1.875 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.001383/0.001383, allocations: 156.8 kB / 23.01 MB, free: 4.598 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.391/1.391, allocations: 177.2 MB / 203.4 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 179] 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.665/2.665, allocations: 359.1 MB / 0.6044 GB, free: 14.9 MB / 0.5762 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.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_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: 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.002101/0.002101, allocations: 71.88 kB / 0.9515 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2779, allocations: 169.9 MB / 1.117 GB, free: 2.605 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002751/0.2807, allocations: 1.59 MB / 1.119 GB, free: 1.004 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001333/0.282, allocations: 0.7286 MB / 1.12 GB, free: 276 kB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.376e-05/0.2821, allocations: 3.938 kB / 1.12 GB, free: 272 kB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.317e-05/0.2822, allocations: 7.875 kB / 1.12 GB, free: 264 kB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.625e-05/0.2822, allocations: 27.73 kB / 1.12 GB, free: 236 kB / 1.061 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.0004247/0.2826, allocations: 111.8 kB / 1.12 GB, free: 124 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002132/0.2829, allocations: 143.6 kB / 1.12 GB, free: 15.98 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.283, allocations: 25.2 kB / 1.12 GB, free: 15.96 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 8.889e-05/0.2831, allocations: 51.84 kB / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.2832, allocations: 63.67 kB / 1.12 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.2832, allocations: 15.94 kB / 1.12 GB, free: 15.83 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.2833, allocations: 47.97 kB / 1.12 GB, free: 15.78 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.726e-05/0.2834, allocations: 27.91 kB / 1.12 GB, free: 15.75 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 6.819e-05/0.2834, allocations: 43.73 kB / 1.12 GB, free: 15.71 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.2837, allocations: 183.4 kB / 1.12 GB, free: 15.53 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2837, allocations: 0 / 1.12 GB, free: 15.53 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2837, allocations: 0 / 1.12 GB, free: 15.53 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.2837, allocations: 0 / 1.12 GB, free: 15.53 MB / 1.076 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.000868/0.2846, allocations: 482.6 kB / 1.121 GB, free: 15.01 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.899e-05/0.2846, allocations: 12.03 kB / 1.121 GB, free: 15 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.228e-05/0.2847, allocations: 20.83 kB / 1.121 GB, free: 14.98 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.2849, allocations: 167 kB / 1.121 GB, free: 14.79 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.2849, allocations: 8.375 kB / 1.121 GB, free: 14.79 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.331e-05/0.2849, allocations: 12.36 kB / 1.121 GB, free: 14.77 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003183/0.2852, allocations: 131.7 kB / 1.121 GB, free: 14.63 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2852, allocations: 0 / 1.121 GB, free: 14.63 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.2853, allocations: 0 / 1.121 GB, free: 14.63 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.2853, allocations: 4 kB / 1.121 GB, free: 14.63 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.2855, allocations: 71.88 kB / 1.121 GB, free: 14.56 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006055/0.2861, allocations: 388.4 kB / 1.122 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.2863, allocations: 81.17 kB / 1.122 GB, free: 14.05 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.2865, allocations: 41.81 kB / 1.122 GB, free: 14 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.2865, allocations: 8 kB / 1.122 GB, free: 13.99 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003018/0.2868, allocations: 145 kB / 1.122 GB, free: 13.83 MB / 1.076 GB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.2868, allocations: 0 / 1.122 GB, free: 13.83 MB / 1.076 GB Notification: Performance of matching and sorting (n=12): time 0.0005885/0.2874, allocations: 189.7 kB / 1.122 GB, free: 13.64 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.2875, allocations: 89.19 kB / 1.122 GB, free: 13.54 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.2876, allocations: 162.2 kB / 1.122 GB, free: 13.37 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.2876, allocations: 33.7 kB / 1.122 GB, free: 13.33 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 8.013e-05/0.2877, allocations: 116.3 kB / 1.122 GB, free: 13.21 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.2877, allocations: 19.86 kB / 1.122 GB, free: 13.19 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-05/0.2878, allocations: 33.7 kB / 1.123 GB, free: 13.15 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2879, allocations: 334.8 kB / 1.123 GB, free: 12.81 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.2881, allocations: 31.97 kB / 1.123 GB, free: 12.78 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.2883, allocations: 199.4 kB / 1.123 GB, free: 12.53 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/0.2887, allocations: 147.5 kB / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2887, allocations: 0 / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003975/0.2891, allocations: 161.3 kB / 1.123 GB, free: 12.2 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.2891, allocations: 8 kB / 1.123 GB, free: 12.19 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2891, allocations: 288 / 1.123 GB, free: 12.19 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.2891, allocations: 8 kB / 1.123 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.2892, allocations: 23.92 kB / 1.123 GB, free: 12.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2892, allocations: 4 kB / 1.123 GB, free: 12.15 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.2893, allocations: 16.03 kB / 1.123 GB, free: 12.14 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.2893, allocations: 7.938 kB / 1.123 GB, free: 12.13 MB / 1.076 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.0001252/0.2895, allocations: 141.7 kB / 1.124 GB, free: 11.98 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.25e-05/0.2895, allocations: 15.91 kB / 1.124 GB, free: 11.96 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.054e-05/0.2895, allocations: 17.45 kB / 1.124 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2895, allocations: 8 kB / 1.124 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2895, allocations: 4 kB / 1.124 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.2896, allocations: 0 / 1.124 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007245/0.2903, allocations: 477.4 kB / 1.124 GB, free: 11.44 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2903, allocations: 4 kB / 1.124 GB, free: 11.43 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.468e-05/0.2904, allocations: 15.98 kB / 1.124 GB, free: 11.42 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2904, allocations: 0 / 1.124 GB, free: 11.42 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.2904, allocations: 7.984 kB / 1.124 GB, free: 11.41 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.2904, allocations: 7.938 kB / 1.124 GB, free: 11.4 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2904, allocations: 0 / 1.124 GB, free: 11.4 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004615/0.2908, allocations: 318.6 kB / 1.124 GB, free: 11.07 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.18e-05/0.2909, allocations: 11.91 kB / 1.124 GB, free: 11.06 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.2909, allocations: 7.984 kB / 1.124 GB, free: 11.05 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.2911, allocations: 23.95 kB / 1.124 GB, free: 11.03 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.2911, allocations: 11.92 kB / 1.124 GB, free: 11.02 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/0.2912, allocations: 15.98 kB / 1.124 GB, free: 11 MB / 1.076 GB Notification: Performance of sorting global known variables: time 9.203e-05/0.2912, allocations: 120.2 kB / 1.125 GB, free: 10.89 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.2912, allocations: 0 / 1.125 GB, free: 10.89 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003499/0.2916, allocations: 39.94 kB / 1.125 GB, free: 10.85 MB / 1.076 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.0004322/0.292, allocations: 203.6 kB / 1.125 GB, free: 10.68 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003674/0.2924, allocations: 100.4 kB / 1.125 GB, free: 10.58 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2924, allocations: 0 / 1.125 GB, free: 10.58 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.2926, allocations: 55.97 kB / 1.125 GB, free: 10.52 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.2929, allocations: 19.98 kB / 1.125 GB, free: 10.5 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004986/0.2934, allocations: 259.4 kB / 1.125 GB, free: 10.21 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001067/0.2935, allocations: 102.3 kB / 1.125 GB, free: 10.09 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.847e-05/0.2936, allocations: 20.48 kB / 1.125 GB, free: 10.07 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.283e-05/0.2936, allocations: 16.48 kB / 1.125 GB, free: 10.05 MB / 1.076 GB Notification: Performance of SimCode: time 3.2e-07/0.2936, allocations: 0 / 1.125 GB, free: 10.05 MB / 1.076 GB Notification: Performance of Templates: time 0.005395/0.299, allocations: 1.786 MB / 1.127 GB, free: 8.305 MB / 1.076 GB " [Timeout remaining time 300] 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 -s ida -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/jenkins1/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.103235221002251]