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.001837/0.001837, allocations: 78.17 kB / 19.76 MB, free: 2.031 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.002079/0.002079, allocations: 160.6 kB / 23.01 MB, free: 4.945 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.453/1.453, allocations: 177.2 MB / 203.4 MB, free: 8.957 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.853/2.853, allocations: 394.2 MB / 0.6387 GB, free: 11.91 MB / 0.6075 GB " [Timeout remaining time 177] 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.002142/0.002142, allocations: 71.81 kB / 1.009 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7618/0.7639, allocations: 181.8 MB / 1.187 GB, free: 16.23 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002332/0.7662, allocations: 1.606 MB / 1.188 GB, free: 15.13 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.7673, allocations: 0.721 MB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.91e-05/0.7674, allocations: 0.8438 kB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 9.797e-05/0.7675, allocations: 14.88 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 4.933e-05/0.7675, allocations: 20.53 kB / 1.189 GB, free: 14.64 MB / 1.076 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.0004081/0.7679, allocations: 113.7 kB / 1.189 GB, free: 14.59 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.7681, allocations: 137.2 kB / 1.189 GB, free: 14.52 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.7682, allocations: 21.97 kB / 1.189 GB, free: 14.51 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 8.315e-05/0.7683, allocations: 59.12 kB / 1.189 GB, free: 14.48 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 9.307e-05/0.7684, allocations: 57.97 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.7684, allocations: 9.312 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.7686, allocations: 57.44 kB / 1.189 GB, free: 14.44 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.237e-05/0.7686, allocations: 30.41 kB / 1.189 GB, free: 14.43 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 6.319e-05/0.7687, allocations: 54.05 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.7689, allocations: 170.2 kB / 1.19 GB, free: 14.33 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.7689, allocations: 4 kB / 1.19 GB, free: 14.32 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7689, allocations: 1.375 kB / 1.19 GB, free: 14.32 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.7689, allocations: 0 / 1.19 GB, free: 14.32 MB / 1.076 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.0007399/0.7697, allocations: 477.9 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.7697, allocations: 14.47 kB / 1.19 GB, free: 13.9 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.233e-05/0.7697, allocations: 17.69 kB / 1.19 GB, free: 13.89 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.7699, allocations: 158.3 kB / 1.19 GB, free: 13.74 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.7699, allocations: 8.125 kB / 1.19 GB, free: 13.74 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.7699, allocations: 7.578 kB / 1.19 GB, free: 13.74 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.7702, allocations: 141.7 kB / 1.19 GB, free: 13.66 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.7703, allocations: 0 / 1.19 GB, free: 13.66 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.7703, allocations: 2.953 kB / 1.19 GB, free: 13.66 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.7703, allocations: 1.156 kB / 1.19 GB, free: 13.66 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.7705, allocations: 70.81 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004965/0.771, allocations: 383.2 kB / 1.191 GB, free: 13.32 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.7712, allocations: 86.28 kB / 1.191 GB, free: 13.25 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.7713, allocations: 49.69 kB / 1.191 GB, free: 13.23 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.7714, allocations: 6.938 kB / 1.191 GB, free: 13.22 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/0.7716, allocations: 152.3 kB / 1.191 GB, free: 13.13 MB / 1.076 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.7716, allocations: 3.938 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of matching and sorting (n=12): time 0.0005525/0.7722, allocations: 187.9 kB / 1.191 GB, free: 13.05 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.49e-05/0.7722, allocations: 84.36 kB / 1.191 GB, free: 12.96 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.7723, allocations: 162.1 kB / 1.191 GB, free: 12.84 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.7723, allocations: 32.91 kB / 1.192 GB, free: 12.8 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.7724, allocations: 114.7 kB / 1.192 GB, free: 12.7 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.7724, allocations: 26.22 kB / 1.192 GB, free: 12.68 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.7725, allocations: 35.47 kB / 1.192 GB, free: 12.65 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.53e-05/0.7725, allocations: 330.7 kB / 1.192 GB, free: 12.33 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.7726, allocations: 34.64 kB / 1.192 GB, free: 12.32 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.7728, allocations: 204.3 kB / 1.192 GB, free: 12.11 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.7731, allocations: 149.6 kB / 1.192 GB, free: 12.01 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.7731, allocations: 1.438 kB / 1.192 GB, free: 12.01 MB / 1.076 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000367/0.7735, allocations: 162.2 kB / 1.193 GB, free: 11.94 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.7735, allocations: 8.906 kB / 1.193 GB, free: 11.94 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.7735, allocations: 4.516 kB / 1.193 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.7735, allocations: 2.219 kB / 1.193 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.7736, allocations: 23.27 kB / 1.193 GB, free: 11.93 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.7736, allocations: 7.797 kB / 1.193 GB, free: 11.92 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.7737, allocations: 12.14 kB / 1.193 GB, free: 11.92 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.7737, allocations: 5.312 kB / 1.193 GB, free: 11.92 MB / 1.076 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 7.934e-05/0.7738, allocations: 135.7 kB / 1.193 GB, free: 11.79 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.7738, allocations: 16.97 kB / 1.193 GB, free: 11.79 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.7739, allocations: 15.28 kB / 1.193 GB, free: 11.77 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.7739, allocations: 10.34 kB / 1.193 GB, free: 11.77 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.7739, allocations: 1.125 kB / 1.193 GB, free: 11.77 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.7739, allocations: 1.844 kB / 1.193 GB, free: 11.77 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005759/0.7745, allocations: 472.2 kB / 1.193 GB, free: 11.41 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.7745, allocations: 1.641 kB / 1.193 GB, free: 11.41 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.151e-05/0.7746, allocations: 20.53 kB / 1.193 GB, free: 11.4 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.7746, allocations: 5.531 kB / 1.193 GB, free: 11.39 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.7746, allocations: 6.25 kB / 1.193 GB, free: 11.39 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.7746, allocations: 8.625 kB / 1.193 GB, free: 11.38 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.7746, allocations: 1.484 kB / 1.193 GB, free: 11.38 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.7749, allocations: 317.6 kB / 1.194 GB, free: 11.15 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.734e-05/0.775, allocations: 16.83 kB / 1.194 GB, free: 11.14 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.775, allocations: 2.406 kB / 1.194 GB, free: 11.14 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.7752, allocations: 23.44 kB / 1.194 GB, free: 11.13 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/0.7752, allocations: 13.47 kB / 1.194 GB, free: 11.12 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.7753, allocations: 10.75 kB / 1.194 GB, free: 11.12 MB / 1.076 GB Notification: Performance of sorting global known variables: time 6.373e-05/0.7753, allocations: 119.2 kB / 1.194 GB, free: 11.04 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.7753, allocations: 0 / 1.194 GB, free: 11.04 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003495/0.7757, allocations: 38.44 kB / 1.194 GB, free: 11.03 MB / 1.076 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.0003961/0.7761, allocations: 201.3 kB / 1.194 GB, free: 10.91 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003549/0.7764, allocations: 108.3 kB / 1.194 GB, free: 10.88 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.7764, allocations: 5.125 kB / 1.194 GB, free: 10.88 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.7766, allocations: 51.83 kB / 1.194 GB, free: 10.86 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.7769, allocations: 23.8 kB / 1.194 GB, free: 10.85 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004541/0.7774, allocations: 262 kB / 1.194 GB, free: 10.66 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.372e-05/0.7775, allocations: 102.9 kB / 1.195 GB, free: 10.57 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.679e-05/0.7776, allocations: 20.97 kB / 1.195 GB, free: 10.57 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.7776, allocations: 16.69 kB / 1.195 GB, free: 10.57 MB / 1.076 GB Notification: Performance of SimCode: time 3.31e-07/0.7776, allocations: 0 / 1.195 GB, free: 10.57 MB / 1.076 GB Notification: Performance of Templates: time 0.005437/0.783, allocations: 1.78 MB / 1.196 GB, free: 10.33 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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: 8.447131455992348]