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.001862/0.001862, allocations: 113 kB / 16.46 MB, free: 6.453 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.002191/0.002191, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.476/1.476, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] 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.763/2.763, allocations: 476.7 MB / 0.7672 GB, free: 5.246 MB / 0.6231 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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_11_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.002056/0.002056, allocations: 68.08 kB / 1.112 GB, free: 1.566 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8121/0.8141, allocations: 169.9 MB / 1.278 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00309/0.8172, allocations: 1.622 MB / 1.28 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.8187, allocations: 0.7535 MB / 1.281 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.533e-05/0.8188, allocations: 4 kB / 1.281 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.8189, allocations: 15.8 kB / 1.281 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.573e-05/0.8189, allocations: 15.8 kB / 1.281 GB, free: 11.12 MB / 0.9825 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.0005235/0.8195, allocations: 115.8 kB / 1.281 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.8197, allocations: 139.5 kB / 1.281 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.8198, allocations: 25.11 kB / 1.281 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.82, allocations: 59.77 kB / 1.281 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.8201, allocations: 63.69 kB / 1.281 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.8201, allocations: 12 kB / 1.281 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.8202, allocations: 51.95 kB / 1.281 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.241e-05/0.8203, allocations: 27.92 kB / 1.281 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.944e-05/0.8204, allocations: 59.64 kB / 1.281 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.8206, allocations: 177.2 kB / 1.281 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.8206, allocations: 0 / 1.281 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8206, allocations: 0 / 1.281 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.8206, allocations: 3.938 kB / 1.281 GB, free: 10.4 MB / 0.9825 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.0009804/0.8216, allocations: 0.5544 MB / 1.282 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.8217, allocations: 15.91 kB / 1.282 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.118e-05/0.8217, allocations: 42.73 kB / 1.282 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.8218, allocations: 16.84 kB / 1.282 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.822, allocations: 209.4 kB / 1.282 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.822, allocations: 4.375 kB / 1.282 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.8221, allocations: 12.38 kB / 1.282 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003476/0.8224, allocations: 139.4 kB / 1.282 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.8224, allocations: 0 / 1.282 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.8224, allocations: 4 kB / 1.282 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.8224, allocations: 0 / 1.282 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002594/0.8227, allocations: 63.94 kB / 1.282 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007407/0.8234, allocations: 472.7 kB / 1.283 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.8237, allocations: 77.19 kB / 1.283 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.8238, allocations: 53.75 kB / 1.283 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.8238, allocations: 4 kB / 1.283 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003413/0.8242, allocations: 153 kB / 1.283 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.8242, allocations: 0 / 1.283 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0006295/0.8248, allocations: 189.4 kB / 1.283 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.8249, allocations: 85.11 kB / 1.283 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.825, allocations: 170.8 kB / 1.283 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.8251, allocations: 33.7 kB / 1.284 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.781e-05/0.8252, allocations: 108.4 kB / 1.284 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.8252, allocations: 35.72 kB / 1.284 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.8253, allocations: 29.72 kB / 1.284 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001648/0.8254, allocations: 334.8 kB / 1.284 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.8256, allocations: 31.97 kB / 1.284 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.8258, allocations: 122.2 kB / 1.284 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.8261, allocations: 143.6 kB / 1.284 GB, free: 7 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.8261, allocations: 3.938 kB / 1.284 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004074/0.8265, allocations: 165.3 kB / 1.284 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.8266, allocations: 8 kB / 1.284 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.8266, allocations: 4.375 kB / 1.284 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.8266, allocations: 4 kB / 1.284 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.8267, allocations: 19.98 kB / 1.284 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.8267, allocations: 0 / 1.284 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.8268, allocations: 24.14 kB / 1.284 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.8268, allocations: 8 kB / 1.285 GB, free: 6.762 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.0001503/0.827, allocations: 144.7 kB / 1.285 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.827, allocations: 15.91 kB / 1.285 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.109e-05/0.8271, allocations: 17.39 kB / 1.285 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.8271, allocations: 0 / 1.285 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.8271, allocations: 0 / 1.285 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.8271, allocations: 3.938 kB / 1.285 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007882/0.8279, allocations: 0.5405 MB / 1.285 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.8279, allocations: 0 / 1.285 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.306e-05/0.828, allocations: 11.98 kB / 1.285 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.828, allocations: 3.938 kB / 1.285 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.828, allocations: 7.938 kB / 1.285 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.828, allocations: 0 / 1.285 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.828, allocations: 3.938 kB / 1.285 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004637/0.8285, allocations: 326.6 kB / 1.286 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.927e-05/0.8285, allocations: 89 kB / 1.286 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.8285, allocations: 0 / 1.286 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.8287, allocations: 27.97 kB / 1.286 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.8288, allocations: 7.984 kB / 1.286 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-05/0.8288, allocations: 8 kB / 1.286 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.629e-05/0.8289, allocations: 119.2 kB / 1.286 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.8289, allocations: 0 / 1.286 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003595/0.8293, allocations: 43.88 kB / 1.286 GB, free: 5.293 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.001156/0.8304, allocations: 0.9469 MB / 1.287 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004093/0.8308, allocations: 103.8 kB / 1.287 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.8309, allocations: 0.5625 kB / 1.287 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.831, allocations: 55.84 kB / 1.287 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003955/0.8314, allocations: 28.06 kB / 1.287 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.834, allocations: 1.908 MB / 1.289 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.8343, allocations: 0.7195 MB / 1.289 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.707e-05/0.8344, allocations: 20.53 kB / 1.29 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.585e-05/0.8345, allocations: 39.42 kB / 1.29 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.8345, allocations: 0 / 1.29 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02702/0.8615, allocations: 3.429 MB / 1.293 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/9.112, allocations: 7.875 kB / 1.293 GB, free: 13.98 MB / 0.9981 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/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] "Error: Could not read variable pri1.x[1] in file Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.232947751879692]