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.001241/0.001241, 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.00124/0.00124, allocations: 195.9 kB / 16.26 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 1.273/1.273, allocations: 222.9 MB / 239.9 MB, free: 4.449 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.314/2.314, allocations: 437 MB / 0.7101 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 55.91 kB / 0.8689 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5268/0.5281, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002427/0.5306, allocations: 1.647 MB / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.5316, allocations: 0.6936 MB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.83e-05/0.5317, allocations: 0 / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.5318, allocations: 15.81 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.476e-05/0.5319, allocations: 19.84 kB / 1.019 GB, free: 328 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.0003997/0.5323, allocations: 95.84 kB / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.5325, allocations: 135.5 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.5326, allocations: 37.09 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.277e-05/0.5327, allocations: 51.83 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.459e-05/0.5328, allocations: 71.75 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.5328, allocations: 12 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.5329, allocations: 51.83 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.57e-05/0.533, allocations: 27.92 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.322e-05/0.5331, allocations: 67.58 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001967/0.5333, allocations: 161.8 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.5333, allocations: 0 / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5333, allocations: 4 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.5333, allocations: 0 / 1.02 GB, free: 15.62 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.0007648/0.534, allocations: 0.5467 MB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.5341, allocations: 8.031 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.608e-05/0.5341, allocations: 46.73 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/0.5342, allocations: 16.75 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.5344, allocations: 216 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.5344, allocations: 4.375 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.5344, allocations: 12.38 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.5347, allocations: 131.5 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.5347, allocations: 0 / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.5347, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.5348, allocations: 4 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.535, allocations: 67.88 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.5356, allocations: 456.8 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.5358, allocations: 89.11 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.5359, allocations: 45.81 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.5359, allocations: 11.98 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002792/0.5362, allocations: 148.9 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.5362, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005291/0.5368, allocations: 189.4 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.522e-05/0.5368, allocations: 81.11 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.537, allocations: 163.2 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.537, allocations: 37.69 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.537, allocations: 112.2 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.5371, allocations: 23.72 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.5371, allocations: 37.7 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.871e-05/0.5372, allocations: 326.8 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.5374, allocations: 31.97 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.5375, allocations: 118.3 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/0.5378, allocations: 147.9 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5378, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003502/0.5382, allocations: 165.2 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.5382, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.5382, allocations: 7.938 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.5382, allocations: 4 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.5384, allocations: 23.91 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.5384, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.762e-05/0.5385, allocations: 20.2 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.5385, allocations: 8 kB / 1.023 GB, free: 12.01 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.74e-05/0.5386, allocations: 138.5 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.5386, allocations: 15.81 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.5387, allocations: 25.38 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.5387, allocations: 4 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5387, allocations: 4 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.5387, allocations: 3.938 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006488/0.5394, allocations: 0.5365 MB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.5394, allocations: 0 / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.558e-05/0.5395, allocations: 11.98 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.5395, allocations: 7.938 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.5395, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5395, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5395, allocations: 8 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003936/0.5399, allocations: 314.6 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.5399, allocations: 92.86 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.54, allocations: 8 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.5402, allocations: 19.97 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.5402, allocations: 11.98 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.5402, allocations: 8 kB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.459e-05/0.5403, allocations: 124.8 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5403, allocations: 0 / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003355/0.5407, allocations: 39.98 kB / 1.024 GB, free: 10.55 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.0008827/0.5416, allocations: 0.9632 MB / 1.025 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003406/0.5419, allocations: 115.9 kB / 1.025 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.5419, allocations: 4 kB / 1.025 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.5421, allocations: 51.91 kB / 1.026 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.5425, allocations: 19.98 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.5444, allocations: 1.924 MB / 1.027 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.5447, allocations: 0.7195 MB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.73e-05/0.5447, allocations: 20.53 kB / 1.028 GB, free: 6.59 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.732e-05/0.5448, allocations: 39.42 kB / 1.028 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.5448, allocations: 4 kB / 1.028 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6855/1.23, allocations: 3.238 MB / 1.031 GB, free: 3.43 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002626/1.231, allocations: 236.6 kB / 1.032 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.42/3.651, allocations: 3.938 kB / 1.032 GB, free: 3.172 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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