Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 108.2 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 225.6 MB / 249.3 MB, free: 3.305 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.354/2.354, allocations: 443.5 MB / 0.7304 GB, free: 13.92 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 67.89 kB / 1.059 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2705, allocations: 160.7 MB / 1.216 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002714/0.2732, allocations: 1.608 MB / 1.217 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001338/0.2745, allocations: 0.7254 MB / 1.218 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.901e-05/0.2746, allocations: 0 / 1.218 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.2747, allocations: 15.8 kB / 1.218 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.883e-05/0.2747, allocations: 19.81 kB / 1.218 GB, free: 13.54 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.0004877/0.2752, allocations: 107.7 kB / 1.218 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000196/0.2754, allocations: 135.5 kB / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.2755, allocations: 25.09 kB / 1.218 GB, free: 13.28 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.2757, allocations: 55.78 kB / 1.218 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.704e-05/0.2757, allocations: 63.73 kB / 1.218 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.2758, allocations: 12 kB / 1.218 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.2759, allocations: 55.89 kB / 1.218 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.565e-05/0.276, allocations: 31.92 kB / 1.218 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.68e-05/0.276, allocations: 59.66 kB / 1.218 GB, free: 13 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.2763, allocations: 171.5 kB / 1.219 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2763, allocations: 4 kB / 1.219 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2763, allocations: 0 / 1.219 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.2763, allocations: 0 / 1.219 GB, free: 12.83 MB / 0.9669 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.0008967/0.2772, allocations: 0.5505 MB / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2772, allocations: 8.031 kB / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.942e-05/0.2773, allocations: 42.73 kB / 1.219 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.176e-05/0.2773, allocations: 16.84 kB / 1.219 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.2776, allocations: 225 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.2776, allocations: 4.375 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.2776, allocations: 8.375 kB / 1.219 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.2779, allocations: 135.5 kB / 1.219 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.2779, allocations: 3.938 kB / 1.219 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.2779, allocations: 4 kB / 1.219 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2779, allocations: 0 / 1.219 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.2782, allocations: 67.88 kB / 1.22 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006378/0.2788, allocations: 468.8 kB / 1.22 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.279, allocations: 81.17 kB / 1.22 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.2791, allocations: 41.81 kB / 1.22 GB, free: 11 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.2792, allocations: 4.109 kB / 1.22 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002925/0.2795, allocations: 144.9 kB / 1.22 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.2795, allocations: 0 / 1.22 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005628/0.28, allocations: 193.4 kB / 1.22 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.2801, allocations: 81.05 kB / 1.221 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.2802, allocations: 166.8 kB / 1.221 GB, free: 10.37 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.2803, allocations: 33.69 kB / 1.221 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.013e-05/0.2803, allocations: 116.3 kB / 1.221 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/0.2804, allocations: 27.84 kB / 1.221 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/0.2804, allocations: 37.7 kB / 1.221 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2806, allocations: 322.8 kB / 1.221 GB, free: 9.812 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.2807, allocations: 35.97 kB / 1.221 GB, free: 9.777 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.2809, allocations: 118.3 kB / 1.221 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.2812, allocations: 147.5 kB / 1.221 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2812, allocations: 0 / 1.221 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003666/0.2816, allocations: 165.3 kB / 1.222 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2816, allocations: 8 kB / 1.222 GB, free: 9.277 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2816, allocations: 0 / 1.222 GB, free: 9.277 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2816, allocations: 4 kB / 1.222 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.2817, allocations: 23.91 kB / 1.222 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.2817, allocations: 288 / 1.222 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.713e-05/0.2818, allocations: 23.89 kB / 1.222 GB, free: 9.227 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.2818, allocations: 11.98 kB / 1.222 GB, free: 9.215 MB / 0.9669 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.0001214/0.2819, allocations: 137.9 kB / 1.222 GB, free: 9.07 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.282, allocations: 11.95 kB / 1.222 GB, free: 9.059 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.282, allocations: 21.39 kB / 1.222 GB, free: 9.035 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.282, allocations: 384 / 1.222 GB, free: 9.035 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.282, allocations: 3.938 kB / 1.222 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.282, allocations: 3.938 kB / 1.222 GB, free: 9.027 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006921/0.2827, allocations: 0.5366 MB / 1.222 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.2827, allocations: 4 kB / 1.222 GB, free: 8.43 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.47e-05/0.2828, allocations: 15.98 kB / 1.222 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.2828, allocations: 3.938 kB / 1.222 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.2828, allocations: 0 / 1.222 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.2828, allocations: 4 kB / 1.222 GB, free: 8.406 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2828, allocations: 4 kB / 1.222 GB, free: 8.402 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004258/0.2833, allocations: 326.5 kB / 1.223 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-05/0.2833, allocations: 92.95 kB / 1.223 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.2833, allocations: 0 / 1.223 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.2835, allocations: 23.97 kB / 1.223 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.2836, allocations: 8 kB / 1.223 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.2836, allocations: 15.98 kB / 1.223 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.013e-05/0.2837, allocations: 115.2 kB / 1.223 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2837, allocations: 0 / 1.223 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003269/0.284, allocations: 47.86 kB / 1.223 GB, free: 7.75 MB / 0.9669 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.001076/0.2851, allocations: 0.9461 MB / 1.224 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003509/0.2854, allocations: 107.9 kB / 1.224 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2854, allocations: 3.938 kB / 1.224 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.2856, allocations: 55.88 kB / 1.224 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.2859, allocations: 27.92 kB / 1.224 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.2881, allocations: 1.902 MB / 1.226 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003979/0.2885, allocations: 0.7119 MB / 1.227 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.846e-05/0.2886, allocations: 24.53 kB / 1.227 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.397e-05/0.2887, allocations: 39.52 kB / 1.227 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of SimCode: time 4.71e-07/0.2887, allocations: 0 / 1.227 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02519/0.3139, allocations: 3.454 MB / 1.23 GB, free: 452 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.195/7.509, allocations: 14.38 kB / 1.23 GB, free: 444 kB / 0.9669 GB " [Timeout remaining time 292] (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[1] from file Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! Error: Could not read variable pri1.x[2] in file Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv. Warning: Get data of variable pri1.x[2] from file Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.722942250002234]