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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00222/0.00222, allocations: 217 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.295/3.295, allocations: 0.505 GB / 0.8101 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 68.23 kB / 1.177 GB, free: 17.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3777, allocations: 180.2 MB / 1.353 GB, free: 8.492 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003612/0.3813, allocations: 1.618 MB / 1.354 GB, free: 6.863 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001686/0.383, allocations: 0.7798 MB / 1.355 GB, free: 6.078 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.197e-05/0.383, allocations: 0 / 1.355 GB, free: 6.078 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.3831, allocations: 11.81 kB / 1.355 GB, free: 6.066 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.923e-05/0.3832, allocations: 19.8 kB / 1.355 GB, free: 6.047 MB / 1.045 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.0005414/0.3838, allocations: 111.7 kB / 1.355 GB, free: 5.938 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000243/0.384, allocations: 139.5 kB / 1.355 GB, free: 5.801 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.3841, allocations: 29.58 kB / 1.355 GB, free: 5.773 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.3843, allocations: 47.84 kB / 1.356 GB, free: 5.727 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.3844, allocations: 71.67 kB / 1.356 GB, free: 5.656 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.3844, allocations: 12 kB / 1.356 GB, free: 5.645 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.3845, allocations: 55.95 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.437e-05/0.3846, allocations: 23.92 kB / 1.356 GB, free: 5.566 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.262e-05/0.3847, allocations: 67.64 kB / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002817/0.385, allocations: 175.2 kB / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.385, allocations: 0 / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.322e-06/0.385, allocations: 3.938 kB / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.098e-05/0.385, allocations: 0 / 1.356 GB, free: 5.324 MB / 1.045 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.0009356/0.3859, allocations: 486.6 kB / 1.356 GB, free: 4.801 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.386, allocations: 8.031 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.386, allocations: 38.75 kB / 1.356 GB, free: 4.746 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.3861, allocations: 16.84 kB / 1.356 GB, free: 4.73 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.3863, allocations: 170.2 kB / 1.357 GB, free: 4.539 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.3863, allocations: 8.375 kB / 1.357 GB, free: 4.531 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.3863, allocations: 8.375 kB / 1.357 GB, free: 4.523 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003373/0.3867, allocations: 135.5 kB / 1.357 GB, free: 4.379 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3867, allocations: 0 / 1.357 GB, free: 4.379 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.3867, allocations: 4 kB / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.3867, allocations: 0 / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.3869, allocations: 71.88 kB / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006962/0.3876, allocations: 427.9 kB / 1.357 GB, free: 3.84 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.3879, allocations: 89.11 kB / 1.357 GB, free: 3.734 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.388, allocations: 45.81 kB / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.388, allocations: 0 / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003814/0.3884, allocations: 149 kB / 1.358 GB, free: 3.52 MB / 1.045 GB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.3884, allocations: 0 / 1.358 GB, free: 3.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=12): time 0.0005868/0.389, allocations: 185.5 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.3891, allocations: 89.05 kB / 1.358 GB, free: 3.227 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.3892, allocations: 166.9 kB / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.3893, allocations: 33.7 kB / 1.358 GB, free: 3.012 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.3894, allocations: 112.3 kB / 1.358 GB, free: 2.895 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.3894, allocations: 23.86 kB / 1.358 GB, free: 2.871 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.411e-05/0.3895, allocations: 33.7 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3896, allocations: 326.8 kB / 1.358 GB, free: 2.504 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.3897, allocations: 39.95 kB / 1.358 GB, free: 2.465 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.39, allocations: 115.8 kB / 1.359 GB, free: 2.316 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.3903, allocations: 147.6 kB / 1.359 GB, free: 2.145 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.3903, allocations: 4 kB / 1.359 GB, free: 2.141 MB / 1.045 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004033/0.3907, allocations: 165.5 kB / 1.359 GB, free: 1.973 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3907, allocations: 8.438 kB / 1.359 GB, free: 1.965 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3907, allocations: 4 kB / 1.359 GB, free: 1.961 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3907, allocations: 4 kB / 1.359 GB, free: 1.957 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3909, allocations: 20.16 kB / 1.359 GB, free: 1.938 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3909, allocations: 7.938 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.391, allocations: 19.88 kB / 1.359 GB, free: 1.91 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.391, allocations: 12 kB / 1.359 GB, free: 1.898 MB / 1.045 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.0001391/0.3911, allocations: 149.6 kB / 1.359 GB, free: 1.742 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.74e-05/0.3912, allocations: 7.953 kB / 1.359 GB, free: 1.734 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.409e-05/0.3912, allocations: 21.39 kB / 1.359 GB, free: 1.711 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3912, allocations: 0 / 1.359 GB, free: 1.711 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3912, allocations: 0 / 1.359 GB, free: 1.711 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3912, allocations: 3.938 kB / 1.359 GB, free: 1.707 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007666/0.392, allocations: 0.5045 MB / 1.36 GB, free: 1.152 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.392, allocations: 8 kB / 1.36 GB, free: 1.145 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.792e-05/0.3921, allocations: 11.98 kB / 1.36 GB, free: 1.133 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.3921, allocations: 3.938 kB / 1.36 GB, free: 1.129 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.3921, allocations: 4 kB / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3921, allocations: 0 / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3921, allocations: 0 / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004486/0.3925, allocations: 326.5 kB / 1.36 GB, free: 0.7891 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/0.3926, allocations: 19.83 kB / 1.36 GB, free: 0.7695 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.573e-05/0.3926, allocations: 4 kB / 1.36 GB, free: 0.7656 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.3928, allocations: 15.98 kB / 1.36 GB, free: 0.75 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.3928, allocations: 11.98 kB / 1.36 GB, free: 0.7383 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.3929, allocations: 7.984 kB / 1.36 GB, free: 0.7305 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001002/0.393, allocations: 131.5 kB / 1.36 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of sort global known variables: time 8.1e-08/0.393, allocations: 0 / 1.36 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003745/0.3933, allocations: 35.94 kB / 1.36 GB, free: 0.5664 MB / 1.045 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.001174/0.3945, allocations: 0.9525 MB / 1.361 GB, free: 15.62 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003632/0.3949, allocations: 99.81 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3949, allocations: 0 / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.395, allocations: 59.83 kB / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.3954, allocations: 28.44 kB / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002498/0.3979, allocations: 1.896 MB / 1.363 GB, free: 13.4 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.3983, allocations: 0.7197 MB / 1.364 GB, free: 12.66 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.124e-05/0.3984, allocations: 24.41 kB / 1.364 GB, free: 12.63 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.147e-05/0.3984, allocations: 39.42 kB / 1.364 GB, free: 12.59 MB / 1.061 GB Notification: Performance of SimCode: time 5.21e-07/0.3984, allocations: 0 / 1.364 GB, free: 12.59 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03187/0.4303, allocations: 3.594 MB / 1.367 GB, free: 9.148 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.02, allocations: 4.766 kB / 1.367 GB, free: 9.148 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.82331268605776]