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.001584/0.001584, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001779/0.001779, allocations: 217.1 kB / 23.01 MB, free: 4.609 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 8.059 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.22/3.22, allocations: 0.505 GB / 0.8108 GB, free: 22.04 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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer") [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.002054/0.002054, allocations: 72.11 kB / 1.178 GB, free: 16.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3565, allocations: 180.2 MB / 1.354 GB, free: 8.023 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.004216/0.3607, allocations: 1.621 MB / 1.356 GB, free: 6.395 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002139/0.3628, allocations: 0.7758 MB / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.489e-05/0.3629, allocations: 0 / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.363, allocations: 15.81 kB / 1.356 GB, free: 5.598 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.862e-05/0.3631, allocations: 19.78 kB / 1.356 GB, free: 5.578 MB / 1.045 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.0006989/0.3638, allocations: 115.7 kB / 1.357 GB, free: 5.465 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.3641, allocations: 139.5 kB / 1.357 GB, free: 5.328 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.3643, allocations: 25.3 kB / 1.357 GB, free: 5.305 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.3644, allocations: 59.77 kB / 1.357 GB, free: 5.246 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.3646, allocations: 71.67 kB / 1.357 GB, free: 5.176 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.3646, allocations: 8 kB / 1.357 GB, free: 5.168 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.3648, allocations: 55.97 kB / 1.357 GB, free: 5.113 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.395e-05/0.3649, allocations: 27.91 kB / 1.357 GB, free: 5.086 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.365, allocations: 63.66 kB / 1.357 GB, free: 5.023 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.3654, allocations: 171.3 kB / 1.357 GB, free: 4.855 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3654, allocations: 0 / 1.357 GB, free: 4.855 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3654, allocations: 3.938 kB / 1.357 GB, free: 4.852 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.3654, allocations: 0 / 1.357 GB, free: 4.852 MB / 1.045 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.001177/0.3666, allocations: 490.6 kB / 1.358 GB, free: 4.324 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3666, allocations: 12.03 kB / 1.358 GB, free: 4.312 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.716e-05/0.3667, allocations: 20.78 kB / 1.358 GB, free: 4.293 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.367, allocations: 154.3 kB / 1.358 GB, free: 4.117 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.367, allocations: 8.375 kB / 1.358 GB, free: 4.109 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.367, allocations: 8.375 kB / 1.358 GB, free: 4.102 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004575/0.3675, allocations: 131.7 kB / 1.358 GB, free: 3.961 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3675, allocations: 3.938 kB / 1.358 GB, free: 3.957 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.3675, allocations: 7.984 kB / 1.358 GB, free: 3.949 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3675, allocations: 0 / 1.358 GB, free: 3.949 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003509/0.3679, allocations: 67.94 kB / 1.358 GB, free: 3.883 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000943/0.3688, allocations: 435.8 kB / 1.358 GB, free: 3.41 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.3691, allocations: 81.19 kB / 1.359 GB, free: 3.312 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.3693, allocations: 49.8 kB / 1.359 GB, free: 3.258 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.3693, allocations: 3.938 kB / 1.359 GB, free: 3.254 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004243/0.3698, allocations: 145.2 kB / 1.359 GB, free: 3.094 MB / 1.045 GB Notification: Performance of pre-optimization done (n=12): time 1.673e-06/0.3698, allocations: 3.938 kB / 1.359 GB, free: 3.09 MB / 1.045 GB Notification: Performance of matching and sorting (n=12): time 0.0008352/0.3706, allocations: 189.4 kB / 1.359 GB, free: 2.898 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.62e-05/0.3707, allocations: 85.11 kB / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/0.3709, allocations: 162.3 kB / 1.359 GB, free: 2.625 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.943e-05/0.371, allocations: 29.7 kB / 1.359 GB, free: 2.59 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3711, allocations: 116.3 kB / 1.359 GB, free: 2.469 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.352e-05/0.3711, allocations: 27.83 kB / 1.359 GB, free: 2.441 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.192e-05/0.3712, allocations: 33.7 kB / 1.359 GB, free: 2.402 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000198/0.3714, allocations: 330.8 kB / 1.36 GB, free: 2.07 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.3716, allocations: 35.97 kB / 1.36 GB, free: 2.035 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.3719, allocations: 114.3 kB / 1.36 GB, free: 1.887 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.3723, allocations: 151.5 kB / 1.36 GB, free: 1.711 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3724, allocations: 4 kB / 1.36 GB, free: 1.707 MB / 1.045 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005277/0.3729, allocations: 161.3 kB / 1.36 GB, free: 1.543 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.3729, allocations: 8.219 kB / 1.36 GB, free: 1.535 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.607e-06/0.3729, allocations: 8.375 kB / 1.36 GB, free: 1.527 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.3729, allocations: 0 / 1.36 GB, free: 1.527 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.3731, allocations: 23.97 kB / 1.36 GB, free: 1.504 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.3731, allocations: 4 kB / 1.36 GB, free: 1.5 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.3732, allocations: 23.81 kB / 1.36 GB, free: 1.477 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.3732, allocations: 4 kB / 1.36 GB, free: 1.473 MB / 1.045 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.0001663/0.3734, allocations: 141.9 kB / 1.36 GB, free: 1.324 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.3735, allocations: 19.94 kB / 1.36 GB, free: 1.305 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.996e-05/0.3735, allocations: 17.39 kB / 1.36 GB, free: 1.285 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3735, allocations: 4 kB / 1.36 GB, free: 1.281 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3735, allocations: 0 / 1.36 GB, free: 1.281 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3735, allocations: 3.938 kB / 1.36 GB, free: 1.277 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.3746, allocations: 0.5045 MB / 1.361 GB, free: 0.7227 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3746, allocations: 0 / 1.361 GB, free: 0.7227 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.3747, allocations: 15.98 kB / 1.361 GB, free: 0.707 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.3747, allocations: 7.938 kB / 1.361 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3747, allocations: 0 / 1.361 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.3747, allocations: 3.984 kB / 1.361 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.3747, allocations: 11.88 kB / 1.361 GB, free: 0.6836 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/0.3753, allocations: 314.7 kB / 1.361 GB, free: 368 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.3754, allocations: 15.91 kB / 1.361 GB, free: 352 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.254e-05/0.3754, allocations: 7.938 kB / 1.361 GB, free: 344 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.3757, allocations: 15.97 kB / 1.361 GB, free: 328 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.3757, allocations: 7.984 kB / 1.361 GB, free: 320 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.678e-05/0.3758, allocations: 12 kB / 1.361 GB, free: 308 kB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001357/0.3759, allocations: 123.2 kB / 1.361 GB, free: 184 kB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3759, allocations: 4 kB / 1.361 GB, free: 180 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005849/0.3765, allocations: 39.92 kB / 1.361 GB, free: 140 kB / 1.045 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.0006362/0.3771, allocations: 193.2 kB / 1.362 GB, free: 15.97 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005059/0.3776, allocations: 99.81 kB / 1.362 GB, free: 15.87 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3776, allocations: 0.5625 kB / 1.362 GB, free: 15.87 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002471/0.3779, allocations: 59.95 kB / 1.362 GB, free: 15.81 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005903/0.3785, allocations: 20.11 kB / 1.362 GB, free: 15.79 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008047/0.3793, allocations: 277.3 kB / 1.362 GB, free: 15.48 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.3798, allocations: 0.7273 MB / 1.363 GB, free: 14.73 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.215e-05/0.3798, allocations: 15.44 kB / 1.363 GB, free: 14.71 MB / 1.061 GB Notification: Performance of SimCode: time 6.92e-07/0.3798, allocations: 0 / 1.363 GB, free: 14.71 MB / 1.061 GB Notification: Performance of Templates: time 0.005995/0.3858, allocations: 2.06 MB / 1.365 GB, free: 12.67 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 800] 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: 11.377996752999024]