Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001232/0.001232, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001373/0.001373, allocations: 165.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.8743/0.8743, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.771/1.771, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 0.9996 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573e-05/1.748e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002928/0.002946, allocations: 1.576 MB / 1.001 GB, free: 11.94 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.004215, allocations: 0.7293 MB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.509e-05/0.00427, allocations: 7.875 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 9.757e-05/0.004368, allocations: 7.875 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.607e-05/0.004414, allocations: 27.72 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.0004453/0.004859, allocations: 111.7 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001833/0.005042, allocations: 147.5 kB / 1.002 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.005173, allocations: 29.23 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.005281, allocations: 79.8 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.36e-05/0.005354, allocations: 51.86 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.005373, allocations: 8 kB / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.005476, allocations: 51.91 kB / 1.002 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.121e-05/0.005527, allocations: 27.91 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.502e-05/0.005572, allocations: 39.91 kB / 1.002 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.005778, allocations: 187.4 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.00578, allocations: 0 / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.52e-07/0.00578, allocations: 0 / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.005785, allocations: 3.984 kB / 1.003 GB, free: 10.43 MB / 0.9636 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.0005735/0.006359, allocations: 486.6 kB / 1.003 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.006396, allocations: 8.75 kB / 1.003 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.115e-05/0.006428, allocations: 42.73 kB / 1.003 GB, free: 9.852 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.006465, allocations: 20.78 kB / 1.003 GB, free: 9.832 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.006612, allocations: 149.6 kB / 1.003 GB, free: 9.66 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.006624, allocations: 12.38 kB / 1.003 GB, free: 9.648 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.006637, allocations: 8.375 kB / 1.003 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.006877, allocations: 127.9 kB / 1.003 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.006885, allocations: 192 / 1.003 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.006898, allocations: 8.109 kB / 1.003 GB, free: 9.496 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.006904, allocations: 4 kB / 1.003 GB, free: 9.492 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.007037, allocations: 71.81 kB / 1.004 GB, free: 9.422 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005464/0.007583, allocations: 415.9 kB / 1.004 GB, free: 8.969 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.007725, allocations: 77.17 kB / 1.004 GB, free: 8.875 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.554e-05/0.007801, allocations: 45.81 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.007823, allocations: 4 kB / 1.004 GB, free: 8.82 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/0.008045, allocations: 148.9 kB / 1.004 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.008046, allocations: 0 / 1.004 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of matching and sorting (n=12): time 0.0004047/0.008451, allocations: 189.7 kB / 1.004 GB, free: 8.465 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.00851, allocations: 81.11 kB / 1.004 GB, free: 8.367 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.008631, allocations: 159.9 kB / 1.005 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.008657, allocations: 41.62 kB / 1.005 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.008725, allocations: 116.3 kB / 1.005 GB, free: 8.035 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.008758, allocations: 27.8 kB / 1.005 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/0.008809, allocations: 33.7 kB / 1.005 GB, free: 7.969 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.008922, allocations: 330.8 kB / 1.005 GB, free: 7.637 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.014e-05/0.008992, allocations: 31.97 kB / 1.005 GB, free: 7.605 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.009131, allocations: 195.4 kB / 1.005 GB, free: 7.359 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.009295, allocations: 147.5 kB / 1.005 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.009297, allocations: 112 / 1.005 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002065/0.009504, allocations: 177.3 kB / 1.006 GB, free: 7.008 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.009518, allocations: 8 kB / 1.006 GB, free: 7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.009523, allocations: 0 / 1.006 GB, free: 7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.009537, allocations: 4 kB / 1.006 GB, free: 6.996 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-05/0.009608, allocations: 20.2 kB / 1.006 GB, free: 6.977 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.009613, allocations: 4 kB / 1.006 GB, free: 6.973 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.387e-05/0.009667, allocations: 19.92 kB / 1.006 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.009676, allocations: 8 kB / 1.006 GB, free: 6.945 MB / 0.9636 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 9.197e-05/0.009768, allocations: 141.9 kB / 1.006 GB, free: 6.797 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/0.009787, allocations: 15.91 kB / 1.006 GB, free: 6.781 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.009825, allocations: 17.47 kB / 1.006 GB, free: 6.762 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.009828, allocations: 0 / 1.006 GB, free: 6.762 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.009834, allocations: 4 kB / 1.006 GB, free: 6.758 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.009844, allocations: 3.984 kB / 1.006 GB, free: 6.754 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004422/0.01029, allocations: 496.6 kB / 1.006 GB, free: 6.219 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.01029, allocations: 4 kB / 1.006 GB, free: 6.215 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.039e-05/0.01033, allocations: 23.97 kB / 1.006 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.01033, allocations: 0 / 1.006 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/0.01034, allocations: 0 / 1.006 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.01035, allocations: 7.938 kB / 1.006 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.01035, allocations: 0 / 1.006 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.0106, allocations: 326.5 kB / 1.007 GB, free: 5.848 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.237e-05/0.01061, allocations: 7.953 kB / 1.007 GB, free: 5.84 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.01063, allocations: 11.98 kB / 1.007 GB, free: 5.828 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.183e-05/0.01072, allocations: 15.92 kB / 1.007 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.01076, allocations: 12.08 kB / 1.007 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.01078, allocations: 11.92 kB / 1.007 GB, free: 5.789 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.413e-05/0.01085, allocations: 124.2 kB / 1.007 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01085, allocations: 0 / 1.007 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000249/0.0111, allocations: 47.89 kB / 1.007 GB, free: 5.621 MB / 0.9636 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.0006896/0.01179, allocations: 0.9454 MB / 1.008 GB, free: 4.688 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.012, allocations: 99.81 kB / 1.008 GB, free: 4.59 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.012, allocations: 0.5625 kB / 1.008 GB, free: 4.59 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.475e-05/0.01208, allocations: 55.89 kB / 1.008 GB, free: 4.535 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.01234, allocations: 31.77 kB / 1.008 GB, free: 4.504 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.01384, allocations: 1.904 MB / 1.01 GB, free: 2.465 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.645e-05/0.01392, allocations: 102.3 kB / 1.01 GB, free: 2.336 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 5.685e-05/0.01397, allocations: 24.47 kB / 1.01 GB, free: 2.312 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.047e-05/0.01402, allocations: 40.48 kB / 1.01 GB, free: 2.273 MB / 0.9636 GB Notification: Performance of SimCode: time 3.8e-07/0.01402, allocations: 0 / 1.01 GB, free: 2.273 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01589/0.02991, allocations: 4.212 MB / 1.014 GB, free: 14.2 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.928/6.958, allocations: 2.5 kB / 1.014 GB, free: 14.2 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.954315979033709]