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.001568/0.001568, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001946/0.001946, allocations: 213.5 kB / 22.24 MB, free: 5.242 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.538/1.538, allocations: 230.6 MB / 256 MB, free: 7.793 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.283/3.283, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.002099/0.002099, allocations: 66.08 kB / 1.186 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3541, allocations: 181.9 MB / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003261/0.3574, allocations: 1.583 MB / 1.365 GB, free: 12.48 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3591, allocations: 0.7336 MB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.462e-05/0.3592, allocations: 0 / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.3593, allocations: 19.8 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.595e-05/0.3594, allocations: 15.81 kB / 1.366 GB, free: 11.71 MB / 1.061 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.0005732/0.3599, allocations: 107.7 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.3602, allocations: 143.5 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.3603, allocations: 21.59 kB / 1.366 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.3604, allocations: 51.78 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.3606, allocations: 67.67 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.3606, allocations: 12 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.3608, allocations: 51.95 kB / 1.366 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.235e-05/0.3608, allocations: 27.92 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.628e-05/0.3609, allocations: 55.7 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.3612, allocations: 167.3 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3612, allocations: 0 / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3612, allocations: 4 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.3612, allocations: 0 / 1.366 GB, free: 11.01 MB / 1.061 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.0008954/0.3621, allocations: 482.5 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.3621, allocations: 12.03 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.553e-05/0.3622, allocations: 42.67 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.384e-05/0.3623, allocations: 16.84 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.3625, allocations: 166.8 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.3625, allocations: 4.375 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.3625, allocations: 12.38 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.3629, allocations: 139.3 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.3629, allocations: 0 / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.3629, allocations: 4 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3629, allocations: 0 / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002592/0.3631, allocations: 71.92 kB / 1.367 GB, free: 9.984 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007241/0.3639, allocations: 411.9 kB / 1.368 GB, free: 9.535 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.3641, allocations: 73.19 kB / 1.368 GB, free: 9.445 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.3642, allocations: 53.73 kB / 1.368 GB, free: 9.387 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.3643, allocations: 0 / 1.368 GB, free: 9.387 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004456/0.3647, allocations: 153 kB / 1.368 GB, free: 9.219 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3647, allocations: 0 / 1.368 GB, free: 9.219 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0006379/0.3654, allocations: 197.4 kB / 1.368 GB, free: 9.02 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.3654, allocations: 77.11 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.3656, allocations: 166.2 kB / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.3656, allocations: 33.7 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.999e-05/0.3657, allocations: 116.3 kB / 1.368 GB, free: 8.594 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.699e-05/0.3658, allocations: 31.8 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.351e-05/0.3659, allocations: 33.7 kB / 1.369 GB, free: 8.523 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001806/0.366, allocations: 322.8 kB / 1.369 GB, free: 8.199 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.3662, allocations: 35.97 kB / 1.369 GB, free: 8.164 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.3665, allocations: 203.4 kB / 1.369 GB, free: 7.91 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003268/0.3668, allocations: 147.5 kB / 1.369 GB, free: 7.738 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3668, allocations: 4 kB / 1.369 GB, free: 7.734 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004101/0.3672, allocations: 165.3 kB / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.3672, allocations: 4 kB / 1.369 GB, free: 7.562 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.3672, allocations: 8 kB / 1.369 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.3672, allocations: 3.984 kB / 1.369 GB, free: 7.551 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.3674, allocations: 20.27 kB / 1.369 GB, free: 7.531 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.3674, allocations: 4.375 kB / 1.369 GB, free: 7.527 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.3675, allocations: 19.92 kB / 1.369 GB, free: 7.508 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.3675, allocations: 7.938 kB / 1.369 GB, free: 7.5 MB / 1.061 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.0001383/0.3676, allocations: 129.8 kB / 1.37 GB, free: 7.363 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.621e-05/0.3677, allocations: 23.83 kB / 1.37 GB, free: 7.34 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.545e-05/0.3677, allocations: 17.41 kB / 1.37 GB, free: 7.316 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3677, allocations: 4 kB / 1.37 GB, free: 7.312 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3677, allocations: 0 / 1.37 GB, free: 7.312 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3677, allocations: 7.938 kB / 1.37 GB, free: 7.305 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008156/0.3686, allocations: 496.7 kB / 1.37 GB, free: 6.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.3686, allocations: 4 kB / 1.37 GB, free: 6.766 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.818e-05/0.3686, allocations: 11.98 kB / 1.37 GB, free: 6.754 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.3686, allocations: 3.938 kB / 1.37 GB, free: 6.75 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.3687, allocations: 7.984 kB / 1.37 GB, free: 6.742 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/0.3687, allocations: 3.938 kB / 1.37 GB, free: 6.738 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3687, allocations: 0 / 1.37 GB, free: 6.738 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.3691, allocations: 322.6 kB / 1.37 GB, free: 6.406 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.534e-05/0.3692, allocations: 15.84 kB / 1.37 GB, free: 6.391 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.3692, allocations: 11.98 kB / 1.37 GB, free: 6.379 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.3694, allocations: 11.98 kB / 1.37 GB, free: 6.367 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.3694, allocations: 11.98 kB / 1.37 GB, free: 6.355 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.3695, allocations: 11.98 kB / 1.37 GB, free: 6.344 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001007/0.3696, allocations: 128.2 kB / 1.371 GB, free: 6.219 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3696, allocations: 0 / 1.371 GB, free: 6.219 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003491/0.3699, allocations: 35.94 kB / 1.371 GB, free: 6.184 MB / 1.061 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.001212/0.3711, allocations: 0.9494 MB / 1.372 GB, free: 5.242 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003904/0.3715, allocations: 108.3 kB / 1.372 GB, free: 5.137 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3715, allocations: 4.062 kB / 1.372 GB, free: 5.133 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.3717, allocations: 55.89 kB / 1.372 GB, free: 5.078 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003822/0.3721, allocations: 30.28 kB / 1.372 GB, free: 5.051 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.3747, allocations: 1.902 MB / 1.374 GB, free: 3.016 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/0.3748, allocations: 98.27 kB / 1.374 GB, free: 2.898 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.761e-05/0.3748, allocations: 24.47 kB / 1.374 GB, free: 2.875 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.3749, allocations: 35.44 kB / 1.374 GB, free: 2.84 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.3749, allocations: 0 / 1.374 GB, free: 2.84 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.4057, allocations: 4.068 MB / 1.378 GB, free: 14.95 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.07, allocations: 10.05 kB / 1.378 GB, free: 14.94 MB / 1.076 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable pri1.x[1] in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.033540398813784]