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.001773/0.001773, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001717/0.001717, allocations: 211.3 kB / 22.24 MB, free: 4.859 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.547/1.547, allocations: 230.6 MB / 256 MB, free: 7.785 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.808/2.808, allocations: 476 MB / 0.7699 GB, free: 4.77 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.002203/0.002203, allocations: 66.41 kB / 1.117 GB, free: 41.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.356, allocations: 170 MB / 1.283 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.004769/0.3608, allocations: 1.583 MB / 1.284 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002291/0.3631, allocations: 0.7225 MB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.3632, allocations: 0 / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.3633, allocations: 19.8 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.3634, allocations: 15.8 kB / 1.285 GB, free: 10.11 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.0007881/0.3642, allocations: 111.8 kB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.3645, allocations: 143.5 kB / 1.285 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.3647, allocations: 17.31 kB / 1.285 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.3649, allocations: 59.77 kB / 1.285 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.365, allocations: 63.69 kB / 1.285 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.93e-05/0.3651, allocations: 8 kB / 1.285 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.3653, allocations: 59.95 kB / 1.285 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.3653, allocations: 27.91 kB / 1.285 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.3655, allocations: 51.72 kB / 1.285 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003588/0.3658, allocations: 166.9 kB / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3658, allocations: 4 kB / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.734e-06/0.3658, allocations: 0 / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.3658, allocations: 4 kB / 1.286 GB, free: 9.41 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.00123/0.3671, allocations: 482.6 kB / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.3671, allocations: 8.031 kB / 1.286 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.069e-05/0.3672, allocations: 42.73 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.842e-05/0.3673, allocations: 16.84 kB / 1.286 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.3676, allocations: 163.5 kB / 1.286 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.3676, allocations: 8.375 kB / 1.286 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.3676, allocations: 12.38 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.3681, allocations: 136.7 kB / 1.286 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3681, allocations: 0 / 1.286 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.3681, allocations: 4 kB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3681, allocations: 3.938 kB / 1.286 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.3686, allocations: 71.92 kB / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.3696, allocations: 415.9 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.3699, allocations: 85.11 kB / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.3702, allocations: 53.8 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.3702, allocations: 4 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005381/0.3708, allocations: 145 kB / 1.287 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 2.395e-06/0.3708, allocations: 0 / 1.287 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.001036/0.3718, allocations: 193.4 kB / 1.287 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.3719, allocations: 81.11 kB / 1.287 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000245/0.3722, allocations: 166.8 kB / 1.288 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.3722, allocations: 33.7 kB / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.3723, allocations: 108.3 kB / 1.288 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.3724, allocations: 35.8 kB / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.3725, allocations: 33.7 kB / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002234/0.3727, allocations: 326.8 kB / 1.288 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.373, allocations: 35.97 kB / 1.288 GB, free: 6.559 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004362/0.3734, allocations: 199.4 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/0.3739, allocations: 147.5 kB / 1.288 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3739, allocations: 0 / 1.288 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007038/0.3747, allocations: 169.3 kB / 1.289 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.3747, allocations: 5.875 kB / 1.289 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.3747, allocations: 4 kB / 1.289 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.3747, allocations: 7.984 kB / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.3749, allocations: 11.98 kB / 1.289 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.3749, allocations: 8.219 kB / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.3751, allocations: 23.92 kB / 1.289 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.3751, allocations: 8 kB / 1.289 GB, free: 5.898 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.0001995/0.3753, allocations: 129.8 kB / 1.289 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-05/0.3754, allocations: 19.89 kB / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.176e-05/0.3754, allocations: 17.41 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.3754, allocations: 0 / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.3754, allocations: 0 / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.3754, allocations: 4.312 kB / 1.289 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.3767, allocations: 0.4967 MB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3767, allocations: 0 / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/0.3768, allocations: 19.92 kB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/0.3769, allocations: 7.938 kB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.3769, allocations: 3.984 kB / 1.289 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3769, allocations: 0 / 1.289 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/0.3769, allocations: 7.984 kB / 1.289 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000723/0.3776, allocations: 330.5 kB / 1.29 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.3776, allocations: 11.89 kB / 1.29 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.3777, allocations: 3.984 kB / 1.29 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.378, allocations: 20.27 kB / 1.29 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.408e-05/0.3781, allocations: 7.984 kB / 1.29 GB, free: 4.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.698e-05/0.3781, allocations: 11.98 kB / 1.29 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001626/0.3783, allocations: 115.2 kB / 1.29 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3783, allocations: 3.938 kB / 1.29 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006476/0.3789, allocations: 43.89 kB / 1.29 GB, free: 4.574 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.001845/0.3808, allocations: 0.9372 MB / 1.291 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000631/0.3814, allocations: 103.8 kB / 1.291 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3814, allocations: 4 kB / 1.291 GB, free: 3.543 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.3817, allocations: 60.44 kB / 1.291 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006626/0.3824, allocations: 23.92 kB / 1.291 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003982/0.3864, allocations: 1.909 MB / 1.293 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001863/0.3866, allocations: 102.1 kB / 1.293 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001302/0.3867, allocations: 24.47 kB / 1.293 GB, free: 1.266 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.3868, allocations: 35.44 kB / 1.293 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/0.3868, allocations: 0 / 1.293 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0387/0.4255, allocations: 4.065 MB / 1.297 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.08, allocations: 9 kB / 1.297 GB, free: 13.34 MB / 0.9981 GB " [Timeout remaining time 287] (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: 18.966945856809616]