Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_9_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.001344/0.001344, 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.001236/0.001236, allocations: 190.9 kB / 16.25 MB, free: 6.629 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.269/1.269, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.137/2.137, allocations: 390.2 MB / 0.6644 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5659/0.5672, allocations: 140.4 MB / 0.9492 GB, free: 9.328 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.00231/0.5696, allocations: 1.628 MB / 0.9508 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009685/0.5705, allocations: 0.6978 MB / 0.9515 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.98e-05/0.5706, allocations: 1.438 kB / 0.9515 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.481e-05/0.5707, allocations: 9.297 kB / 0.9515 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.632e-05/0.5708, allocations: 13.19 kB / 0.9515 GB, free: 7.492 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.000372/0.5711, allocations: 102.2 kB / 0.9516 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.5713, allocations: 131.4 kB / 0.9517 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.5714, allocations: 44.52 kB / 0.9518 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.734e-05/0.5715, allocations: 57.34 kB / 0.9518 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.737e-05/0.5716, allocations: 66.7 kB / 0.9519 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.5716, allocations: 13.62 kB / 0.9519 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.5717, allocations: 54.45 kB / 0.952 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.535e-05/0.5718, allocations: 35.56 kB / 0.952 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.594e-05/0.5718, allocations: 51.17 kB / 0.9521 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.572, allocations: 173.2 kB / 0.9522 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.572, allocations: 1.219 kB / 0.9522 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.874e-06/0.572, allocations: 0 / 0.9522 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.277e-05/0.5721, allocations: 0 / 0.9522 GB, free: 7.023 MB / 0.7169 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.000649/0.5727, allocations: 0.5385 MB / 0.9527 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.5728, allocations: 9.531 kB / 0.9528 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.344e-05/0.5728, allocations: 45.77 kB / 0.9528 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.5728, allocations: 17.94 kB / 0.9528 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.573, allocations: 219.5 kB / 0.953 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.573, allocations: 4.594 kB / 0.953 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.573, allocations: 10.47 kB / 0.953 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.5733, allocations: 134.8 kB / 0.9532 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5733, allocations: 7.938 kB / 0.9532 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.5734, allocations: 5.531 kB / 0.9532 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.5734, allocations: 1.094 kB / 0.9532 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.5736, allocations: 65.19 kB / 0.9532 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004965/0.5741, allocations: 467.3 kB / 0.9537 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.5743, allocations: 83 kB / 0.9538 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.5744, allocations: 46.44 kB / 0.9538 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.5744, allocations: 6.531 kB / 0.9538 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.5747, allocations: 144.2 kB / 0.954 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.5747, allocations: 0 / 0.954 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0004956/0.5752, allocations: 189.2 kB / 0.9541 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.5752, allocations: 79.86 kB / 0.9542 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.5753, allocations: 167.4 kB / 0.9544 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.5753, allocations: 36.64 kB / 0.9544 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.5754, allocations: 116.2 kB / 0.9545 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.5754, allocations: 23.11 kB / 0.9545 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.675e-05/0.5755, allocations: 34.95 kB / 0.9546 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.5755, allocations: 327.1 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.5756, allocations: 36.33 kB / 0.9549 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.5758, allocations: 115.7 kB / 0.955 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.576, allocations: 148.8 kB / 0.9552 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.576, allocations: 1.562 kB / 0.9552 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003068/0.5763, allocations: 159.8 kB / 0.9553 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.5764, allocations: 14.23 kB / 0.9553 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.5764, allocations: 6.156 kB / 0.9553 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.5764, allocations: 3.281 kB / 0.9553 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.887e-05/0.5765, allocations: 18.73 kB / 0.9554 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.5765, allocations: 3.062 kB / 0.9554 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.686e-05/0.5766, allocations: 15.95 kB / 0.9554 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.5766, allocations: 9.688 kB / 0.9554 GB, free: 4.141 MB / 0.7169 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 7.89e-05/0.5767, allocations: 133.7 kB / 0.9555 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/0.5767, allocations: 22.14 kB / 0.9555 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.5768, allocations: 14.7 kB / 0.9556 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.5768, allocations: 1.375 kB / 0.9556 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5768, allocations: 1.5 kB / 0.9556 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.5768, allocations: 7.922 kB / 0.9556 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005295/0.5773, allocations: 0.5414 MB / 0.9561 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5773, allocations: 0 / 0.9561 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.735e-05/0.5774, allocations: 12.92 kB / 0.9561 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.5774, allocations: 5.094 kB / 0.9561 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.5774, allocations: 1.188 kB / 0.9561 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.5774, allocations: 5.109 kB / 0.9561 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5775, allocations: 5.062 kB / 0.9561 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003281/0.5778, allocations: 318.3 kB / 0.9564 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.505e-05/0.5778, allocations: 91.67 kB / 0.9565 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.5778, allocations: 9.469 kB / 0.9565 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.578, allocations: 17.62 kB / 0.9565 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.144e-05/0.5781, allocations: 12.7 kB / 0.9566 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.5781, allocations: 6.656 kB / 0.9566 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.853e-05/0.5782, allocations: 127.2 kB / 0.9567 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5782, allocations: 0 / 0.9567 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003144/0.5785, allocations: 40.52 kB / 0.9567 GB, free: 2.965 MB / 0.7169 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.0007377/0.5792, allocations: 0.9584 MB / 0.9577 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003132/0.5796, allocations: 108.9 kB / 0.9578 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.5796, allocations: 0.5625 kB / 0.9578 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.5797, allocations: 60.94 kB / 0.9578 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.5801, allocations: 23.91 kB / 0.9578 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.5816, allocations: 1.917 MB / 0.9597 GB, free: 328 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.5819, allocations: 0.7195 MB / 0.9604 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.287e-05/0.5819, allocations: 20.78 kB / 0.9604 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.022e-05/0.582, allocations: 39.73 kB / 0.9605 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/0.582, allocations: 0 / 0.9605 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.6023, allocations: 3.244 MB / 0.9636 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/0.6025, allocations: 238.5 kB / 0.9639 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.309, allocations: 0 / 0.9639 GB, free: 13.7 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches