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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008542/0.0008542, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005392/0.005392, allocations: 170 kB / 16.26 MB, free: 6.613 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.311/1.311, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003734, allocations: 9.875 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2929, allocations: 159.6 MB / 1.059 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001885/0.2948, allocations: 1.311 MB / 1.06 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.2962, allocations: 0.6858 MB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.952e-05/0.2963, allocations: 0 / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001068/0.2964, allocations: 11.86 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.529e-05/0.2965, allocations: 15.86 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0004981/0.297, allocations: 99.83 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.2972, allocations: 127.5 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2974, allocations: 33.09 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.2975, allocations: 43.84 kB / 1.061 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.325e-05/0.2976, allocations: 63.67 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/0.2976, allocations: 4 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.2978, allocations: 43.92 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.657e-05/0.2978, allocations: 31.89 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.242e-05/0.2979, allocations: 73.38 kB / 1.061 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.2982, allocations: 159.7 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2982, allocations: 0 / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2982, allocations: 0 / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.2982, allocations: 0 / 1.061 GB, free: 2.152 MB / 0.8106 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.0007994/0.299, allocations: 0.5313 MB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.2991, allocations: 15.97 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.553e-05/0.2991, allocations: 38.75 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.252e-05/0.2992, allocations: 24.67 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.2994, allocations: 212.1 kB / 1.062 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.2994, allocations: 12.31 kB / 1.062 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.2994, allocations: 4.375 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000323/0.2998, allocations: 143.5 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.2998, allocations: 0 / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.2998, allocations: 3.984 kB / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.2998, allocations: 4 kB / 1.062 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002672/0.3001, allocations: 79.94 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006561/0.3008, allocations: 480.6 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.301, allocations: 89.11 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3011, allocations: 57.92 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.3012, allocations: 3.938 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000309/0.3015, allocations: 153 kB / 1.063 GB, free: 108 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.3015, allocations: 0 / 1.063 GB, free: 108 kB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0006208/0.3021, allocations: 213.3 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.3022, allocations: 77.11 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.3023, allocations: 167.8 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.3024, allocations: 29.7 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.684e-05/0.3024, allocations: 116.3 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.878e-05/0.3025, allocations: 35.62 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.3025, allocations: 17.72 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.3026, allocations: 322.8 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.3028, allocations: 51.89 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.303, allocations: 122.3 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.3033, allocations: 159.6 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3033, allocations: 0 / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003967/0.3037, allocations: 185.2 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3038, allocations: 8.281 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3038, allocations: 4 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3038, allocations: 4 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.3039, allocations: 19.92 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3039, allocations: 4 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.304, allocations: 24.3 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.3041, allocations: 4 kB / 1.065 GB, free: 14.44 MB / 0.8262 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.0001109/0.3042, allocations: 129.8 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.124e-05/0.3042, allocations: 23.73 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.548e-05/0.3043, allocations: 21.34 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3043, allocations: 7.938 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3043, allocations: 240 / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3043, allocations: 7.922 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007112/0.305, allocations: 0.5483 MB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.305, allocations: 3.938 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.918e-05/0.3051, allocations: 19.98 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.3051, allocations: 7.938 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.3051, allocations: 7.984 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.3051, allocations: 4 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3052, allocations: 0 / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004186/0.3056, allocations: 330.6 kB / 1.066 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.3056, allocations: 92.86 kB / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.3057, allocations: 0 / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.3058, allocations: 27.97 kB / 1.066 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.657e-05/0.3059, allocations: 11.98 kB / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.3059, allocations: 8 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.757e-05/0.306, allocations: 115.2 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.306, allocations: 3.938 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003389/0.3064, allocations: 43.98 kB / 1.066 GB, free: 12.94 MB / 0.8262 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.0009692/0.3073, allocations: 0.9669 MB / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003609/0.3077, allocations: 120.3 kB / 1.067 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.3077, allocations: 8.062 kB / 1.067 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.3079, allocations: 55.91 kB / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.3083, allocations: 15.98 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.3105, allocations: 1.965 MB / 1.069 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.3107, allocations: 0.7082 MB / 1.07 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.015e-05/0.3108, allocations: 28.47 kB / 1.07 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.866e-05/0.3109, allocations: 39.42 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.3109, allocations: 0 / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.334, allocations: 3.056 MB / 1.073 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/0.3342, allocations: 240.6 kB / 1.073 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/2.322, allocations: 8.812 kB / 1.073 GB, free: 5.707 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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