Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00105/0.00105, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.002069/0.002069, allocations: 169.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9059/0.9059, allocations: 177.2 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.654/1.654, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 0.9505 GB, free: 3.527 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.275e-05/1.404e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.523 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001814/0.001828, allocations: 1.591 MB / 0.952 GB, free: 1.914 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0009443/0.002772, allocations: 0.729 MB / 0.9527 GB, free: 1.18 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.04e-05/0.002823, allocations: 3.938 kB / 0.9527 GB, free: 1.176 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 9.911e-05/0.002922, allocations: 15.86 kB / 0.9527 GB, free: 1.16 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 4.096e-05/0.002963, allocations: 23.75 kB / 0.9528 GB, free: 1.137 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.0004168/0.00338, allocations: 111.6 kB / 0.9529 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001548/0.003534, allocations: 143.5 kB / 0.953 GB, free: 0.8867 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.003661, allocations: 29.22 kB / 0.953 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 9.501e-05/0.003756, allocations: 67.88 kB / 0.9531 GB, free: 0.7891 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.197e-05/0.003828, allocations: 51.81 kB / 0.9532 GB, free: 0.7383 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.937e-05/0.003848, allocations: 11.94 kB / 0.9532 GB, free: 0.7266 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 9.451e-05/0.003942, allocations: 51.95 kB / 0.9532 GB, free: 0.6758 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 5.069e-05/0.003993, allocations: 35.89 kB / 0.9533 GB, free: 0.6406 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 4.709e-05/0.00404, allocations: 39.92 kB / 0.9533 GB, free: 0.6016 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.004245, allocations: 187.4 kB / 0.9535 GB, free: 428 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.004246, allocations: 0 / 0.9535 GB, free: 428 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.062e-06/0.004247, allocations: 0 / 0.9535 GB, free: 428 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.004251, allocations: 3.938 kB / 0.9535 GB, free: 424 kB / 0.9011 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.000572/0.004823, allocations: 490.6 kB / 0.9539 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.004858, allocations: 8.031 kB / 0.9539 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.004889, allocations: 42.73 kB / 0.954 GB, free: 15.83 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.004926, allocations: 16.84 kB / 0.954 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.005081, allocations: 157.5 kB / 0.9542 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.005093, allocations: 16.3 kB / 0.9542 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.005107, allocations: 12.38 kB / 0.9542 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.005321, allocations: 129 kB / 0.9543 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.005328, allocations: 192 / 0.9543 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.005341, allocations: 8.125 kB / 0.9543 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.005347, allocations: 8 kB / 0.9543 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.005474, allocations: 63.88 kB / 0.9544 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004362/0.00591, allocations: 412 kB / 0.9548 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.006033, allocations: 77.12 kB / 0.9548 GB, free: 14.85 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.952e-05/0.006103, allocations: 45.81 kB / 0.9549 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.006124, allocations: 7.984 kB / 0.9549 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/0.006314, allocations: 141 kB / 0.955 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.006315, allocations: 0 / 0.955 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of matching and sorting (n=12): time 0.0003388/0.006654, allocations: 193.6 kB / 0.9552 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.006693, allocations: 85.05 kB / 0.9553 GB, free: 14.34 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.066e-05/0.006783, allocations: 163.6 kB / 0.9555 GB, free: 14.17 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.006801, allocations: 33.7 kB / 0.9555 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.24e-05/0.006853, allocations: 112.3 kB / 0.9556 GB, free: 14.01 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.006881, allocations: 35.78 kB / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.00692, allocations: 33.81 kB / 0.9557 GB, free: 13.94 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.441e-05/0.007004, allocations: 330.7 kB / 0.956 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.827e-05/0.007073, allocations: 35.97 kB / 0.956 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.007197, allocations: 198.8 kB / 0.9562 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.007357, allocations: 151.5 kB / 0.9563 GB, free: 13.15 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.00736, allocations: 0 / 0.9563 GB, free: 13.15 MB / 0.9167 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002004/0.00756, allocations: 157.7 kB / 0.9565 GB, free: 12.99 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.007574, allocations: 12 kB / 0.9565 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.007579, allocations: 432 / 0.9565 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.00759, allocations: 7.984 kB / 0.9565 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.538e-05/0.007656, allocations: 23.91 kB / 0.9565 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.007662, allocations: 4 kB / 0.9565 GB, free: 12.94 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.345e-05/0.007715, allocations: 27.81 kB / 0.9566 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.007724, allocations: 4 kB / 0.9566 GB, free: 12.91 MB / 0.9167 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 7.71e-05/0.007801, allocations: 133.7 kB / 0.9567 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.007817, allocations: 19.91 kB / 0.9567 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.358e-05/0.007851, allocations: 21.45 kB / 0.9567 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.007852, allocations: 0 / 0.9567 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.007857, allocations: 4 kB / 0.9567 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.007861, allocations: 0 / 0.9567 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006553/0.008516, allocations: 0.4889 MB / 0.9572 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.008517, allocations: 0 / 0.9572 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.382e-05/0.008551, allocations: 15.98 kB / 0.9572 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.008553, allocations: 0 / 0.9572 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.00856, allocations: 4 kB / 0.9572 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.008564, allocations: 11.92 kB / 0.9573 GB, free: 12.15 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.008565, allocations: 0 / 0.9573 GB, free: 12.15 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00022/0.008785, allocations: 326.5 kB / 0.9576 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.059e-05/0.008796, allocations: 11.91 kB / 0.9576 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.00881, allocations: 4 kB / 0.9576 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.701e-05/0.008907, allocations: 23.91 kB / 0.9576 GB, free: 11.78 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.008945, allocations: 11.98 kB / 0.9576 GB, free: 11.77 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.008973, allocations: 12 kB / 0.9576 GB, free: 11.75 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 5.319e-05/0.009026, allocations: 119.2 kB / 0.9577 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.009026, allocations: 0 / 0.9577 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002286/0.009255, allocations: 43.94 kB / 0.9578 GB, free: 11.59 MB / 0.9167 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.0006015/0.009856, allocations: 0.9403 MB / 0.9587 GB, free: 10.66 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002022/0.01006, allocations: 107.8 kB / 0.9588 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.01006, allocations: 0 / 0.9588 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 8.391e-05/0.01014, allocations: 59.83 kB / 0.9589 GB, free: 10.5 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.01039, allocations: 22.58 kB / 0.9589 GB, free: 10.48 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.01173, allocations: 1.92 MB / 0.9608 GB, free: 8.426 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.632e-05/0.01179, allocations: 102.3 kB / 0.9609 GB, free: 8.297 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 5.206e-05/0.01185, allocations: 20.47 kB / 0.9609 GB, free: 8.277 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.667e-05/0.01189, allocations: 40.58 kB / 0.9609 GB, free: 8.238 MB / 0.9167 GB Notification: Performance of SimCode: time 6.12e-07/0.01189, allocations: 0 / 0.9609 GB, free: 8.238 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.02698, allocations: 4.194 MB / 0.965 GB, free: 4.199 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.971/6.998, allocations: 6.938 kB / 0.965 GB, free: 4.199 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.930623252876103]