Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001379/0.001379, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.001463/0.001463, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.546/1.546, allocations: 230.6 MB / 252.8 MB, free: 9.125 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.362/3.362, allocations: 0.505 GB / 0.8066 GB, free: 23.11 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [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.002277/0.002277, allocations: 73.38 kB / 1.172 GB, free: 17.62 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3995, allocations: 180.2 MB / 1.348 GB, free: 10.11 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003426/0.4029, allocations: 1.603 MB / 1.349 GB, free: 8.5 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.4047, allocations: 0.768 MB / 1.35 GB, free: 7.727 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.257e-05/0.4047, allocations: 0 / 1.35 GB, free: 7.727 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.4049, allocations: 15.81 kB / 1.35 GB, free: 7.711 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.295e-05/0.4049, allocations: 23.78 kB / 1.35 GB, free: 7.688 MB / 1.045 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.0005562/0.4055, allocations: 111.7 kB / 1.35 GB, free: 7.578 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002191/0.4057, allocations: 139.5 kB / 1.35 GB, free: 7.441 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.4059, allocations: 25.11 kB / 1.35 GB, free: 7.414 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.406, allocations: 55.83 kB / 1.35 GB, free: 7.359 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.4061, allocations: 67.69 kB / 1.35 GB, free: 7.293 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.4061, allocations: 8 kB / 1.35 GB, free: 7.285 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.4062, allocations: 55.95 kB / 1.351 GB, free: 7.23 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.4063, allocations: 31.91 kB / 1.351 GB, free: 7.199 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.385e-05/0.4064, allocations: 59.66 kB / 1.351 GB, free: 7.141 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002691/0.4066, allocations: 179.5 kB / 1.351 GB, free: 6.965 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.4066, allocations: 0 / 1.351 GB, free: 6.965 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.234e-06/0.4066, allocations: 0 / 1.351 GB, free: 6.965 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.4067, allocations: 0 / 1.351 GB, free: 6.965 MB / 1.045 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.0009421/0.4076, allocations: 0.5506 MB / 1.351 GB, free: 6.348 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.4076, allocations: 15.98 kB / 1.351 GB, free: 6.332 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.4077, allocations: 30.75 kB / 1.351 GB, free: 6.293 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.699e-05/0.4077, allocations: 28.78 kB / 1.351 GB, free: 6.266 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.408, allocations: 220 kB / 1.352 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.408, allocations: 8.359 kB / 1.352 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.408, allocations: 8.375 kB / 1.352 GB, free: 5.996 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003951/0.4084, allocations: 131.5 kB / 1.352 GB, free: 5.855 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.4084, allocations: 4 kB / 1.352 GB, free: 5.852 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.4084, allocations: 0 / 1.352 GB, free: 5.852 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4084, allocations: 4 kB / 1.352 GB, free: 5.848 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.4087, allocations: 71.86 kB / 1.352 GB, free: 5.777 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007257/0.4094, allocations: 464.8 kB / 1.352 GB, free: 5.27 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.4097, allocations: 85.11 kB / 1.352 GB, free: 5.168 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.4098, allocations: 37.81 kB / 1.352 GB, free: 5.125 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.4098, allocations: 8 kB / 1.352 GB, free: 5.117 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003255/0.4102, allocations: 141.1 kB / 1.353 GB, free: 4.961 MB / 1.045 GB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.4102, allocations: 3.938 kB / 1.353 GB, free: 4.957 MB / 1.045 GB Notification: Performance of matching and sorting (n=12): time 0.0006208/0.4108, allocations: 197.4 kB / 1.353 GB, free: 4.758 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.4108, allocations: 81.11 kB / 1.353 GB, free: 4.66 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.411, allocations: 162.3 kB / 1.353 GB, free: 4.492 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.411, allocations: 25.7 kB / 1.353 GB, free: 4.461 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.4111, allocations: 120.3 kB / 1.353 GB, free: 4.336 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.999e-05/0.4112, allocations: 27.84 kB / 1.353 GB, free: 4.309 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.107e-05/0.4112, allocations: 37.64 kB / 1.353 GB, free: 4.266 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.4114, allocations: 326.8 kB / 1.353 GB, free: 3.938 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.4115, allocations: 35.97 kB / 1.354 GB, free: 3.902 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.4117, allocations: 120.5 kB / 1.354 GB, free: 3.75 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.412, allocations: 147.5 kB / 1.354 GB, free: 3.578 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.412, allocations: 4 kB / 1.354 GB, free: 3.574 MB / 1.045 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004002/0.4124, allocations: 165.3 kB / 1.354 GB, free: 3.406 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.4125, allocations: 4 kB / 1.354 GB, free: 3.402 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.4125, allocations: 7.984 kB / 1.354 GB, free: 3.395 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.4125, allocations: 0 / 1.354 GB, free: 3.395 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.4126, allocations: 19.92 kB / 1.354 GB, free: 3.375 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.4126, allocations: 4 kB / 1.354 GB, free: 3.371 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.4127, allocations: 28.16 kB / 1.354 GB, free: 3.344 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.4127, allocations: 4 kB / 1.354 GB, free: 3.34 MB / 1.045 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.0001263/0.4129, allocations: 133.7 kB / 1.354 GB, free: 3.199 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.4129, allocations: 15.94 kB / 1.354 GB, free: 3.184 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.413, allocations: 17.64 kB / 1.354 GB, free: 3.16 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.413, allocations: 0 / 1.354 GB, free: 3.16 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.413, allocations: 7.984 kB / 1.354 GB, free: 3.152 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.413, allocations: 3.938 kB / 1.354 GB, free: 3.148 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008/0.4138, allocations: 0.5289 MB / 1.355 GB, free: 2.562 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.4138, allocations: 4.469 kB / 1.355 GB, free: 2.559 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.447e-05/0.4139, allocations: 19.97 kB / 1.355 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.4139, allocations: 7.938 kB / 1.355 GB, free: 2.531 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.4139, allocations: 0 / 1.355 GB, free: 2.531 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4139, allocations: 0 / 1.355 GB, free: 2.531 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4139, allocations: 7.875 kB / 1.355 GB, free: 2.523 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004754/0.4144, allocations: 318.7 kB / 1.355 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 7.094e-05/0.4144, allocations: 100.9 kB / 1.355 GB, free: 2.078 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.4145, allocations: 4 kB / 1.355 GB, free: 2.074 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.4146, allocations: 19.98 kB / 1.355 GB, free: 2.055 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.4147, allocations: 7.984 kB / 1.355 GB, free: 2.047 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-05/0.4147, allocations: 8 kB / 1.355 GB, free: 2.039 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001079/0.4148, allocations: 128.2 kB / 1.355 GB, free: 1.914 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.4148, allocations: 4 kB / 1.355 GB, free: 1.91 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003639/0.4152, allocations: 35.94 kB / 1.355 GB, free: 1.875 MB / 1.045 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.001217/0.4164, allocations: 0.947 MB / 1.356 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004042/0.4168, allocations: 104.3 kB / 1.356 GB, free: 0.832 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4168, allocations: 64 / 1.356 GB, free: 0.832 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.417, allocations: 55.95 kB / 1.356 GB, free: 0.7773 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003771/0.4174, allocations: 15.91 kB / 1.356 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.4201, allocations: 1.916 MB / 1.358 GB, free: 14.71 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.4204, allocations: 0.7158 MB / 1.359 GB, free: 13.97 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.149e-05/0.4205, allocations: 20.48 kB / 1.359 GB, free: 13.95 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.143e-05/0.4206, allocations: 39.42 kB / 1.359 GB, free: 13.91 MB / 1.061 GB Notification: Performance of SimCode: time 6.01e-07/0.4206, allocations: 192 / 1.359 GB, free: 13.91 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02942/0.45, allocations: 3.426 MB / 1.362 GB, free: 10.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.526/8.976, allocations: 17.06 kB / 1.362 GB, free: 10.58 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable pri1.x[1] in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.199832584010437]