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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001195/0.001195, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001983/0.001983, allocations: 198.5 kB / 16.14 MB, free: 6.719 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.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.37/2.37, allocations: 437 MB / 0.7099 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5204/0.5216, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002657/0.5243, allocations: 1.64 MB / 1.018 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.5255, allocations: 0.6975 MB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.235e-05/0.5255, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.618e-05/0.5256, allocations: 11.86 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.959e-05/0.5257, allocations: 15.86 kB / 1.019 GB, free: 404 kB / 0.7637 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0003535/0.5261, allocations: 103.8 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.5262, allocations: 135.5 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.5264, allocations: 25.11 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.058e-05/0.5265, allocations: 47.83 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.301e-05/0.5265, allocations: 63.7 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.5266, allocations: 8 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.5267, allocations: 47.89 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.131e-05/0.5268, allocations: 27.91 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.5268, allocations: 55.66 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.527, allocations: 157.8 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.5271, allocations: 4 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.71e-07/0.5271, allocations: 0 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.5271, allocations: 0 / 1.02 GB, free: 15.73 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.0007991/0.5279, allocations: 0.5468 MB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.5279, allocations: 12.02 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.498e-05/0.528, allocations: 38.75 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.749e-05/0.528, allocations: 16.75 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.5282, allocations: 212.1 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.5282, allocations: 16.36 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.5283, allocations: 8.359 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.5286, allocations: 131.4 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.5286, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.5286, allocations: 8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.5286, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.5289, allocations: 67.88 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006674/0.5296, allocations: 468.7 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.5298, allocations: 85.12 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.5299, allocations: 49.81 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.5299, allocations: 0 / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002759/0.5302, allocations: 156.9 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.5302, allocations: 0 / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005338/0.5308, allocations: 181.7 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.5308, allocations: 81.11 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.5309, allocations: 167.4 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.531, allocations: 33.64 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.531, allocations: 116.2 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.5311, allocations: 19.72 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.177e-05/0.5311, allocations: 33.7 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.5313, allocations: 330.8 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.5314, allocations: 39.97 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.5316, allocations: 118.2 kB / 1.022 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.5319, allocations: 143.6 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5319, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003652/0.5322, allocations: 169.5 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.5323, allocations: 12 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.5323, allocations: 112 / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.5323, allocations: 7.938 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.5324, allocations: 19.92 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.5324, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.5325, allocations: 23.92 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.5325, allocations: 4 kB / 1.023 GB, free: 12.12 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 0.0001128/0.5327, allocations: 142.3 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.5327, allocations: 15.81 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.5327, allocations: 17.41 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.5327, allocations: 0 / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5328, allocations: 3.938 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.5328, allocations: 11.92 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007231/0.5335, allocations: 0.5291 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.5335, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/0.5336, allocations: 15.92 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.5336, allocations: 3.938 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.5336, allocations: 11.98 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.5336, allocations: 0 / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.5336, allocations: 0 / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003824/0.534, allocations: 314.6 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.5341, allocations: 92.86 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.5341, allocations: 7.984 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.5343, allocations: 15.98 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.5343, allocations: 20.02 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.5344, allocations: 11.94 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.687e-05/0.5345, allocations: 128.7 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5345, allocations: 0 / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003238/0.5348, allocations: 36 kB / 1.024 GB, free: 10.66 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.0009776/0.5358, allocations: 0.9646 MB / 1.025 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003364/0.5361, allocations: 99.86 kB / 1.025 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5361, allocations: 4.562 kB / 1.025 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.5363, allocations: 55.91 kB / 1.025 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.5367, allocations: 15.98 kB / 1.025 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.5388, allocations: 1.922 MB / 1.027 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.5391, allocations: 0.7121 MB / 1.028 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.757e-05/0.5392, allocations: 24.72 kB / 1.028 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.968e-05/0.5392, allocations: 39.36 kB / 1.028 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of SimCode: time 1.543e-06/0.5392, allocations: 0 / 1.028 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4151/0.9543, allocations: 3.14 MB / 1.031 GB, free: 3.637 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/0.9546, allocations: 237.8 kB / 1.031 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.707, allocations: 3.938 kB / 1.031 GB, free: 3.379 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