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.001184/0.001184, allocations: 104.2 kB / 19.75 MB, free: 1.922 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.001743/0.001743, allocations: 214.9 kB / 23.04 MB, free: 4.473 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.524/1.524, allocations: 230.6 MB / 256.8 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.337/3.337, allocations: 0.49 GB / 0.7959 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.003103/0.003103, allocations: 70.19 kB / 1.155 GB, free: 25.01 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4375/0.4406, allocations: 176.1 MB / 1.327 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003164/0.4437, allocations: 1.589 MB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.4453, allocations: 0.7325 MB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.822e-05/0.4454, allocations: 8 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.4455, allocations: 11.81 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.778e-05/0.4455, allocations: 15.8 kB / 1.329 GB, free: 14.5 MB / 1.029 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.0005151/0.4461, allocations: 111.8 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002389/0.4463, allocations: 147.5 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.4464, allocations: 21.3 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.4465, allocations: 55.78 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.4466, allocations: 59.73 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.4467, allocations: 8 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.4468, allocations: 59.95 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.793e-05/0.4469, allocations: 31.86 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.377e-05/0.447, allocations: 51.77 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.4473, allocations: 171.2 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4473, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4473, allocations: 0 / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.585e-06/0.4473, allocations: 0 / 1.33 GB, free: 13.79 MB / 1.029 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.001046/0.4483, allocations: 494.5 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4484, allocations: 8.031 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.486e-05/0.4484, allocations: 16.84 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.4487, allocations: 154.3 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.4487, allocations: 8.375 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.4487, allocations: 8.375 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.4491, allocations: 131.6 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.4491, allocations: 4 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.4491, allocations: 7.984 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.4491, allocations: 4 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002364/0.4493, allocations: 63.94 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007101/0.45, allocations: 384.5 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.4502, allocations: 77.19 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.4504, allocations: 49.86 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.4504, allocations: 3.938 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003615/0.4508, allocations: 153 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.4508, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006419/0.4514, allocations: 197.3 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.348e-05/0.4515, allocations: 85.09 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.4517, allocations: 162.8 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.4518, allocations: 29.7 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.4519, allocations: 112.3 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.4519, allocations: 27.84 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.86e-05/0.452, allocations: 37.7 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001991/0.4522, allocations: 322.8 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.4523, allocations: 43.97 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.4526, allocations: 195.3 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.4529, allocations: 151.5 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4529, allocations: 0 / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003832/0.4533, allocations: 165.5 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.4533, allocations: 4 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4533, allocations: 4 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.4533, allocations: 4 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.4534, allocations: 15.98 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.4534, allocations: 11.92 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.568e-05/0.4535, allocations: 12 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.4536, allocations: 4 kB / 1.333 GB, free: 10.38 MB / 1.029 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.0001413/0.4537, allocations: 150.6 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.451e-05/0.4537, allocations: 19.91 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.218e-05/0.4538, allocations: 17.39 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.4538, allocations: 7.938 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.4538, allocations: 0 / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4538, allocations: 0 / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007672/0.4546, allocations: 481.2 kB / 1.334 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4546, allocations: 3.984 kB / 1.334 GB, free: 9.664 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.94e-05/0.4547, allocations: 15.98 kB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4547, allocations: 0 / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.4547, allocations: 8 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.4547, allocations: 8.344 kB / 1.334 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.4547, allocations: 0 / 1.334 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004438/0.4551, allocations: 318.7 kB / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.006e-05/0.4552, allocations: 19.83 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.4552, allocations: 0 / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.4554, allocations: 27.92 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.4554, allocations: 7.984 kB / 1.334 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.4554, allocations: 7.984 kB / 1.334 GB, free: 9.242 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001044/0.4556, allocations: 119.2 kB / 1.334 GB, free: 9.125 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4556, allocations: 3.938 kB / 1.334 GB, free: 9.121 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003512/0.4559, allocations: 35.94 kB / 1.334 GB, free: 9.086 MB / 1.029 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.0005007/0.4564, allocations: 205.9 kB / 1.335 GB, free: 8.914 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004052/0.4568, allocations: 111.9 kB / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4568, allocations: 0 / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.457, allocations: 51.91 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.4574, allocations: 21.86 kB / 1.335 GB, free: 8.734 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006521/0.458, allocations: 273.8 kB / 1.335 GB, free: 8.434 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.4581, allocations: 106.1 kB / 1.335 GB, free: 8.309 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.326e-05/0.4582, allocations: 19.44 kB / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.4582, allocations: 0 / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of Templates: time 0.004819/0.463, allocations: 2.097 MB / 1.337 GB, free: 6.199 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] 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/jenkins1/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: 12.033109104959294]