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.001408/0.001408, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001487/0.001487, allocations: 208.3 kB / 22.24 MB, free: 5.262 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 3.453/3.453, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: 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.002152/0.002152, allocations: 67.67 kB / 1.186 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3499, allocations: 181.9 MB / 1.363 GB, free: 14.14 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003167/0.353, allocations: 1.587 MB / 1.365 GB, free: 12.54 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.3545, allocations: 0.7296 MB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.476e-05/0.3545, allocations: 0 / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.3546, allocations: 15.8 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.711e-05/0.3547, allocations: 27.8 kB / 1.366 GB, free: 11.76 MB / 1.061 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.0004958/0.3552, allocations: 103.8 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000232/0.3554, allocations: 143.5 kB / 1.366 GB, free: 11.52 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.3555, allocations: 17.59 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.3556, allocations: 59.77 kB / 1.366 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.3557, allocations: 63.69 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.3558, allocations: 8 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.3559, allocations: 55.95 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.459e-05/0.356, allocations: 23.92 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.354e-05/0.356, allocations: 55.7 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.3563, allocations: 171.3 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3563, allocations: 0 / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3563, allocations: 3.938 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.3563, allocations: 0 / 1.366 GB, free: 11.07 MB / 1.061 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.0008533/0.3572, allocations: 482.7 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.3572, allocations: 15.97 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.663e-05/0.3573, allocations: 42.73 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.038e-05/0.3573, allocations: 16.84 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.3575, allocations: 158.7 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.3576, allocations: 8.375 kB / 1.367 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.3576, allocations: 4.375 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.3579, allocations: 143.4 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3579, allocations: 0 / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.3579, allocations: 0 / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3579, allocations: 0 / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.3582, allocations: 79.86 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006653/0.3589, allocations: 411.9 kB / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.3591, allocations: 73.19 kB / 1.368 GB, free: 9.504 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.3592, allocations: 61.67 kB / 1.368 GB, free: 9.438 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.3593, allocations: 4 kB / 1.368 GB, free: 9.434 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003628/0.3596, allocations: 137 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.3596, allocations: 0 / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0005968/0.3602, allocations: 197.4 kB / 1.368 GB, free: 9.082 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.3603, allocations: 81.11 kB / 1.368 GB, free: 8.984 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.3604, allocations: 166.2 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.3605, allocations: 25.7 kB / 1.368 GB, free: 8.781 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.3606, allocations: 116.4 kB / 1.368 GB, free: 8.66 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.914e-05/0.3606, allocations: 35.72 kB / 1.369 GB, free: 8.625 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.727e-05/0.3607, allocations: 41.7 kB / 1.369 GB, free: 8.578 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3608, allocations: 322.8 kB / 1.369 GB, free: 8.254 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.361, allocations: 35.97 kB / 1.369 GB, free: 8.219 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/0.3613, allocations: 202.3 kB / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.3616, allocations: 147.6 kB / 1.369 GB, free: 7.797 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3616, allocations: 3.938 kB / 1.369 GB, free: 7.793 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00041/0.362, allocations: 165.3 kB / 1.369 GB, free: 7.625 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.362, allocations: 4.281 kB / 1.369 GB, free: 7.621 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.362, allocations: 8 kB / 1.369 GB, free: 7.613 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.362, allocations: 7.984 kB / 1.369 GB, free: 7.605 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3621, allocations: 11.98 kB / 1.369 GB, free: 7.594 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.3622, allocations: 4 kB / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.3623, allocations: 19.92 kB / 1.369 GB, free: 7.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.3623, allocations: 8 kB / 1.369 GB, free: 7.562 MB / 1.061 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.0001209/0.3624, allocations: 133.7 kB / 1.37 GB, free: 7.422 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/0.3624, allocations: 16.12 kB / 1.37 GB, free: 7.406 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.3625, allocations: 25.41 kB / 1.37 GB, free: 7.375 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3625, allocations: 3.984 kB / 1.37 GB, free: 7.371 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3625, allocations: 0 / 1.37 GB, free: 7.371 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.3625, allocations: 3.938 kB / 1.37 GB, free: 7.367 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007803/0.3633, allocations: 497.1 kB / 1.37 GB, free: 6.832 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3633, allocations: 96 / 1.37 GB, free: 6.832 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.9e-05/0.3634, allocations: 15.92 kB / 1.37 GB, free: 6.816 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.3634, allocations: 7.938 kB / 1.37 GB, free: 6.809 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.3634, allocations: 7.984 kB / 1.37 GB, free: 6.801 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3634, allocations: 0 / 1.37 GB, free: 6.801 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3634, allocations: 3.938 kB / 1.37 GB, free: 6.797 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004592/0.3639, allocations: 322.6 kB / 1.37 GB, free: 6.465 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.278e-05/0.3639, allocations: 15.84 kB / 1.37 GB, free: 6.449 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.3639, allocations: 3.984 kB / 1.37 GB, free: 6.445 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.3641, allocations: 19.98 kB / 1.37 GB, free: 6.426 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.3641, allocations: 11.98 kB / 1.37 GB, free: 6.414 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.3642, allocations: 11.98 kB / 1.371 GB, free: 6.402 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001052/0.3643, allocations: 124.2 kB / 1.371 GB, free: 6.281 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3643, allocations: 0 / 1.371 GB, free: 6.281 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000351/0.3646, allocations: 35.94 kB / 1.371 GB, free: 6.246 MB / 1.061 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.001167/0.3658, allocations: 0.955 MB / 1.372 GB, free: 5.301 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003728/0.3662, allocations: 103.9 kB / 1.372 GB, free: 5.199 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.3662, allocations: 4 kB / 1.372 GB, free: 5.195 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.3663, allocations: 51.89 kB / 1.372 GB, free: 5.145 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.3667, allocations: 23.89 kB / 1.372 GB, free: 5.121 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.3692, allocations: 1.899 MB / 1.374 GB, free: 3.09 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.3693, allocations: 110.5 kB / 1.374 GB, free: 2.961 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.346e-05/0.3694, allocations: 20.47 kB / 1.374 GB, free: 2.941 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.616e-05/0.3695, allocations: 43.31 kB / 1.374 GB, free: 2.898 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/0.3695, allocations: 0 / 1.374 GB, free: 2.898 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03154/0.401, allocations: 4.064 MB / 1.378 GB, free: 15 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.15, allocations: 4.5 kB / 1.378 GB, free: 15 MB / 1.076 GB " [Timeout remaining time 288] (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/jenkins1/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: 19.12530528381467]