Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001774/0.001774, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002236/0.002236, allocations: 217.1 kB / 22.25 MB, free: 5.105 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.566/1.566, allocations: 230.6 MB / 256 MB, free: 7.84 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.182/3.182, allocations: 0.49 GB / 0.7951 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_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.001973/0.001973, allocations: 70.09 kB / 1.154 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3889, allocations: 176.1 MB / 1.326 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002967/0.3919, allocations: 1.594 MB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.3934, allocations: 0.7326 MB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.675e-05/0.3934, allocations: 3.938 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.3935, allocations: 11.88 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.479e-05/0.3936, allocations: 19.73 kB / 1.328 GB, free: 15.14 MB / 1.029 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.0004847/0.3941, allocations: 111.7 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002076/0.3943, allocations: 143.5 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.3944, allocations: 25.58 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.341e-05/0.3945, allocations: 55.84 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.3946, allocations: 67.67 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.248e-05/0.3946, allocations: 8 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.3948, allocations: 63.89 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.3948, allocations: 23.92 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.272e-05/0.3949, allocations: 59.64 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.3951, allocations: 167.3 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3951, allocations: 0 / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3951, allocations: 4 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3952, allocations: 0 / 1.329 GB, free: 14.43 MB / 1.029 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.0009711/0.3961, allocations: 486.6 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.3962, allocations: 8.031 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.3962, allocations: 38.75 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.3963, allocations: 20.83 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.3965, allocations: 154.3 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.3965, allocations: 12.38 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.3965, allocations: 8.375 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.3969, allocations: 142 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.3969, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.3969, allocations: 0 / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.3969, allocations: 3.984 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.3971, allocations: 75.88 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.3978, allocations: 415.9 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.398, allocations: 73.19 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.3982, allocations: 45.81 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.3982, allocations: 4 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000323/0.3985, allocations: 156.9 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.3985, allocations: 0 / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005792/0.3991, allocations: 185.4 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.3992, allocations: 89.03 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.3993, allocations: 166.8 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.3993, allocations: 29.7 kB / 1.331 GB, free: 12.13 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.3994, allocations: 116.3 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.558e-05/0.3995, allocations: 27.84 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.355e-05/0.3995, allocations: 37.7 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3997, allocations: 322.8 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.3998, allocations: 35.97 kB / 1.331 GB, free: 11.58 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.4, allocations: 198 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.4004, allocations: 147.9 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.4004, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003868/0.4008, allocations: 169.3 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.4008, allocations: 8 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.4008, allocations: 3.938 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.4009, allocations: 4 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.401, allocations: 20.2 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.401, allocations: 7.984 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.4011, allocations: 15.94 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.4011, allocations: 11.98 kB / 1.332 GB, free: 10.92 MB / 1.029 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.000141/0.4012, allocations: 138.2 kB / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.4013, allocations: 15.91 kB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.9e-05/0.4013, allocations: 21.39 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.4013, allocations: 0 / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4013, allocations: 0 / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.4013, allocations: 7.938 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007555/0.4021, allocations: 0.4967 MB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4021, allocations: 0 / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.759e-05/0.4022, allocations: 11.98 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.4022, allocations: 7.938 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.4022, allocations: 0 / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.4022, allocations: 0 / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.4022, allocations: 4 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004617/0.4027, allocations: 330.8 kB / 1.333 GB, free: 9.816 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.733e-05/0.4027, allocations: 19.83 kB / 1.333 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.4027, allocations: 0 / 1.333 GB, free: 9.797 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.4029, allocations: 27.97 kB / 1.333 GB, free: 9.77 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.714e-05/0.403, allocations: 7.984 kB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.403, allocations: 8 kB / 1.333 GB, free: 9.754 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.323e-05/0.4031, allocations: 119.2 kB / 1.333 GB, free: 9.637 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4031, allocations: 0 / 1.333 GB, free: 9.637 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003475/0.4034, allocations: 43.92 kB / 1.333 GB, free: 9.594 MB / 1.029 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.001215/0.4046, allocations: 0.953 MB / 1.334 GB, free: 8.652 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003654/0.405, allocations: 107.7 kB / 1.334 GB, free: 8.547 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.405, allocations: 4.562 kB / 1.334 GB, free: 8.543 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.4052, allocations: 47.91 kB / 1.334 GB, free: 8.496 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004603/0.4056, allocations: 19.98 kB / 1.334 GB, free: 8.477 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002645/0.4083, allocations: 1.9 MB / 1.336 GB, free: 6.441 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.4084, allocations: 98.28 kB / 1.336 GB, free: 6.324 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.664e-05/0.4085, allocations: 24.47 kB / 1.336 GB, free: 6.301 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.021e-05/0.4086, allocations: 39.42 kB / 1.336 GB, free: 6.262 MB / 1.029 GB Notification: Performance of SimCode: time 6.01e-07/0.4086, allocations: 0 / 1.336 GB, free: 6.262 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.4417, allocations: 4.096 MB / 1.34 GB, free: 2.336 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.06, allocations: 4.062 kB / 1.34 GB, free: 2.332 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.89340038699447]