Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 192.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.51/2.51, allocations: 437 MB / 0.7104 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 59.91 kB / 0.8693 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5389/0.5403, allocations: 151.6 MB / 1.017 GB, free: 2.441 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00251/0.5428, allocations: 1.588 MB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.544, allocations: 0.6897 MB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.917e-05/0.544, allocations: 4 kB / 1.02 GB, free: 148 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.5441, allocations: 15.8 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.712e-05/0.5442, allocations: 19.73 kB / 1.02 GB, free: 112 kB / 0.7637 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.0003952/0.5446, allocations: 111.7 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.5448, allocations: 139.5 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.5449, allocations: 37.02 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.683e-05/0.545, allocations: 47.84 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.482e-05/0.5451, allocations: 71.67 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.242e-05/0.5451, allocations: 8 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.5453, allocations: 59.91 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.963e-05/0.5453, allocations: 27.91 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.544e-05/0.5454, allocations: 63.66 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.5456, allocations: 161.8 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.5456, allocations: 7.938 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5456, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.5456, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 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.0007829/0.5464, allocations: 0.5428 MB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.5464, allocations: 8.031 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.513e-05/0.5465, allocations: 42.73 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.733e-05/0.5465, allocations: 16.75 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.5467, allocations: 208.1 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.5467, allocations: 8.375 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.5468, allocations: 8.375 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.5471, allocations: 144.3 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-06/0.5471, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.5471, allocations: 4 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.5471, allocations: 3.984 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.5473, allocations: 63.94 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005631/0.5479, allocations: 468.7 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.5481, allocations: 85.11 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001308/0.5483, allocations: 49.81 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.5483, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.5486, allocations: 149 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.5486, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005492/0.5491, allocations: 189.3 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.5492, allocations: 81.11 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.5493, allocations: 167.8 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.5494, allocations: 33.69 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/0.5494, allocations: 116.2 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.5495, allocations: 27.7 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/0.5495, allocations: 33.7 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.28e-05/0.5496, allocations: 322.8 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.5497, allocations: 35.97 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.5499, allocations: 122.2 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.5502, allocations: 151.5 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5502, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003526/0.5506, allocations: 161.6 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.5506, allocations: 8 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.5506, allocations: 288 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.5506, allocations: 8 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.5507, allocations: 27.84 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.5508, allocations: 4 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.943e-05/0.5509, allocations: 19.92 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.5509, allocations: 4 kB / 1.024 GB, free: 11.78 MB / 0.7794 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 9.584e-05/0.551, allocations: 129.8 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.551, allocations: 15.81 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.119e-05/0.5511, allocations: 25.39 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.5511, allocations: 0 / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.5511, allocations: 3.938 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.5511, allocations: 7.938 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000636/0.5517, allocations: 0.5288 MB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.5517, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.623e-05/0.5518, allocations: 23.92 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.5518, allocations: 3.938 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.5519, allocations: 4 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5519, allocations: 0 / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5519, allocations: 288 / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003808/0.5523, allocations: 318.7 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.5523, allocations: 96.84 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.5523, allocations: 4 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.5525, allocations: 23.97 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.5526, allocations: 7.938 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.5526, allocations: 7.984 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.959e-05/0.5527, allocations: 119.2 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5527, allocations: 4 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003305/0.553, allocations: 43.98 kB / 1.025 GB, free: 10.32 MB / 0.7794 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.0008686/0.5539, allocations: 0.9633 MB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003395/0.5542, allocations: 115.7 kB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.5543, allocations: 0 / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.5544, allocations: 52.47 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.5548, allocations: 19.98 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.5567, allocations: 1.892 MB / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.5569, allocations: 0.7195 MB / 1.029 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.207e-05/0.557, allocations: 24.53 kB / 1.029 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.454e-05/0.5571, allocations: 39.42 kB / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5571, allocations: 0 / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.576, allocations: 3.379 MB / 1.032 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.679, allocations: 12 kB / 1.032 GB, free: 3.043 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches