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.001825/0.001825, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001503/0.001503, allocations: 212.7 kB / 22.24 MB, free: 5.262 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.455/1.455, allocations: 230.6 MB / 256 MB, free: 7.824 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.738/2.738, allocations: 476 MB / 0.7699 GB, free: 4.754 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.002114/0.002114, allocations: 65.44 kB / 1.117 GB, free: 41.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3403, allocations: 170 MB / 1.283 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002787/0.3431, allocations: 1.589 MB / 1.284 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.3444, allocations: 0.7226 MB / 1.285 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.235e-05/0.3445, allocations: 0 / 1.285 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.034e-05/0.3446, allocations: 15.8 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.345e-05/0.3446, allocations: 19.8 kB / 1.285 GB, free: 10.19 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.0004575/0.3451, allocations: 115.7 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.3453, allocations: 139.5 kB / 1.285 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.3454, allocations: 17.31 kB / 1.285 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.801e-05/0.3455, allocations: 67.7 kB / 1.285 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.845e-05/0.3456, allocations: 59.73 kB / 1.285 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.3456, allocations: 12 kB / 1.285 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.3458, allocations: 47.97 kB / 1.285 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.869e-05/0.3458, allocations: 31.86 kB / 1.285 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.071e-05/0.3459, allocations: 51.77 kB / 1.285 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.3462, allocations: 173 kB / 1.286 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3462, allocations: 0 / 1.286 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3462, allocations: 0 / 1.286 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3462, allocations: 0 / 1.286 GB, free: 9.488 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.0008831/0.347, allocations: 490.6 kB / 1.286 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3471, allocations: 12.03 kB / 1.286 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.377e-05/0.3471, allocations: 38.73 kB / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.112e-05/0.3472, allocations: 16.84 kB / 1.286 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.3474, allocations: 155.5 kB / 1.286 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.3474, allocations: 12.36 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.3474, allocations: 8.375 kB / 1.286 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003305/0.3478, allocations: 135 kB / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3478, allocations: 0 / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.3478, allocations: 8 kB / 1.286 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3478, allocations: 0 / 1.286 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002417/0.3481, allocations: 67.92 kB / 1.286 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006624/0.3487, allocations: 419.9 kB / 1.287 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.3489, allocations: 81.12 kB / 1.287 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.3491, allocations: 53.8 kB / 1.287 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.3491, allocations: 0 / 1.287 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/0.3494, allocations: 153 kB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.3494, allocations: 0 / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005792/0.35, allocations: 197.4 kB / 1.287 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.3501, allocations: 77.11 kB / 1.287 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.3502, allocations: 167.1 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.3502, allocations: 33.7 kB / 1.288 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.42e-05/0.3503, allocations: 112.3 kB / 1.288 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.3504, allocations: 35.78 kB / 1.288 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.3504, allocations: 37.64 kB / 1.288 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.3506, allocations: 326.8 kB / 1.288 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.3507, allocations: 35.97 kB / 1.288 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.351, allocations: 197.3 kB / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003195/0.3513, allocations: 147.5 kB / 1.288 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.3513, allocations: 4 kB / 1.288 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000382/0.3517, allocations: 169.3 kB / 1.289 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.3517, allocations: 4 kB / 1.289 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3517, allocations: 4 kB / 1.289 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3517, allocations: 3.984 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.3518, allocations: 19.98 kB / 1.289 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/0.3518, allocations: 7.938 kB / 1.289 GB, free: 6 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.882e-05/0.3519, allocations: 20.2 kB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.352, allocations: 8 kB / 1.289 GB, free: 5.973 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.0001235/0.3521, allocations: 129.8 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.3521, allocations: 19.89 kB / 1.289 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.3522, allocations: 13.64 kB / 1.289 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3522, allocations: 4 kB / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3522, allocations: 0 / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.3522, allocations: 11.86 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007785/0.353, allocations: 0.4928 MB / 1.289 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.353, allocations: 0 / 1.289 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.053e-05/0.353, allocations: 15.92 kB / 1.289 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.353, allocations: 3.938 kB / 1.289 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.3531, allocations: 11.98 kB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3531, allocations: 0 / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3531, allocations: 0 / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004633/0.3535, allocations: 318.7 kB / 1.29 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.022e-05/0.3535, allocations: 11.89 kB / 1.29 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.3536, allocations: 7.984 kB / 1.29 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.3538, allocations: 15.98 kB / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.3538, allocations: 7.984 kB / 1.29 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.3539, allocations: 11.98 kB / 1.29 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.787e-05/0.354, allocations: 119.2 kB / 1.29 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.354, allocations: 96 / 1.29 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003518/0.3543, allocations: 47.77 kB / 1.29 GB, free: 4.66 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.0012/0.3555, allocations: 0.9493 MB / 1.291 GB, free: 3.719 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003758/0.3559, allocations: 103.8 kB / 1.291 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3559, allocations: 0 / 1.291 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.356, allocations: 60.45 kB / 1.291 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.3565, allocations: 22.8 kB / 1.291 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.359, allocations: 1.905 MB / 1.293 GB, free: 1.496 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.3591, allocations: 106.1 kB / 1.293 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.325e-05/0.3592, allocations: 20.47 kB / 1.293 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.024e-05/0.3592, allocations: 39.44 kB / 1.293 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of SimCode: time 5.21e-07/0.3592, allocations: 0 / 1.293 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03153/0.3908, allocations: 4.055 MB / 1.297 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.7, allocations: 13.2 kB / 1.297 GB, free: 13.41 MB / 0.9981 GB " [Timeout remaining time 288] (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.24506982602179]