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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 199.7 kB / 22.17 MB, free: 5.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.6 MB / 250.9 MB, free: 13.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.876/2.876, allocations: 476.7 MB / 0.7645 GB, free: 10.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 68.12 kB / 1.109 GB, free: 6.555 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8762/0.8783, allocations: 168.7 MB / 1.274 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003024/0.8813, allocations: 1.605 MB / 1.276 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001439/0.8828, allocations: 0.7184 MB / 1.276 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.952e-05/0.8828, allocations: 0 / 1.276 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.883, allocations: 15.86 kB / 1.276 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.562e-05/0.883, allocations: 27.67 kB / 1.276 GB, free: 2.188 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.0004627/0.8835, allocations: 103.7 kB / 1.276 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.8837, allocations: 135.6 kB / 1.277 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.8839, allocations: 25.09 kB / 1.277 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.884, allocations: 55.78 kB / 1.277 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.8841, allocations: 67.67 kB / 1.277 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.8841, allocations: 12 kB / 1.277 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.8842, allocations: 51.97 kB / 1.277 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.066e-05/0.8843, allocations: 27.91 kB / 1.277 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.8e-05/0.8844, allocations: 59.66 kB / 1.277 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.8846, allocations: 170 kB / 1.277 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.8846, allocations: 4 kB / 1.277 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.021e-06/0.8846, allocations: 0 / 1.277 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.8846, allocations: 0 / 1.277 GB, free: 1.492 MB / 0.9669 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.0009772/0.8856, allocations: 0.5505 MB / 1.278 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.8857, allocations: 12.03 kB / 1.278 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.856e-05/0.8857, allocations: 16.84 kB / 1.278 GB, free: 0.8477 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.886, allocations: 216.1 kB / 1.278 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.886, allocations: 8.375 kB / 1.278 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.017e-05/0.886, allocations: 12.36 kB / 1.278 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.8864, allocations: 134.2 kB / 1.278 GB, free: 448 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.8864, allocations: 0 / 1.278 GB, free: 448 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.8864, allocations: 11.94 kB / 1.278 GB, free: 436 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.8864, allocations: 0 / 1.278 GB, free: 436 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.8866, allocations: 67.94 kB / 1.278 GB, free: 368 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007301/0.8874, allocations: 468.7 kB / 1.278 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.8876, allocations: 81.12 kB / 1.279 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.8877, allocations: 41.81 kB / 1.279 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.8878, allocations: 4 kB / 1.279 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003865/0.8881, allocations: 149 kB / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/0.8881, allocations: 0 / 1.279 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0006341/0.8888, allocations: 189.4 kB / 1.279 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.8889, allocations: 77.11 kB / 1.279 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.889, allocations: 162.4 kB / 1.279 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.225e-05/0.889, allocations: 37.7 kB / 1.279 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.264e-05/0.8891, allocations: 116.3 kB / 1.279 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.194e-05/0.8892, allocations: 27.8 kB / 1.279 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.8892, allocations: 33.7 kB / 1.279 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.8894, allocations: 334.8 kB / 1.28 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.8895, allocations: 35.97 kB / 1.28 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.8898, allocations: 129.1 kB / 1.28 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003432/0.8901, allocations: 147.5 kB / 1.28 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.8901, allocations: 0 / 1.28 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003925/0.8905, allocations: 169.3 kB / 1.28 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.8905, allocations: 8 kB / 1.28 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.8905, allocations: 288 / 1.28 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.8905, allocations: 8 kB / 1.28 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.8907, allocations: 15.98 kB / 1.28 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.8907, allocations: 3.938 kB / 1.28 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.8908, allocations: 24.16 kB / 1.28 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.8908, allocations: 4 kB / 1.28 GB, free: 13.91 MB / 0.9825 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.0001439/0.8909, allocations: 138.3 kB / 1.28 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.121e-05/0.891, allocations: 15.91 kB / 1.28 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.891, allocations: 21.41 kB / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.891, allocations: 0 / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/0.891, allocations: 4 kB / 1.28 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.891, allocations: 7.922 kB / 1.28 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007751/0.8918, allocations: 0.525 MB / 1.281 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.8918, allocations: 4 kB / 1.281 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.36e-05/0.8919, allocations: 19.92 kB / 1.281 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.8919, allocations: 4.406 kB / 1.281 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.8919, allocations: 7.984 kB / 1.281 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.8919, allocations: 4 kB / 1.281 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8919, allocations: 0 / 1.281 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004654/0.8924, allocations: 326.5 kB / 1.281 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.726e-05/0.8925, allocations: 89.02 kB / 1.281 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.8925, allocations: 11.92 kB / 1.281 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.8927, allocations: 11.98 kB / 1.281 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.999e-05/0.8927, allocations: 15.98 kB / 1.281 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.464e-05/0.8928, allocations: 7.938 kB / 1.281 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.42e-05/0.8929, allocations: 124.2 kB / 1.281 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.8929, allocations: 0 / 1.281 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000356/0.8932, allocations: 43.92 kB / 1.282 GB, free: 12.44 MB / 0.9825 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.0005676/0.8938, allocations: 201.2 kB / 1.282 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004027/0.8942, allocations: 108.2 kB / 1.282 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.8942, allocations: 4.125 kB / 1.282 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.8944, allocations: 51.89 kB / 1.282 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.8947, allocations: 19.97 kB / 1.282 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005517/0.8953, allocations: 255.3 kB / 1.282 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.8956, allocations: 0.7158 MB / 1.283 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.889e-05/0.8957, allocations: 20.53 kB / 1.283 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.64e-05/0.8958, allocations: 15.44 kB / 1.283 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of SimCode: time 4.2e-07/0.8958, allocations: 4.125 kB / 1.283 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of Templates: time 0.005892/0.9016, allocations: 1.82 MB / 1.285 GB, free: 9.23 MB / 0.9825 GB " [Timeout remaining time 299] 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 cvode -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_2/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: 9.00242590624839]