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.001278/0.001278, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.485/2.485, allocations: 437.1 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 63.89 kB / 0.8693 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6259/0.6273, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002666/0.63, allocations: 1.584 MB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001171/0.6312, allocations: 0.6974 MB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.979e-05/0.6312, allocations: 4 kB / 1.02 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.832e-05/0.6313, allocations: 15.8 kB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.726e-05/0.6314, allocations: 15.81 kB / 1.02 GB, free: 144 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.0004447/0.6319, allocations: 111.7 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.6321, allocations: 143.5 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.6322, allocations: 37.09 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.478e-05/0.6323, allocations: 47.84 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.23e-05/0.6324, allocations: 71.67 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.6324, allocations: 8 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.6326, allocations: 55.97 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.454e-05/0.6326, allocations: 27.91 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.492e-05/0.6327, allocations: 63.59 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.6329, allocations: 169.8 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.6329, allocations: 0 / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6329, allocations: 0 / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.6329, allocations: 0 / 1.02 GB, free: 15.42 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.0007715/0.6337, allocations: 0.5428 MB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.6338, allocations: 8.031 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.05e-05/0.6338, allocations: 38.75 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.109e-05/0.6339, allocations: 20.73 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.6341, allocations: 212.1 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.6341, allocations: 8.375 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.6341, allocations: 4.375 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.6344, allocations: 139.4 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.6344, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.6344, allocations: 7.984 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.6344, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.6347, allocations: 67.94 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006069/0.6353, allocations: 460.7 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.6355, allocations: 89.11 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.6357, allocations: 45.81 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.6357, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/0.636, allocations: 156.9 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.636, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006135/0.6367, allocations: 189.3 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.6367, allocations: 81.11 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.6369, allocations: 167.8 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.6369, allocations: 29.7 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/0.637, allocations: 120.2 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.383e-05/0.637, allocations: 23.7 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.934e-05/0.6371, allocations: 41.7 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.6372, allocations: 318.8 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.6373, allocations: 39.97 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.6375, allocations: 118.2 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.6378, allocations: 143.5 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.6378, allocations: 8 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003703/0.6382, allocations: 165.2 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.6382, allocations: 9.25 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.6383, allocations: 4 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.6383, allocations: 4.281 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.6384, allocations: 15.98 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.6384, allocations: 7.938 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.6385, allocations: 19.92 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.6385, allocations: 4 kB / 1.024 GB, free: 11.81 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.0001155/0.6387, allocations: 134.4 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/0.6387, allocations: 16.05 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.655e-05/0.6388, allocations: 21.39 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.6388, allocations: 7.984 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.6388, allocations: 4 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.6388, allocations: 3.938 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006996/0.6395, allocations: 0.533 MB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.6395, allocations: 0 / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.706e-05/0.6396, allocations: 23.92 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.6396, allocations: 4.031 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.6396, allocations: 7.938 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.6396, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.6396, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.6401, allocations: 318.7 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.753e-05/0.6401, allocations: 92.86 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.6401, allocations: 0 / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.6403, allocations: 19.98 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.646e-05/0.6404, allocations: 11.92 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.202e-05/0.6404, allocations: 11.98 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.726e-05/0.6405, allocations: 115.2 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6405, allocations: 4 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003438/0.6409, allocations: 36 kB / 1.025 GB, free: 10.36 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.001041/0.6419, allocations: 0.9673 MB / 1.026 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003855/0.6423, allocations: 111.8 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.6423, allocations: 0 / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.6425, allocations: 60.44 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.6429, allocations: 28.11 kB / 1.026 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.6451, allocations: 1.881 MB / 1.028 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.6455, allocations: 0.7156 MB / 1.029 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.669e-05/0.6455, allocations: 24.48 kB / 1.029 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.619e-05/0.6456, allocations: 39.42 kB / 1.029 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6456, allocations: 0 / 1.029 GB, free: 6.387 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.6671, allocations: 3.388 MB / 1.032 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.185/7.852, allocations: 15.92 kB / 1.032 GB, free: 3.066 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