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.001339/0.001339, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.001537/0.001537, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.494/1.494, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.27/3.27, allocations: 0.49 GB / 0.7916 GB, free: 33.42 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.003578/0.003578, allocations: 74.66 kB / 1.149 GB, free: 26.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.4006, allocations: 176.1 MB / 1.321 GB, free: 3.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003223/0.4038, allocations: 1.617 MB / 1.322 GB, free: 1.898 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.4056, allocations: 0.7597 MB / 1.323 GB, free: 1.133 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.191e-05/0.4057, allocations: 3.938 kB / 1.323 GB, free: 1.129 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.4058, allocations: 15.86 kB / 1.323 GB, free: 1.113 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.988e-05/0.4058, allocations: 23.73 kB / 1.323 GB, free: 1.09 MB / 1.014 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.0005352/0.4064, allocations: 103.8 kB / 1.323 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.4066, allocations: 139.5 kB / 1.323 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.4068, allocations: 25.11 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.4069, allocations: 59.77 kB / 1.323 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.407, allocations: 63.75 kB / 1.324 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.407, allocations: 8 kB / 1.324 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.4072, allocations: 63.89 kB / 1.324 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.684e-05/0.4073, allocations: 27.92 kB / 1.324 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.612e-05/0.4073, allocations: 63.64 kB / 1.324 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002913/0.4076, allocations: 167.6 kB / 1.324 GB, free: 388 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4076, allocations: 0 / 1.324 GB, free: 388 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4076, allocations: 0 / 1.324 GB, free: 388 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.4077, allocations: 0 / 1.324 GB, free: 388 kB / 1.014 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.001002/0.4087, allocations: 0.5544 MB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.4087, allocations: 15.98 kB / 1.324 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.365e-05/0.4088, allocations: 38.73 kB / 1.324 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.4088, allocations: 16.84 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.4091, allocations: 220 kB / 1.325 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.4091, allocations: 4.375 kB / 1.325 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.4091, allocations: 16.36 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003562/0.4094, allocations: 139 kB / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.4094, allocations: 0 / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.4095, allocations: 0 / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.4095, allocations: 4 kB / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.4097, allocations: 67.88 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007727/0.4105, allocations: 476.7 kB / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.4107, allocations: 73.19 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.4109, allocations: 53.75 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.4109, allocations: 7.984 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003707/0.4113, allocations: 145 kB / 1.326 GB, free: 14.36 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.4113, allocations: 4 kB / 1.326 GB, free: 14.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006356/0.4119, allocations: 185.4 kB / 1.326 GB, free: 14.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.424e-05/0.412, allocations: 85.09 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.4122, allocations: 162.8 kB / 1.326 GB, free: 13.89 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.4122, allocations: 33.7 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/0.4123, allocations: 120.3 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.246e-05/0.4123, allocations: 27.83 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.619e-05/0.4124, allocations: 33.7 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.4126, allocations: 326.8 kB / 1.327 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.4127, allocations: 31.97 kB / 1.327 GB, free: 13.3 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.4129, allocations: 118.3 kB / 1.327 GB, free: 13.15 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.4133, allocations: 147.5 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4133, allocations: 0 / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004349/0.4137, allocations: 165.3 kB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.4137, allocations: 8 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4137, allocations: 0 / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.4138, allocations: 4 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.4139, allocations: 28.2 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.4139, allocations: 7.984 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.414, allocations: 11.94 kB / 1.327 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.414, allocations: 7.984 kB / 1.327 GB, free: 12.75 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.0001407/0.4141, allocations: 137.7 kB / 1.327 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.4142, allocations: 15.91 kB / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.565e-05/0.4142, allocations: 17.39 kB / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4142, allocations: 0 / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.4142, allocations: 8 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.4142, allocations: 3.938 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009455/0.4152, allocations: 0.5333 MB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.4152, allocations: 96 / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.609e-05/0.4153, allocations: 19.86 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.4153, allocations: 3.938 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.4153, allocations: 8 kB / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4153, allocations: 3.984 kB / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4153, allocations: 0 / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.4158, allocations: 322.6 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.086e-05/0.4159, allocations: 92.95 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.4159, allocations: 8 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.4161, allocations: 19.97 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.4161, allocations: 7.984 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.374e-05/0.4162, allocations: 16 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001078/0.4163, allocations: 111.2 kB / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4163, allocations: 0 / 1.328 GB, free: 11.32 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003769/0.4167, allocations: 47.92 kB / 1.328 GB, free: 11.28 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.001254/0.4179, allocations: 0.9401 MB / 1.329 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004178/0.4183, allocations: 108 kB / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4183, allocations: 0 / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.4185, allocations: 51.91 kB / 1.329 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.4189, allocations: 25.77 kB / 1.329 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.4218, allocations: 1.905 MB / 1.331 GB, free: 8.121 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.4222, allocations: 0.7159 MB / 1.332 GB, free: 7.379 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.895e-05/0.4223, allocations: 24.53 kB / 1.332 GB, free: 7.355 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.856e-05/0.4224, allocations: 43.36 kB / 1.332 GB, free: 7.312 MB / 1.029 GB Notification: Performance of SimCode: time 7.21e-07/0.4224, allocations: 0 / 1.332 GB, free: 7.312 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.4491, allocations: 3.441 MB / 1.335 GB, free: 3.973 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.482/8.931, allocations: 6.25 kB / 1.335 GB, free: 3.969 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.96571495407261]