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.001748/0.001748, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.002213/0.002213, allocations: 222.8 kB / 22.26 MB, free: 5.215 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 8.004 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.724/2.724, allocations: 476.8 MB / 0.7707 GB, free: 4.215 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.002051/0.002051, allocations: 68.3 kB / 1.117 GB, free: 40.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3209, allocations: 170 MB / 1.283 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002957/0.3238, allocations: 1.632 MB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001511/0.3253, allocations: 0.7654 MB / 1.286 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.876e-05/0.3254, allocations: 0 / 1.286 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.3255, allocations: 15.81 kB / 1.286 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.911e-05/0.3256, allocations: 19.78 kB / 1.286 GB, free: 9.234 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.0005029/0.3261, allocations: 115.7 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.3263, allocations: 135.6 kB / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.3265, allocations: 25.28 kB / 1.286 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.3266, allocations: 59.72 kB / 1.286 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.3267, allocations: 75.67 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.3267, allocations: 8 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.3269, allocations: 51.97 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.124e-05/0.3269, allocations: 35.84 kB / 1.286 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.482e-05/0.327, allocations: 55.72 kB / 1.286 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.3273, allocations: 175.5 kB / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3273, allocations: 0 / 1.286 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.943e-06/0.3273, allocations: 3.938 kB / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.942e-06/0.3273, allocations: 0 / 1.286 GB, free: 8.512 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.0009218/0.3282, allocations: 482.6 kB / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3283, allocations: 12.03 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.308e-05/0.3283, allocations: 34.75 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.056e-05/0.3284, allocations: 24.83 kB / 1.287 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.3286, allocations: 159.5 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.3286, allocations: 8.375 kB / 1.287 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.821e-05/0.3286, allocations: 8.375 kB / 1.287 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.329, allocations: 136 kB / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.329, allocations: 0 / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.329, allocations: 0 / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.329, allocations: 4 kB / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.3293, allocations: 67.94 kB / 1.287 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/0.33, allocations: 439.8 kB / 1.288 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.3302, allocations: 81.12 kB / 1.288 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.3303, allocations: 45.92 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.3303, allocations: 7.938 kB / 1.288 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000356/0.3307, allocations: 156.9 kB / 1.288 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.3307, allocations: 0 / 1.288 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005739/0.3313, allocations: 185.4 kB / 1.288 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.3313, allocations: 77.11 kB / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.3315, allocations: 178.7 kB / 1.288 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.3315, allocations: 33.7 kB / 1.288 GB, free: 6.195 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/0.3316, allocations: 112.3 kB / 1.289 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.699e-05/0.3316, allocations: 27.84 kB / 1.289 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/0.3317, allocations: 34.08 kB / 1.289 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3318, allocations: 326.8 kB / 1.289 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.332, allocations: 35.97 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3322, allocations: 125.2 kB / 1.289 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003128/0.3325, allocations: 155.5 kB / 1.289 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3325, allocations: 0 / 1.289 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003813/0.3329, allocations: 161.6 kB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3329, allocations: 8.281 kB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3329, allocations: 4 kB / 1.289 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.3329, allocations: 4 kB / 1.289 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.333, allocations: 19.98 kB / 1.289 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.333, allocations: 7.938 kB / 1.289 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.3332, allocations: 23.91 kB / 1.289 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.3332, allocations: 4 kB / 1.289 GB, free: 5.078 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.0001285/0.3333, allocations: 134.3 kB / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.3333, allocations: 19.91 kB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.3334, allocations: 21.39 kB / 1.29 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.3334, allocations: 3.938 kB / 1.29 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3334, allocations: 4 kB / 1.29 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3334, allocations: 3.938 kB / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007675/0.3342, allocations: 0.5045 MB / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3342, allocations: 0 / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.681e-05/0.3342, allocations: 15.98 kB / 1.29 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.358e-06/0.3342, allocations: 7.938 kB / 1.29 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.3343, allocations: 3.938 kB / 1.29 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3343, allocations: 0 / 1.29 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3343, allocations: 0 / 1.29 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004309/0.3347, allocations: 322.7 kB / 1.29 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.521e-05/0.3347, allocations: 15.84 kB / 1.291 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.3347, allocations: 4 kB / 1.291 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.3349, allocations: 15.98 kB / 1.291 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.335, allocations: 7.984 kB / 1.291 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.122e-05/0.335, allocations: 15.98 kB / 1.291 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.522e-05/0.3351, allocations: 111.2 kB / 1.291 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3351, allocations: 7.938 kB / 1.291 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003565/0.3355, allocations: 47.92 kB / 1.291 GB, free: 3.742 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.001132/0.3366, allocations: 0.9357 MB / 1.292 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000373/0.337, allocations: 107.8 kB / 1.292 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.337, allocations: 0 / 1.292 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.3371, allocations: 55.84 kB / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.3375, allocations: 28.47 kB / 1.292 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.3399, allocations: 1.903 MB / 1.294 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.3403, allocations: 0.7156 MB / 1.294 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.199e-05/0.3404, allocations: 24.47 kB / 1.294 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.771e-05/0.3404, allocations: 39.42 kB / 1.294 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of SimCode: time 3e-07/0.3404, allocations: 0 / 1.294 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02886/0.3693, allocations: 3.586 MB / 1.298 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.14, allocations: 10.58 kB / 1.298 GB, free: 12.34 MB / 0.9981 GB " [Timeout remaining time 288] (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: 17.80321992000063]