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.001802/0.001802, allocations: 114.7 kB / 17.6 MB, free: 4.699 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.002059/0.002059, allocations: 186 kB / 20.78 MB, free: 1.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.428/1.428, allocations: 225.6 MB / 249.4 MB, free: 3.039 MB / 190.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.733/2.733, allocations: 476.7 MB / 0.7629 GB, free: 15.16 MB / 0.6075 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.002082/0.002082, allocations: 60.09 kB / 1.107 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.933/0.9351, allocations: 168.7 MB / 1.271 GB, free: 7.285 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002592/0.9377, allocations: 1.615 MB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.9389, allocations: 0.7096 MB / 1.274 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.09e-05/0.9389, allocations: 0.9062 kB / 1.274 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 9.613e-05/0.939, allocations: 14.97 kB / 1.274 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.039e-05/0.9391, allocations: 20.34 kB / 1.274 GB, free: 5.992 MB / 0.9981 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.0004209/0.9395, allocations: 112.2 kB / 1.274 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000176/0.9397, allocations: 142.3 kB / 1.274 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.9398, allocations: 21.44 kB / 1.274 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.435e-05/0.9399, allocations: 57.83 kB / 1.274 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.293e-05/0.94, allocations: 62.5 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.94, allocations: 10.44 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.9401, allocations: 52.94 kB / 1.274 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.9402, allocations: 38.8 kB / 1.274 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.073e-05/0.9402, allocations: 58.14 kB / 1.274 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.9404, allocations: 165.9 kB / 1.274 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.9404, allocations: 1.031 kB / 1.274 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.242e-06/0.9404, allocations: 0 / 1.274 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.9404, allocations: 1.094 kB / 1.274 GB, free: 5.664 MB / 0.9981 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.0007314/0.9412, allocations: 0.5521 MB / 1.275 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.9412, allocations: 10.22 kB / 1.275 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.849e-05/0.9412, allocations: 42.59 kB / 1.275 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.9413, allocations: 14.98 kB / 1.275 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.9414, allocations: 222 kB / 1.275 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.9415, allocations: 4.344 kB / 1.275 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.9415, allocations: 10.44 kB / 1.275 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.9418, allocations: 134.7 kB / 1.275 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.9418, allocations: 0 / 1.275 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.9418, allocations: 5.344 kB / 1.275 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.9418, allocations: 1.469 kB / 1.275 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002461/0.942, allocations: 74.55 kB / 1.276 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.9426, allocations: 462.5 kB / 1.276 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.9428, allocations: 91.06 kB / 1.276 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.9429, allocations: 46.3 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.9429, allocations: 0.9688 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.9432, allocations: 145.6 kB / 1.276 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.9432, allocations: 0 / 1.276 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12): time 0.0005717/0.9438, allocations: 183.8 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.9438, allocations: 92.91 kB / 1.277 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.9439, allocations: 167.7 kB / 1.277 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.944, allocations: 35.03 kB / 1.277 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/0.944, allocations: 108.7 kB / 1.277 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.106e-05/0.944, allocations: 34.59 kB / 1.277 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.9441, allocations: 34.23 kB / 1.277 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.318e-05/0.9441, allocations: 328.1 kB / 1.277 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.9443, allocations: 35.77 kB / 1.277 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.9444, allocations: 112.2 kB / 1.277 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.9447, allocations: 153.1 kB / 1.277 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.9447, allocations: 0.875 kB / 1.277 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003484/0.945, allocations: 161 kB / 1.278 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.945, allocations: 9.688 kB / 1.278 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.945, allocations: 3.422 kB / 1.278 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.9451, allocations: 6.719 kB / 1.278 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.9452, allocations: 22.95 kB / 1.278 GB, free: 3.062 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.9452, allocations: 3.625 kB / 1.278 GB, free: 3.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.742e-05/0.9453, allocations: 16.09 kB / 1.278 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.9453, allocations: 5.25 kB / 1.278 GB, free: 3.059 MB / 0.9981 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 8.744e-05/0.9454, allocations: 145 kB / 1.278 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.9454, allocations: 19.47 kB / 1.278 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.511e-05/0.9454, allocations: 16.69 kB / 1.278 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.9454, allocations: 1.312 kB / 1.278 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.9455, allocations: 5.312 kB / 1.278 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.9455, allocations: 6.062 kB / 1.278 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006001/0.9461, allocations: 0.5306 MB / 1.278 GB, free: 2.449 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.9461, allocations: 5.562 kB / 1.278 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.166e-05/0.9461, allocations: 12.98 kB / 1.278 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.9461, allocations: 4.969 kB / 1.278 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.9462, allocations: 1.812 kB / 1.278 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.9462, allocations: 0.9062 kB / 1.278 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.9462, allocations: 4.578 kB / 1.278 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.9465, allocations: 324 kB / 1.279 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.671e-05/0.9465, allocations: 93.42 kB / 1.279 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.9466, allocations: 9.156 kB / 1.279 GB, free: 2.086 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.9468, allocations: 14.02 kB / 1.279 GB, free: 2.086 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.9468, allocations: 13.33 kB / 1.279 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.9468, allocations: 9.797 kB / 1.279 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.791e-05/0.9469, allocations: 126.3 kB / 1.279 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9469, allocations: 0 / 1.279 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003499/0.9473, allocations: 36.56 kB / 1.279 GB, free: 1.98 MB / 0.9981 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.0009041/0.9482, allocations: 0.9693 MB / 1.28 GB, free: 17.16 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003544/0.9485, allocations: 104 kB / 1.28 GB, free: 17.14 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9485, allocations: 1.406 kB / 1.28 GB, free: 17.14 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.9487, allocations: 52.28 kB / 1.28 GB, free: 17.12 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.949, allocations: 23.53 kB / 1.28 GB, free: 17.11 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.9512, allocations: 1.895 MB / 1.282 GB, free: 15.54 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.9515, allocations: 0.7231 MB / 1.283 GB, free: 14.83 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.841e-05/0.9516, allocations: 20.64 kB / 1.283 GB, free: 14.83 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.902e-05/0.9516, allocations: 38.33 kB / 1.283 GB, free: 14.8 MB / 1.014 GB Notification: Performance of SimCode: time 3e-07/0.9516, allocations: 0 / 1.283 GB, free: 14.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.9759, allocations: 3.457 MB / 1.286 GB, free: 14.22 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/9.063, allocations: 14.75 kB / 1.286 GB, free: 14.21 MB / 1.014 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 --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: 14.99154962800094]