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.001808/0.001808, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002372/0.002372, allocations: 210.1 kB / 22.24 MB, free: 5.262 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.539/1.539, allocations: 230.6 MB / 256 MB, free: 7.754 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.275/3.275, allocations: 0.4892 GB / 0.7943 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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_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.002193/0.002193, allocations: 69.61 kB / 1.153 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3746, allocations: 176.1 MB / 1.325 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00297/0.3775, allocations: 1.589 MB / 1.327 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001572/0.3791, allocations: 0.7364 MB / 1.327 GB, free: 20 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.59e-05/0.3792, allocations: 0 / 1.327 GB, free: 20 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.3793, allocations: 19.8 kB / 1.327 GB, free: 0 / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.833e-05/0.3793, allocations: 19.86 kB / 1.327 GB, free: 15.98 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.0005913/0.3799, allocations: 115.7 kB / 1.327 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002245/0.3802, allocations: 131.5 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.3803, allocations: 25.58 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.3804, allocations: 51.78 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.3805, allocations: 67.67 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.3806, allocations: 12 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.3807, allocations: 51.95 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.205e-05/0.3808, allocations: 27.92 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.884e-05/0.3809, allocations: 59.7 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.3811, allocations: 171.3 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3812, allocations: 3.938 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3812, allocations: 0 / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.3812, allocations: 0 / 1.328 GB, free: 15.27 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.0009908/0.3822, allocations: 487.4 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3822, allocations: 12.03 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.719e-05/0.3822, allocations: 34.75 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.986e-05/0.3823, allocations: 20.83 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.3826, allocations: 162.3 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.3826, allocations: 4.375 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.3826, allocations: 12.36 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.3829, allocations: 136.5 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.383, allocations: 0 / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.383, allocations: 8 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.383, allocations: 0 / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002456/0.3832, allocations: 63.94 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007486/0.384, allocations: 419.9 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.3842, allocations: 81.06 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.3844, allocations: 49.81 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.3844, allocations: 3.984 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003379/0.3847, allocations: 145 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.233e-06/0.3847, allocations: 0 / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005992/0.3853, allocations: 197.4 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.3854, allocations: 77.11 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.3856, allocations: 170.8 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.87e-05/0.3856, allocations: 25.7 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.303e-05/0.3857, allocations: 116.3 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.581e-05/0.3857, allocations: 23.84 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.3858, allocations: 37.7 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001751/0.386, allocations: 322.8 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.3861, allocations: 44.08 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.3864, allocations: 199.2 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/0.3867, allocations: 147.5 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3867, allocations: 4 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003821/0.3871, allocations: 162 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3871, allocations: 8 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.3871, allocations: 4 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3871, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.3872, allocations: 27.84 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.3872, allocations: 4 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.3874, allocations: 19.92 kB / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.3874, allocations: 4 kB / 1.331 GB, free: 11.77 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.0001352/0.3875, allocations: 134.3 kB / 1.331 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.349e-05/0.3875, allocations: 19.91 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.166e-05/0.3876, allocations: 21.39 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3876, allocations: 7.938 kB / 1.331 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3876, allocations: 0 / 1.331 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3876, allocations: 3.938 kB / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008533/0.3885, allocations: 0.4929 MB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3885, allocations: 0 / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.808e-05/0.3885, allocations: 15.92 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3886, allocations: 7.938 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.3886, allocations: 7.984 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3886, allocations: 0 / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3886, allocations: 0 / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004743/0.389, allocations: 318.6 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.616e-05/0.3891, allocations: 19.84 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.3891, allocations: 4 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001939/0.3893, allocations: 20.25 kB / 1.332 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.3893, allocations: 15.92 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.893e-05/0.3894, allocations: 12 kB / 1.332 GB, free: 10.6 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.918e-05/0.3895, allocations: 123.2 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3895, allocations: 0 / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003525/0.3898, allocations: 35.94 kB / 1.332 GB, free: 10.45 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.001185/0.391, allocations: 0.9573 MB / 1.333 GB, free: 9.504 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000385/0.3914, allocations: 103.9 kB / 1.333 GB, free: 9.402 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3914, allocations: 3.938 kB / 1.333 GB, free: 9.398 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.3916, allocations: 59.88 kB / 1.333 GB, free: 9.34 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.3919, allocations: 13.56 kB / 1.333 GB, free: 9.328 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.3945, allocations: 1.901 MB / 1.335 GB, free: 7.293 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001179/0.3947, allocations: 106.3 kB / 1.335 GB, free: 7.168 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.727e-05/0.3947, allocations: 16.48 kB / 1.335 GB, free: 7.152 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.3948, allocations: 39.42 kB / 1.335 GB, free: 7.113 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.3948, allocations: 0 / 1.335 GB, free: 7.113 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.4274, allocations: 4.068 MB / 1.339 GB, free: 3.215 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.28, allocations: 0 / 1.339 GB, free: 3.215 MB / 1.029 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/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] "Error: Could not read variable pri1.x[1] in file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.256631242111325]