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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 108.3 kB / 17.96 MB, free: 4.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001884/0.001884, allocations: 200.4 kB / 21.22 MB, free: 0.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 225.6 MB / 249.9 MB, free: 13.36 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.734/2.734, allocations: 476.7 MB / 0.7635 GB, free: 10.95 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 75.88 kB / 1.108 GB, free: 7.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7636/0.7655, allocations: 168.7 MB / 1.272 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00287/0.7684, allocations: 1.597 MB / 1.274 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.7698, allocations: 0.7145 MB / 1.275 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.013e-05/0.7698, allocations: 3.938 kB / 1.275 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001068/0.7699, allocations: 11.88 kB / 1.275 GB, free: 2.09 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.751e-05/0.77, allocations: 23.72 kB / 1.275 GB, free: 2.066 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.0004526/0.7704, allocations: 111.8 kB / 1.275 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000205/0.7707, allocations: 135.5 kB / 1.275 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.7708, allocations: 21.12 kB / 1.275 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.988e-05/0.7709, allocations: 63.75 kB / 1.275 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.543e-05/0.771, allocations: 55.77 kB / 1.275 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.771, allocations: 8 kB / 1.275 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.7711, allocations: 59.95 kB / 1.275 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.364e-05/0.7712, allocations: 31.84 kB / 1.275 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.567e-05/0.7713, allocations: 59.66 kB / 1.275 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.7715, allocations: 169.2 kB / 1.275 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.7715, allocations: 4 kB / 1.275 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.162e-06/0.7715, allocations: 0 / 1.275 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.7715, allocations: 0 / 1.275 GB, free: 1.363 MB / 0.9669 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.0009125/0.7724, allocations: 0.5544 MB / 1.276 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.7725, allocations: 12.03 kB / 1.276 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.486e-05/0.7725, allocations: 38.75 kB / 1.276 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.002e-05/0.7726, allocations: 16.84 kB / 1.276 GB, free: 0.668 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.7728, allocations: 220.6 kB / 1.276 GB, free: 424 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.7728, allocations: 8.375 kB / 1.276 GB, free: 416 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.7728, allocations: 8.375 kB / 1.276 GB, free: 408 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.7732, allocations: 134.2 kB / 1.276 GB, free: 264 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.7732, allocations: 8 kB / 1.276 GB, free: 256 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.7732, allocations: 4 kB / 1.276 GB, free: 252 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.7732, allocations: 0 / 1.276 GB, free: 252 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002459/0.7734, allocations: 71.88 kB / 1.276 GB, free: 180 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006839/0.7741, allocations: 468.7 kB / 1.277 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.7743, allocations: 81.12 kB / 1.277 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.7745, allocations: 45.81 kB / 1.277 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.7745, allocations: 3.984 kB / 1.277 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003333/0.7748, allocations: 145 kB / 1.277 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/0.7748, allocations: 3.938 kB / 1.277 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0006228/0.7755, allocations: 193.4 kB / 1.277 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.7755, allocations: 85.09 kB / 1.277 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.7757, allocations: 162.3 kB / 1.278 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.7757, allocations: 29.7 kB / 1.278 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.542e-05/0.7758, allocations: 112.4 kB / 1.278 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.454e-05/0.7759, allocations: 35.72 kB / 1.278 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-05/0.7759, allocations: 33.7 kB / 1.278 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.7761, allocations: 330.8 kB / 1.278 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.7762, allocations: 35.97 kB / 1.278 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.7764, allocations: 118.2 kB / 1.278 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.7767, allocations: 147.5 kB / 1.278 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.7767, allocations: 8.109 kB / 1.278 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003681/0.7771, allocations: 165.3 kB / 1.278 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.7771, allocations: 8 kB / 1.279 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.7771, allocations: 0 / 1.279 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.7771, allocations: 4 kB / 1.279 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.7772, allocations: 19.98 kB / 1.279 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.7772, allocations: 7.938 kB / 1.279 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.521e-05/0.7773, allocations: 16.14 kB / 1.279 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.7773, allocations: 12 kB / 1.279 GB, free: 13.72 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.0001198/0.7775, allocations: 134.3 kB / 1.279 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.7775, allocations: 15.91 kB / 1.279 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.575e-05/0.7775, allocations: 13.41 kB / 1.279 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.7775, allocations: 3.984 kB / 1.279 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.7775, allocations: 4 kB / 1.279 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.7776, allocations: 3.938 kB / 1.279 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007221/0.7783, allocations: 0.5331 MB / 1.279 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.7783, allocations: 0 / 1.279 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.773e-05/0.7784, allocations: 15.92 kB / 1.279 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.768e-06/0.7784, allocations: 3.938 kB / 1.279 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.7784, allocations: 4.094 kB / 1.279 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.7784, allocations: 3.938 kB / 1.279 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7784, allocations: 0 / 1.279 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004292/0.7788, allocations: 326.5 kB / 1.28 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.7789, allocations: 92.95 kB / 1.28 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.7789, allocations: 7.984 kB / 1.28 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.7791, allocations: 15.98 kB / 1.28 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.828e-05/0.7791, allocations: 15.98 kB / 1.28 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.7791, allocations: 4 kB / 1.28 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.415e-05/0.7792, allocations: 132.2 kB / 1.28 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.7792, allocations: 0 / 1.28 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003525/0.7796, allocations: 35.94 kB / 1.28 GB, free: 12.27 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.00114/0.7807, allocations: 0.9702 MB / 1.281 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003608/0.7811, allocations: 108.2 kB / 1.281 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.7811, allocations: 0 / 1.281 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.7813, allocations: 51.91 kB / 1.281 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.7816, allocations: 20.16 kB / 1.281 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.7839, allocations: 1.908 MB / 1.283 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.7843, allocations: 0.7041 MB / 1.284 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.912e-05/0.7843, allocations: 24.53 kB / 1.284 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.576e-05/0.7844, allocations: 39.42 kB / 1.284 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.7844, allocations: 4 kB / 1.284 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.8097, allocations: 3.465 MB / 1.287 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.985/8.794, allocations: 1.359 kB / 1.287 GB, free: 4.934 MB / 0.9825 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_2/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: 14.669496471993625]