Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001515/0.001515, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001831/0.001831, allocations: 224.4 kB / 22.26 MB, free: 5.215 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.897/2.897, allocations: 476.7 MB / 0.7707 GB, free: 4.219 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_11_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.002133/0.002133, allocations: 63.27 kB / 1.117 GB, free: 40.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3245, allocations: 170 MB / 1.283 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003282/0.3278, allocations: 1.623 MB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.3295, allocations: 0.7654 MB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.285e-05/0.3296, allocations: 4 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.3297, allocations: 11.81 kB / 1.286 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.181e-05/0.3298, allocations: 19.8 kB / 1.286 GB, free: 9.262 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.0006726/0.3305, allocations: 111.7 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.3307, allocations: 147.5 kB / 1.286 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.3309, allocations: 25.3 kB / 1.286 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.331, allocations: 51.78 kB / 1.286 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.3311, allocations: 67.73 kB / 1.286 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.3312, allocations: 12 kB / 1.286 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.3313, allocations: 55.97 kB / 1.286 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.034e-05/0.3314, allocations: 27.91 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.716e-05/0.3315, allocations: 63.64 kB / 1.286 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003271/0.3318, allocations: 179.5 kB / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3318, allocations: 0 / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3318, allocations: 0 / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.3318, allocations: 0 / 1.286 GB, free: 8.539 MB / 0.9825 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.001004/0.3328, allocations: 488.7 kB / 1.287 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.3329, allocations: 8.031 kB / 1.287 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.142e-05/0.3329, allocations: 34.75 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.674e-05/0.333, allocations: 20.84 kB / 1.287 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.3333, allocations: 163.5 kB / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.3333, allocations: 4.375 kB / 1.287 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.544e-05/0.3333, allocations: 12.38 kB / 1.287 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.3337, allocations: 135.5 kB / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3337, allocations: 0 / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.3337, allocations: 0 / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.3337, allocations: 4 kB / 1.287 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002762/0.334, allocations: 71.88 kB / 1.287 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008077/0.3348, allocations: 431.9 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.335, allocations: 85.11 kB / 1.288 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.3352, allocations: 49.81 kB / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.3352, allocations: 7.984 kB / 1.288 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003571/0.3356, allocations: 149 kB / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 2.134e-06/0.3356, allocations: 4 kB / 1.288 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0006347/0.3362, allocations: 185.4 kB / 1.288 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/0.3363, allocations: 81.11 kB / 1.288 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.3365, allocations: 174.7 kB / 1.288 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.3365, allocations: 34.08 kB / 1.288 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.3366, allocations: 112.3 kB / 1.289 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.361e-05/0.3367, allocations: 31.8 kB / 1.289 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.3367, allocations: 33.7 kB / 1.289 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3369, allocations: 326.8 kB / 1.289 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.3371, allocations: 39.95 kB / 1.289 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.3373, allocations: 118.3 kB / 1.289 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/0.3376, allocations: 143.6 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3376, allocations: 0 / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004287/0.338, allocations: 169.3 kB / 1.289 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3381, allocations: 4 kB / 1.289 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.3381, allocations: 4 kB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.3381, allocations: 4 kB / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.3382, allocations: 20.2 kB / 1.289 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3382, allocations: 4 kB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.3383, allocations: 20.16 kB / 1.289 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.3384, allocations: 8 kB / 1.289 GB, free: 5.113 MB / 0.9825 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.0001629/0.3385, allocations: 146.2 kB / 1.29 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.491e-05/0.3386, allocations: 11.91 kB / 1.29 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.177e-05/0.3386, allocations: 13.41 kB / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3386, allocations: 4 kB / 1.29 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3386, allocations: 4 kB / 1.29 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.3386, allocations: 11.86 kB / 1.29 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008394/0.3395, allocations: 0.5006 MB / 1.29 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3395, allocations: 4 kB / 1.29 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.439e-05/0.3396, allocations: 15.97 kB / 1.29 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.3396, allocations: 3.938 kB / 1.29 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.3396, allocations: 4 kB / 1.29 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.3396, allocations: 4 kB / 1.29 GB, free: 4.328 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3396, allocations: 0 / 1.29 GB, free: 4.328 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004822/0.3401, allocations: 318.6 kB / 1.29 GB, free: 4 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.444e-05/0.3401, allocations: 11.89 kB / 1.29 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.3401, allocations: 7.984 kB / 1.29 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.3403, allocations: 23.98 kB / 1.291 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/0.3404, allocations: 7.984 kB / 1.291 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.873e-05/0.3404, allocations: 11.98 kB / 1.291 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001026/0.3405, allocations: 115.2 kB / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3405, allocations: 0 / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004063/0.3409, allocations: 43.98 kB / 1.291 GB, free: 3.781 MB / 0.9825 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.001291/0.3422, allocations: 0.9507 MB / 1.292 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004273/0.3426, allocations: 108 kB / 1.292 GB, free: 2.73 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3426, allocations: 4 kB / 1.292 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.3428, allocations: 47.95 kB / 1.292 GB, free: 2.68 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.3432, allocations: 19.98 kB / 1.292 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.346, allocations: 1.905 MB / 1.294 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.3464, allocations: 0.7156 MB / 1.294 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.203e-05/0.3465, allocations: 28.41 kB / 1.294 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.686e-05/0.3466, allocations: 39.42 kB / 1.294 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of SimCode: time 8.81e-07/0.3466, allocations: 0 / 1.294 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.3818, allocations: 3.598 MB / 1.298 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.9, allocations: 2.922 kB / 1.298 GB, free: 12.37 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.567496449919418]