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.002001/0.002001, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001973/0.001973, allocations: 217.5 kB / 22.24 MB, free: 5.258 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.816 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.222/3.222, allocations: 0.49 GB / 0.7951 GB, free: 35.53 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.002107/0.002107, allocations: 68.02 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.351, allocations: 176.1 MB / 1.326 GB, free: 1.582 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003151/0.3541, allocations: 1.587 MB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001595/0.3557, allocations: 0.7363 MB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.688e-05/0.3558, allocations: 4 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.3559, allocations: 15.81 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.551e-05/0.3559, allocations: 15.8 kB / 1.328 GB, free: 15.21 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.0004714/0.3564, allocations: 115.7 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.3566, allocations: 151.4 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.3567, allocations: 21.58 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.623e-05/0.3568, allocations: 51.84 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.3569, allocations: 71.67 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.357, allocations: 8 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.3571, allocations: 59.97 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.451e-05/0.3571, allocations: 27.91 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.847e-05/0.3572, allocations: 51.72 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.3575, allocations: 175.3 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3575, allocations: 0 / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3575, allocations: 0 / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.3575, allocations: 0 / 1.329 GB, free: 14.49 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.0008572/0.3583, allocations: 490.6 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3584, allocations: 8.031 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.636e-05/0.3584, allocations: 38.75 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.3585, allocations: 16.84 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.3587, allocations: 158.3 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.3587, allocations: 8.375 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.362e-05/0.3588, allocations: 8.375 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/0.3591, allocations: 131.5 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.3591, allocations: 4 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.3591, allocations: 4 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3591, allocations: 4 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.3593, allocations: 67.88 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006199/0.36, allocations: 407.9 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.3602, allocations: 85.11 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.3603, allocations: 45.81 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.3603, allocations: 4 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.3606, allocations: 152.9 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.3606, allocations: 0 / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005557/0.3612, allocations: 193.4 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.3612, allocations: 81.11 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.3614, allocations: 166.7 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.3614, allocations: 33.7 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.679e-05/0.3615, allocations: 116.3 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.3615, allocations: 19.86 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.804e-05/0.3616, allocations: 37.64 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3618, allocations: 330.8 kB / 1.331 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.3619, allocations: 39.97 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.3621, allocations: 193.8 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.3624, allocations: 147.5 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3624, allocations: 0 / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003793/0.3628, allocations: 169.5 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.3628, allocations: 9.875 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3628, allocations: 0 / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3628, allocations: 4.109 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.3629, allocations: 23.86 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.363, allocations: 0 / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.914e-05/0.3631, allocations: 23.92 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.3631, allocations: 4 kB / 1.332 GB, free: 11 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.0001302/0.3632, allocations: 146.6 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.3632, allocations: 19.89 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.083e-05/0.3633, allocations: 21.39 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3633, allocations: 0 / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3633, allocations: 4 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3633, allocations: 3.938 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007114/0.364, allocations: 0.4928 MB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.364, allocations: 0 / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.558e-05/0.3641, allocations: 23.98 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3641, allocations: 3.938 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.3641, allocations: 480 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3641, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3641, allocations: 4 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004359/0.3645, allocations: 326.5 kB / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.421e-05/0.3646, allocations: 19.78 kB / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.3646, allocations: 0 / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.3647, allocations: 23.98 kB / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.3648, allocations: 11.97 kB / 1.333 GB, free: 9.824 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.3648, allocations: 4 kB / 1.333 GB, free: 9.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.231e-05/0.3649, allocations: 119.2 kB / 1.333 GB, free: 9.703 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3649, allocations: 0 / 1.333 GB, free: 9.703 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003389/0.3652, allocations: 43.92 kB / 1.333 GB, free: 9.66 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.001107/0.3664, allocations: 0.9437 MB / 1.334 GB, free: 8.727 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003698/0.3667, allocations: 115.7 kB / 1.334 GB, free: 8.613 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3667, allocations: 0 / 1.334 GB, free: 8.613 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.3669, allocations: 47.97 kB / 1.334 GB, free: 8.566 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.3673, allocations: 20.55 kB / 1.334 GB, free: 8.547 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.3697, allocations: 1.895 MB / 1.336 GB, free: 6.52 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.3698, allocations: 102.3 kB / 1.336 GB, free: 6.398 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.114e-05/0.3698, allocations: 24.41 kB / 1.336 GB, free: 6.375 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.711e-05/0.3699, allocations: 39.42 kB / 1.336 GB, free: 6.336 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.3699, allocations: 0 / 1.336 GB, free: 6.336 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.3992, allocations: 4.097 MB / 1.34 GB, free: 2.406 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.96, allocations: 15.77 kB / 1.34 GB, free: 2.395 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.85606119799195]