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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001943/0.001943, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002316/0.002317, allocations: 191.3 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.752/2.752, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.168/5.168, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 62.23 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.542/0.5445, allocations: 157.4 MB / 1.052 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.006304/0.5508, allocations: 1.661 MB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002635/0.5535, allocations: 0.6935 MB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.5537, allocations: 3.938 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.5539, allocations: 11.94 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.5541, allocations: 15.84 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001038/0.5552, allocations: 95.78 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.5556, allocations: 139.6 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.5559, allocations: 29.11 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.5561, allocations: 55.78 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.5563, allocations: 67.67 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.728e-05/0.5564, allocations: 8 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002489/0.5566, allocations: 51.97 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.5567, allocations: 27.91 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.5569, allocations: 67.64 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005137/0.5575, allocations: 159.8 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.133e-05/0.5575, allocations: 4 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.888e-06/0.5575, allocations: 4 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.597e-05/0.5575, allocations: 0 / 1.055 GB, free: 5.566 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.001719/0.5593, allocations: 0.5429 MB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.948e-05/0.5594, allocations: 12.56 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.522e-05/0.5595, allocations: 38.75 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.5596, allocations: 20.73 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.56, allocations: 216.5 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.56, allocations: 8.375 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.5601, allocations: 4.375 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005791/0.5607, allocations: 133.3 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.5607, allocations: 3.984 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.5608, allocations: 11.98 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.5608, allocations: 0 / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004283/0.5612, allocations: 67.88 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.5624, allocations: 472.6 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.5628, allocations: 85.17 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.5631, allocations: 49.81 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.23e-05/0.5631, allocations: 0 / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005709/0.5637, allocations: 152.9 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 2.875e-06/0.5637, allocations: 0 / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.001181/0.5649, allocations: 181.4 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.565, allocations: 85.03 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.5654, allocations: 166.3 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.5654, allocations: 33.7 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.5656, allocations: 112.3 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.88e-05/0.5657, allocations: 27.64 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.5658, allocations: 37.7 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000213/0.5661, allocations: 322.8 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.5663, allocations: 35.97 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003449/0.5667, allocations: 118.3 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005466/0.5672, allocations: 143.5 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.5673, allocations: 4 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007333/0.568, allocations: 165.2 kB / 1.059 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.286e-05/0.5681, allocations: 8 kB / 1.059 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.5681, allocations: 0 / 1.059 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.639e-05/0.5682, allocations: 8.281 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.5684, allocations: 20.3 kB / 1.059 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.5684, allocations: 0 / 1.059 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002472/0.5687, allocations: 23.92 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/0.5687, allocations: 4.109 kB / 1.059 GB, free: 1.957 MB / 0.8106 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.0002561/0.569, allocations: 141.6 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.221e-05/0.5691, allocations: 15.81 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.5692, allocations: 21.39 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.5693, allocations: 4 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.5693, allocations: 0 / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.5693, allocations: 3.938 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.5708, allocations: 0.5368 MB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.5708, allocations: 0 / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.5709, allocations: 19.98 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-05/0.571, allocations: 7.969 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.571, allocations: 4 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.571, allocations: 0 / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.571, allocations: 0 / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008549/0.5719, allocations: 322.5 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.572, allocations: 92.94 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.5721, allocations: 0 / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.5724, allocations: 19.98 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.702e-05/0.5726, allocations: 11.92 kB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.024e-05/0.5727, allocations: 11.98 kB / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001953/0.5729, allocations: 120.2 kB / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of sort global known variables: time 4.91e-07/0.5729, allocations: 0 / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0007257/0.5736, allocations: 40 kB / 1.06 GB, free: 0.5 MB / 0.8106 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.002132/0.5758, allocations: 0.9603 MB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006724/0.5765, allocations: 111.7 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.5765, allocations: 0 / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003476/0.5769, allocations: 60.45 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007096/0.5776, allocations: 21.11 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004684/0.5823, allocations: 1.917 MB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.5829, allocations: 0.708 MB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001642/0.5831, allocations: 24.53 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.5832, allocations: 39.42 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of SimCode: time 8.32e-07/0.5833, allocations: 0 / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06179/0.645, allocations: 3.244 MB / 1.067 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004229/0.6455, allocations: 250.3 kB / 1.067 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.915/4.561, allocations: 0 / 1.067 GB, free: 9.141 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