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.001345/0.001345, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001589/0.001589, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.473/1.473, 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 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.278/3.278, allocations: 0.49 GB / 0.7951 GB, free: 33.3 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.002811/0.002811, allocations: 71.11 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3073, allocations: 176.1 MB / 1.326 GB, free: 1.961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002864/0.3101, allocations: 1.618 MB / 1.327 GB, free: 344 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001437/0.3116, allocations: 0.7792 MB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.785e-05/0.3116, allocations: 3.938 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 9.73e-05/0.3117, allocations: 15.86 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.16e-05/0.3118, allocations: 23.73 kB / 1.328 GB, free: 15.51 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.0004415/0.3122, allocations: 115.8 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.3124, allocations: 139.5 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.3126, allocations: 17.59 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.3127, allocations: 63.77 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.3128, allocations: 59.75 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.3128, allocations: 12 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.313, allocations: 59.89 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.856e-05/0.313, allocations: 31.91 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.856e-05/0.3131, allocations: 59.66 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.3134, allocations: 171.3 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3134, allocations: 4 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3134, allocations: 0 / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.3134, allocations: 0 / 1.329 GB, free: 14.79 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.000883/0.3143, allocations: 486.5 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3143, allocations: 12.03 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.723e-05/0.3144, allocations: 42.73 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.107e-05/0.3144, allocations: 16.84 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.3147, allocations: 154.3 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.3147, allocations: 12.31 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.3147, allocations: 8.375 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.315, allocations: 131.5 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.315, allocations: 0 / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.315, allocations: 7.984 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.3151, allocations: 4 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.3153, allocations: 67.88 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006873/0.316, allocations: 431.9 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.3162, allocations: 77.12 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.3163, allocations: 45.81 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.3164, allocations: 7.984 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003754/0.3167, allocations: 149 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.3167, allocations: 4 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.000601/0.3173, allocations: 193.4 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.3174, allocations: 81.05 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.3176, allocations: 166.8 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3176, allocations: 29.7 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.78e-05/0.3177, allocations: 116.3 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.3177, allocations: 27.83 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.904e-05/0.3178, allocations: 37.7 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3179, allocations: 326.8 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.318, allocations: 35.97 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.3182, allocations: 118.3 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.3186, allocations: 143.5 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3186, allocations: 0 / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003761/0.3189, allocations: 169.5 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3189, allocations: 8 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.319, allocations: 0 / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.319, allocations: 4 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.3191, allocations: 23.91 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.3191, allocations: 0 / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.3192, allocations: 23.92 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.3192, allocations: 4.156 kB / 1.332 GB, free: 11.37 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.0001272/0.3193, allocations: 142.6 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.3194, allocations: 15.91 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.323e-05/0.3194, allocations: 21.39 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3194, allocations: 240 / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3194, allocations: 7.938 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.3194, allocations: 11.92 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000788/0.3202, allocations: 0.5045 MB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3202, allocations: 0 / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.706e-05/0.3203, allocations: 15.92 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3203, allocations: 3.938 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.3203, allocations: 8 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3203, allocations: 0 / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3203, allocations: 0 / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004716/0.3208, allocations: 330.5 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/0.3208, allocations: 15.84 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.3209, allocations: 4 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.3211, allocations: 19.97 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.3211, allocations: 11.98 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.134e-05/0.3211, allocations: 4 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.032e-05/0.3212, allocations: 119.2 kB / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3212, allocations: 0 / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003565/0.3216, allocations: 39.92 kB / 1.333 GB, free: 10.02 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.001139/0.3227, allocations: 0.9431 MB / 1.334 GB, free: 9.086 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003689/0.3231, allocations: 103.8 kB / 1.334 GB, free: 8.984 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3231, allocations: 0 / 1.334 GB, free: 8.984 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.3232, allocations: 56.47 kB / 1.334 GB, free: 8.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.3236, allocations: 30.12 kB / 1.334 GB, free: 8.902 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.3261, allocations: 1.897 MB / 1.336 GB, free: 6.871 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.3265, allocations: 0.7157 MB / 1.337 GB, free: 6.129 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.952e-05/0.3265, allocations: 24.47 kB / 1.337 GB, free: 6.105 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.652e-05/0.3266, allocations: 35.42 kB / 1.337 GB, free: 6.07 MB / 1.029 GB Notification: Performance of SimCode: time 5.21e-07/0.3266, allocations: 4 kB / 1.337 GB, free: 6.066 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.3557, allocations: 3.59 MB / 1.34 GB, free: 2.625 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.65, allocations: 5.953 kB / 1.34 GB, free: 2.621 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable pri1.x[1] in file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.485692412003118]