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.001379/0.001379, allocations: 80.36 kB / 19.18 MB, free: 2.531 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.001526/0.001526, allocations: 171.3 kB / 22.46 MB, free: 5.355 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.521/1.521, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.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 2.974/2.974, allocations: 389 MB / 0.633 GB, free: 0.9922 MB / 0.5919 GB " [Timeout remaining time 176] 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: 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: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.044e-05/3.228e-05, allocations: 9.594 kB / 1 GB, free: 7.285 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003216/0.003248, allocations: 1.586 MB / 1.002 GB, free: 5.691 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00174/0.004989, allocations: 0.7207 MB / 1.002 GB, free: 4.965 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.854e-05/0.005067, allocations: 0 / 1.002 GB, free: 4.965 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.005196, allocations: 15.86 kB / 1.002 GB, free: 4.949 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.408e-05/0.00527, allocations: 23.73 kB / 1.002 GB, free: 4.926 MB / 0.9512 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.0006593/0.00593, allocations: 115.5 kB / 1.003 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.006209, allocations: 147.5 kB / 1.003 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.006367, allocations: 21.3 kB / 1.003 GB, free: 4.645 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.006553, allocations: 83.78 kB / 1.003 GB, free: 4.562 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.006672, allocations: 47.88 kB / 1.003 GB, free: 4.516 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/0.00671, allocations: 8 kB / 1.003 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.006865, allocations: 51.91 kB / 1.003 GB, free: 4.457 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.368e-05/0.006939, allocations: 35.89 kB / 1.003 GB, free: 4.422 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.372e-05/0.007013, allocations: 39.84 kB / 1.003 GB, free: 4.383 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.007376, allocations: 191.4 kB / 1.003 GB, free: 4.195 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.00738, allocations: 0 / 1.003 GB, free: 4.195 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.92e-07/0.007381, allocations: 0 / 1.003 GB, free: 4.195 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.007394, allocations: 4 kB / 1.003 GB, free: 4.191 MB / 0.9512 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.001078/0.008472, allocations: 478.7 kB / 1.004 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.008519, allocations: 8.031 kB / 1.004 GB, free: 3.668 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.823e-05/0.008597, allocations: 16.84 kB / 1.004 GB, free: 3.652 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.008872, allocations: 165.5 kB / 1.004 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.008888, allocations: 8.375 kB / 1.004 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.008917, allocations: 12.36 kB / 1.004 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/0.009272, allocations: 129.2 kB / 1.004 GB, free: 3.309 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.009283, allocations: 4.125 kB / 1.004 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.009308, allocations: 12.36 kB / 1.004 GB, free: 3.293 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.009315, allocations: 3.938 kB / 1.004 GB, free: 3.289 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002529/0.009568, allocations: 59.94 kB / 1.004 GB, free: 3.23 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007121/0.01028, allocations: 384.5 kB / 1.004 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.01053, allocations: 81.12 kB / 1.004 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.01068, allocations: 49.75 kB / 1.004 GB, free: 2.668 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.0107, allocations: 7.984 kB / 1.004 GB, free: 2.66 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003258/0.01103, allocations: 149 kB / 1.005 GB, free: 2.496 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.01103, allocations: 0 / 1.005 GB, free: 2.496 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0006358/0.01166, allocations: 185.4 kB / 1.005 GB, free: 2.309 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.01173, allocations: 85.09 kB / 1.005 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.01189, allocations: 159.1 kB / 1.005 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.01192, allocations: 33.64 kB / 1.005 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.744e-05/0.012, allocations: 112.4 kB / 1.005 GB, free: 1.887 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.785e-05/0.01205, allocations: 31.73 kB / 1.005 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/0.01212, allocations: 37.7 kB / 1.005 GB, free: 1.812 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.01227, allocations: 326.8 kB / 1.006 GB, free: 1.484 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.01242, allocations: 35.97 kB / 1.006 GB, free: 1.449 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.01268, allocations: 199.3 kB / 1.006 GB, free: 1.199 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.01301, allocations: 151.5 kB / 1.006 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.01301, allocations: 0 / 1.006 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000422/0.01344, allocations: 169.3 kB / 1.006 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.01345, allocations: 4 kB / 1.006 GB, free: 0.8477 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.01346, allocations: 4 kB / 1.006 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.01348, allocations: 4 kB / 1.006 GB, free: 0.8398 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.01359, allocations: 15.97 kB / 1.006 GB, free: 0.8242 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.0136, allocations: 12.22 kB / 1.006 GB, free: 0.8125 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.986e-05/0.0137, allocations: 8 kB / 1.006 GB, free: 0.8047 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.01372, allocations: 15.98 kB / 1.006 GB, free: 0.7891 MB / 0.9512 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.0001309/0.01385, allocations: 137.7 kB / 1.006 GB, free: 0.6445 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.01389, allocations: 11.91 kB / 1.006 GB, free: 0.6328 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.364e-05/0.01395, allocations: 25.45 kB / 1.006 GB, free: 0.6094 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.01395, allocations: 384 / 1.006 GB, free: 0.6094 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.01395, allocations: 0 / 1.006 GB, free: 0.6094 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.01396, allocations: 0 / 1.006 GB, free: 0.6094 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007433/0.0147, allocations: 493.3 kB / 1.007 GB, free: 92 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.0147, allocations: 0 / 1.007 GB, free: 92 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.962e-05/0.01478, allocations: 11.98 kB / 1.007 GB, free: 80 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.01479, allocations: 4 kB / 1.007 GB, free: 76 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.0148, allocations: 0 / 1.007 GB, free: 76 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.0148, allocations: 3.938 kB / 1.007 GB, free: 72 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.0148, allocations: 0 / 1.007 GB, free: 72 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.01529, allocations: 330.6 kB / 1.007 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 1.856e-05/0.01531, allocations: 11.91 kB / 1.007 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.01533, allocations: 0 / 1.007 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.01553, allocations: 19.98 kB / 1.007 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.01558, allocations: 7.984 kB / 1.007 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.689e-05/0.01562, allocations: 11.92 kB / 1.007 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.762e-05/0.01572, allocations: 123.5 kB / 1.007 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.01572, allocations: 0 / 1.007 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003642/0.01608, allocations: 39.89 kB / 1.007 GB, free: 15.52 MB / 0.9669 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.0005214/0.0166, allocations: 213 kB / 1.008 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004021/0.017, allocations: 107.7 kB / 1.008 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01701, allocations: 0 / 1.008 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002174/0.01722, allocations: 55.89 kB / 1.008 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006037/0.01783, allocations: 20.56 kB / 1.008 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008223/0.01865, allocations: 253 kB / 1.008 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001577/0.01881, allocations: 106.2 kB / 1.008 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000105/0.01891, allocations: 20.47 kB / 1.008 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.471e-05/0.01897, allocations: 20.69 kB / 1.008 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of SimCode: time 4.01e-07/0.01897, allocations: 0 / 1.008 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of Templates: time 0.008488/0.02746, allocations: 1.774 MB / 1.01 GB, free: 12.97 MB / 0.9669 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/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: 8.183983851224184]