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.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.001304/0.001304, allocations: 112 kB / 16.46 MB, free: 6.035 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.001328/0.001328, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.434/1.434, allocations: 225.6 MB / 247.8 MB, free: 13.91 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.818/2.818, allocations: 476.7 MB / 0.7611 GB, free: 11.4 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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 0.002113/0.002113, allocations: 67.89 kB / 1.104 GB, free: 9.289 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.79/0.7921, allocations: 168.7 MB / 1.269 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003048/0.7951, allocations: 1.594 MB / 1.27 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.7966, allocations: 0.7028 MB / 1.271 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.555e-05/0.7966, allocations: 0 / 1.271 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.7968, allocations: 15.86 kB / 1.271 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.075e-05/0.7968, allocations: 23.75 kB / 1.271 GB, free: 2.84 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.0004757/0.7973, allocations: 107.7 kB / 1.271 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.7975, allocations: 143.5 kB / 1.271 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.7977, allocations: 25.11 kB / 1.271 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.7978, allocations: 51.84 kB / 1.271 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.96e-05/0.7979, allocations: 59.73 kB / 1.271 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.274e-05/0.7979, allocations: 12 kB / 1.271 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.798, allocations: 63.95 kB / 1.271 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.682e-05/0.7981, allocations: 23.86 kB / 1.271 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.264e-05/0.7982, allocations: 59.66 kB / 1.272 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002866/0.7985, allocations: 173.2 kB / 1.272 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.7985, allocations: 0 / 1.272 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.322e-06/0.7985, allocations: 0 / 1.272 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.7e-06/0.7985, allocations: 0 / 1.272 GB, free: 2.137 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.0009634/0.7994, allocations: 0.5544 MB / 1.272 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.7995, allocations: 8.031 kB / 1.272 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.124e-05/0.7995, allocations: 42.73 kB / 1.272 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.7996, allocations: 16.84 kB / 1.272 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.7998, allocations: 220.6 kB / 1.273 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.7998, allocations: 8.375 kB / 1.273 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.7999, allocations: 8.312 kB / 1.273 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.8002, allocations: 135.5 kB / 1.273 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.8002, allocations: 0 / 1.273 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.8002, allocations: 11.98 kB / 1.273 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.8002, allocations: 0 / 1.273 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.8005, allocations: 67.88 kB / 1.273 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007179/0.8012, allocations: 472.6 kB / 1.273 GB, free: 444 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.8014, allocations: 85.11 kB / 1.273 GB, free: 340 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.8015, allocations: 45.81 kB / 1.273 GB, free: 288 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.8016, allocations: 4 kB / 1.273 GB, free: 284 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003767/0.802, allocations: 141 kB / 1.273 GB, free: 124 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.802, allocations: 4 kB / 1.273 GB, free: 120 kB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0006631/0.8026, allocations: 189.4 kB / 1.274 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.8027, allocations: 77.11 kB / 1.274 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.8029, allocations: 162.3 kB / 1.274 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.8029, allocations: 33.7 kB / 1.274 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.643e-05/0.803, allocations: 116.3 kB / 1.274 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.532e-05/0.803, allocations: 35.73 kB / 1.274 GB, free: 15.47 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.797e-05/0.8031, allocations: 33.7 kB / 1.274 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.8032, allocations: 326.8 kB / 1.274 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.8034, allocations: 35.91 kB / 1.274 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.8036, allocations: 118.3 kB / 1.275 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003039/0.8039, allocations: 147.5 kB / 1.275 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8039, allocations: 0 / 1.275 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003977/0.8043, allocations: 169.7 kB / 1.275 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.8043, allocations: 11.94 kB / 1.275 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.8043, allocations: 0 / 1.275 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.8043, allocations: 4 kB / 1.275 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.8045, allocations: 28.19 kB / 1.275 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.8045, allocations: 3.984 kB / 1.275 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.8046, allocations: 15.94 kB / 1.275 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.8046, allocations: 8 kB / 1.275 GB, free: 14.5 MB / 0.9825 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.0001414/0.8047, allocations: 134.3 kB / 1.275 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.8048, allocations: 15.91 kB / 1.275 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.397e-05/0.8048, allocations: 25.33 kB / 1.275 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.8048, allocations: 0 / 1.275 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.8048, allocations: 4 kB / 1.275 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.8048, allocations: 7.938 kB / 1.275 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008002/0.8056, allocations: 0.5292 MB / 1.276 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.8056, allocations: 0 / 1.276 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.244e-05/0.8057, allocations: 15.92 kB / 1.276 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.8057, allocations: 3.938 kB / 1.276 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.8057, allocations: 8 kB / 1.276 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.8057, allocations: 0 / 1.276 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8057, allocations: 0 / 1.276 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004508/0.8062, allocations: 322.6 kB / 1.276 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/0.8063, allocations: 92.95 kB / 1.276 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.8063, allocations: 8 kB / 1.276 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.8065, allocations: 11.98 kB / 1.276 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.8065, allocations: 19.92 kB / 1.276 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.8066, allocations: 11.98 kB / 1.276 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001067/0.8067, allocations: 124.2 kB / 1.276 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.8067, allocations: 0 / 1.276 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003555/0.807, allocations: 35.94 kB / 1.276 GB, free: 13.03 MB / 0.9825 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.001224/0.8082, allocations: 0.9567 MB / 1.277 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003709/0.8086, allocations: 103.9 kB / 1.277 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.8086, allocations: 3.938 kB / 1.277 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.8088, allocations: 59.88 kB / 1.277 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.8092, allocations: 24.52 kB / 1.277 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.8117, allocations: 1.898 MB / 1.279 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.8121, allocations: 0.7158 MB / 1.28 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.23e-05/0.8121, allocations: 24.53 kB / 1.28 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.534e-05/0.8122, allocations: 39.42 kB / 1.28 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of SimCode: time 6.91e-07/0.8122, allocations: 0 / 1.28 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.8409, allocations: 3.465 MB / 1.283 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.563/9.404, allocations: 6.609 kB / 1.283 GB, free: 5.691 MB / 0.9825 GB " [Timeout remaining time 291] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.441958798095584]