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.008562/0.008562, allocations: 103.3 kB / 15.73 MB, free: 6.047 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.002072/0.002072, allocations: 189 kB / 16.67 MB, free: 5.969 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.638/2.638, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 59.91 kB / 1.054 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8003/0.8017, allocations: 157.4 MB / 1.207 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002952/0.8047, allocations: 1.584 MB / 1.209 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001264/0.806, allocations: 0.6974 MB / 1.209 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.058e-05/0.8061, allocations: 4 kB / 1.209 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.807e-05/0.8062, allocations: 7.875 kB / 1.209 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.356e-05/0.8063, allocations: 23.72 kB / 1.21 GB, free: 11.2 MB / 0.9356 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.0004943/0.8068, allocations: 107.8 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.807, allocations: 143.5 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.8072, allocations: 33.11 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.954e-05/0.8073, allocations: 55.78 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.135e-05/0.8074, allocations: 59.75 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.8074, allocations: 12 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.8076, allocations: 55.95 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.587e-05/0.8076, allocations: 27.84 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.93e-05/0.8077, allocations: 67.66 kB / 1.21 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.808, allocations: 169.7 kB / 1.21 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.808, allocations: 4 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.352e-06/0.808, allocations: 0 / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.024e-05/0.808, allocations: 0 / 1.21 GB, free: 10.48 MB / 0.9356 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.0009003/0.8089, allocations: 0.5506 MB / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.809, allocations: 8.031 kB / 1.211 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.809, allocations: 38.75 kB / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.236e-05/0.8091, allocations: 12.84 kB / 1.211 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.8093, allocations: 217.2 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.8093, allocations: 16.3 kB / 1.211 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.8093, allocations: 4.375 kB / 1.211 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003315/0.8097, allocations: 135.5 kB / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.8097, allocations: 0 / 1.211 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.8097, allocations: 4 kB / 1.211 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.8097, allocations: 0 / 1.211 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002662/0.81, allocations: 63.94 kB / 1.211 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006757/0.8107, allocations: 472.6 kB / 1.212 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.8109, allocations: 81.12 kB / 1.212 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.8111, allocations: 45.81 kB / 1.212 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.8111, allocations: 8 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003254/0.8115, allocations: 152.9 kB / 1.212 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.8115, allocations: 0 / 1.212 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0006051/0.8121, allocations: 189.5 kB / 1.212 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.8121, allocations: 77.11 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.8123, allocations: 174.8 kB / 1.212 GB, free: 8.012 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.8123, allocations: 33.7 kB / 1.212 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.343e-05/0.8124, allocations: 112.2 kB / 1.213 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.8124, allocations: 28.08 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-05/0.8125, allocations: 33.72 kB / 1.213 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.8126, allocations: 326.8 kB / 1.213 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.8128, allocations: 39.91 kB / 1.213 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.813, allocations: 125 kB / 1.213 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003096/0.8133, allocations: 147.5 kB / 1.213 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.8133, allocations: 0 / 1.213 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003863/0.8137, allocations: 165.2 kB / 1.213 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.8137, allocations: 8 kB / 1.213 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.8137, allocations: 0 / 1.213 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.8138, allocations: 4.109 kB / 1.213 GB, free: 6.914 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.8139, allocations: 23.86 kB / 1.213 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.8139, allocations: 288 / 1.213 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.814, allocations: 27.92 kB / 1.213 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.814, allocations: 4 kB / 1.213 GB, free: 6.859 MB / 0.9356 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.0001203/0.8141, allocations: 137.8 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.987e-05/0.8142, allocations: 15.84 kB / 1.214 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.846e-05/0.8142, allocations: 13.41 kB / 1.214 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.8143, allocations: 0 / 1.214 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.8143, allocations: 0 / 1.214 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.8143, allocations: 11.92 kB / 1.214 GB, free: 6.668 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007509/0.815, allocations: 0.5289 MB / 1.214 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.8151, allocations: 0 / 1.214 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.954e-05/0.8151, allocations: 23.91 kB / 1.214 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.8152, allocations: 3.938 kB / 1.214 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.8152, allocations: 4 kB / 1.214 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.8152, allocations: 0 / 1.214 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.8152, allocations: 4 kB / 1.214 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00044/0.8156, allocations: 318.5 kB / 1.214 GB, free: 5.719 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.8157, allocations: 92.86 kB / 1.215 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.8157, allocations: 3.984 kB / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.8159, allocations: 23.92 kB / 1.215 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.684e-05/0.816, allocations: 11.98 kB / 1.215 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.816, allocations: 8 kB / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.875e-05/0.8161, allocations: 119.2 kB / 1.215 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8161, allocations: 0 / 1.215 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003695/0.8165, allocations: 40 kB / 1.215 GB, free: 5.406 MB / 0.9356 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.001022/0.8175, allocations: 0.9478 MB / 1.216 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003832/0.8179, allocations: 111.9 kB / 1.216 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8179, allocations: 0 / 1.216 GB, free: 4.359 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.8181, allocations: 55.95 kB / 1.216 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.8185, allocations: 30.47 kB / 1.216 GB, free: 4.277 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.8207, allocations: 1.891 MB / 1.218 GB, free: 2.258 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.821, allocations: 0.7196 MB / 1.218 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.415e-05/0.8211, allocations: 24.53 kB / 1.218 GB, free: 1.488 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.8212, allocations: 39.42 kB / 1.218 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of SimCode: time 4.41e-07/0.8212, allocations: 3.938 kB / 1.218 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.8421, allocations: 3.503 MB / 1.222 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.128/8.97, allocations: 6.812 kB / 1.222 GB, free: 14.04 MB / 0.9512 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