Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_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.004533/0.004533, allocations: 100.9 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.724/2.724, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 71.03 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2867, allocations: 162.2 MB / 1.241 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002598/0.2894, allocations: 1.583 MB / 1.243 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.2906, allocations: 0.695 MB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.2906, allocations: 0 / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 9.312e-05/0.2907, allocations: 19.8 kB / 1.244 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.308e-05/0.2908, allocations: 15.81 kB / 1.244 GB, free: 6.965 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.0003975/0.2912, allocations: 111.6 kB / 1.244 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001891/0.2914, allocations: 139.5 kB / 1.244 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.2916, allocations: 45.08 kB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.522e-05/0.2916, allocations: 51.78 kB / 1.244 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.257e-05/0.2917, allocations: 67.73 kB / 1.244 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.289e-05/0.2918, allocations: 8 kB / 1.244 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.2919, allocations: 51.97 kB / 1.244 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.292, allocations: 35.84 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.295e-05/0.292, allocations: 59.66 kB / 1.244 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.2923, allocations: 171.6 kB / 1.244 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2923, allocations: 0 / 1.244 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2923, allocations: 3.938 kB / 1.244 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.2923, allocations: 0 / 1.244 GB, free: 6.234 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.0008759/0.2932, allocations: 0.5466 MB / 1.245 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.2932, allocations: 8.031 kB / 1.245 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.309e-05/0.2933, allocations: 42.73 kB / 1.245 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.645e-05/0.2934, allocations: 16.84 kB / 1.245 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.2936, allocations: 224.1 kB / 1.245 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.2936, allocations: 8.375 kB / 1.245 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.2936, allocations: 8.375 kB / 1.245 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.294, allocations: 139.4 kB / 1.245 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.294, allocations: 3.984 kB / 1.245 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.294, allocations: 4 kB / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.294, allocations: 0 / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002532/0.2943, allocations: 67.94 kB / 1.245 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006416/0.2949, allocations: 464.7 kB / 1.246 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.2951, allocations: 85.11 kB / 1.246 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.2953, allocations: 49.81 kB / 1.246 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.2953, allocations: 3.984 kB / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003182/0.2957, allocations: 137 kB / 1.246 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.763e-06/0.2957, allocations: 0 / 1.246 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005873/0.2963, allocations: 197.6 kB / 1.246 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.2963, allocations: 81.11 kB / 1.246 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.2965, allocations: 166.3 kB / 1.247 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.2965, allocations: 25.8 kB / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.652e-05/0.2966, allocations: 116.3 kB / 1.247 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.2966, allocations: 35.77 kB / 1.247 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.2967, allocations: 41.7 kB / 1.247 GB, free: 3.527 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2969, allocations: 318.8 kB / 1.247 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.297, allocations: 39.97 kB / 1.247 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.2972, allocations: 118.2 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003242/0.2975, allocations: 143.5 kB / 1.247 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2976, allocations: 4 kB / 1.247 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004002/0.298, allocations: 169.3 kB / 1.248 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.298, allocations: 4 kB / 1.248 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.298, allocations: 4 kB / 1.248 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.298, allocations: 0 / 1.248 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.2981, allocations: 16.27 kB / 1.248 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2981, allocations: 15.92 kB / 1.248 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.2983, allocations: 19.89 kB / 1.248 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.2983, allocations: 4.109 kB / 1.248 GB, free: 2.609 MB / 0.9669 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.0001255/0.2984, allocations: 142.2 kB / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.607e-05/0.2984, allocations: 11.95 kB / 1.248 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.2985, allocations: 21.39 kB / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.2985, allocations: 0 / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.2985, allocations: 4 kB / 1.248 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2985, allocations: 7.938 kB / 1.248 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007531/0.2993, allocations: 0.5288 MB / 1.248 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2993, allocations: 0 / 1.248 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.033e-05/0.2994, allocations: 15.98 kB / 1.248 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.2994, allocations: 7.938 kB / 1.248 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.2994, allocations: 7.938 kB / 1.248 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2994, allocations: 4 kB / 1.248 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2994, allocations: 3.984 kB / 1.248 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.2999, allocations: 318.7 kB / 1.249 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.3, allocations: 92.95 kB / 1.249 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.3, allocations: 0 / 1.249 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.3002, allocations: 23.98 kB / 1.249 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.946e-05/0.3002, allocations: 11.92 kB / 1.249 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.3003, allocations: 12.08 kB / 1.249 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.892e-05/0.3004, allocations: 119.2 kB / 1.249 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3004, allocations: 0 / 1.249 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.00034/0.3007, allocations: 35.94 kB / 1.249 GB, free: 1.148 MB / 0.9669 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.001122/0.3018, allocations: 0.9537 MB / 1.25 GB, free: 216 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003714/0.3022, allocations: 115.7 kB / 1.25 GB, free: 100 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3022, allocations: 0 / 1.25 GB, free: 100 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.3024, allocations: 55.89 kB / 1.25 GB, free: 44 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.3028, allocations: 25.55 kB / 1.25 GB, free: 20 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.3051, allocations: 1.897 MB / 1.252 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3055, allocations: 0.7119 MB / 1.253 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.016e-05/0.3056, allocations: 24.53 kB / 1.253 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.55e-05/0.3057, allocations: 39.61 kB / 1.253 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of SimCode: time 3.51e-07/0.3057, allocations: 3.938 kB / 1.253 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.3295, allocations: 3.433 MB / 1.256 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.596/7.925, allocations: 5.234 kB / 1.256 GB, free: 9.844 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches