Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.001677/0.001676, allocations: 113.4 kB / 17.08 MB, free: 5.789 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.001966/0.001966, allocations: 193.2 kB / 20.03 MB, free: 2.906 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.45/1.45, allocations: 222.9 MB / 245.7 MB, free: 4.199 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.635/2.635, allocations: 437.1 MB / 0.7178 GB, free: 4.57 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002231/0.002231, allocations: 75.83 kB / 1.028 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3467, allocations: 151.6 MB / 1.176 GB, free: 5.926 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002918/0.3497, allocations: 1.579 MB / 1.177 GB, free: 4.324 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.351, allocations: 0.7013 MB / 1.178 GB, free: 3.617 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.81e-05/0.3511, allocations: 4 kB / 1.178 GB, free: 3.613 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.831e-05/0.3512, allocations: 11.86 kB / 1.178 GB, free: 3.602 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.372e-05/0.3513, allocations: 19.73 kB / 1.178 GB, free: 3.582 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.0004231/0.3517, allocations: 115.7 kB / 1.178 GB, free: 3.469 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.3519, allocations: 139.5 kB / 1.178 GB, free: 3.332 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.352, allocations: 29.05 kB / 1.178 GB, free: 3.301 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.652e-05/0.3521, allocations: 51.84 kB / 1.178 GB, free: 3.25 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3522, allocations: 67.73 kB / 1.178 GB, free: 3.184 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.3523, allocations: 12 kB / 1.178 GB, free: 3.172 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.3524, allocations: 51.95 kB / 1.179 GB, free: 3.121 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.546e-05/0.3525, allocations: 31.86 kB / 1.179 GB, free: 3.09 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.3e-05/0.3526, allocations: 63.64 kB / 1.179 GB, free: 3.027 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.3528, allocations: 167.3 kB / 1.179 GB, free: 2.863 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3529, allocations: 4 kB / 1.179 GB, free: 2.859 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3529, allocations: 0 / 1.179 GB, free: 2.859 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.3529, allocations: 0 / 1.179 GB, free: 2.859 MB / 0.92 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.000921/0.3538, allocations: 0.5505 MB / 1.179 GB, free: 2.242 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.3538, allocations: 8.031 kB / 1.179 GB, free: 2.234 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.514e-05/0.3539, allocations: 16.84 kB / 1.179 GB, free: 2.219 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.3541, allocations: 221.1 kB / 1.18 GB, free: 1.965 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.3542, allocations: 4.375 kB / 1.18 GB, free: 1.961 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.3542, allocations: 16.38 kB / 1.18 GB, free: 1.945 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.3545, allocations: 136.6 kB / 1.18 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.3545, allocations: 0 / 1.18 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.3546, allocations: 0 / 1.18 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3546, allocations: 0 / 1.18 GB, free: 1.801 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.3548, allocations: 67.94 kB / 1.18 GB, free: 1.734 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006528/0.3555, allocations: 468.7 kB / 1.18 GB, free: 1.223 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.3557, allocations: 89.12 kB / 1.18 GB, free: 1.117 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.3559, allocations: 45.81 kB / 1.18 GB, free: 1.066 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3559, allocations: 0 / 1.18 GB, free: 1.066 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003502/0.3563, allocations: 156.9 kB / 1.18 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.3563, allocations: 0 / 1.18 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0005885/0.3569, allocations: 185.4 kB / 1.181 GB, free: 0.707 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.3569, allocations: 81.48 kB / 1.181 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.3571, allocations: 162.4 kB / 1.181 GB, free: 452 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.3571, allocations: 29.7 kB / 1.181 GB, free: 416 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.431e-05/0.3572, allocations: 120.3 kB / 1.181 GB, free: 288 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.3572, allocations: 23.8 kB / 1.181 GB, free: 264 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.268e-05/0.3573, allocations: 37.7 kB / 1.181 GB, free: 220 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3575, allocations: 326.8 kB / 1.181 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.3576, allocations: 39.95 kB / 1.181 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.3578, allocations: 120.7 kB / 1.182 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003085/0.3582, allocations: 143.6 kB / 1.182 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3582, allocations: 8 kB / 1.182 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003832/0.3586, allocations: 165.3 kB / 1.182 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.3586, allocations: 4 kB / 1.182 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3586, allocations: 4 kB / 1.182 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3586, allocations: 4.281 kB / 1.182 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.3587, allocations: 19.98 kB / 1.182 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.3587, allocations: 7.938 kB / 1.182 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.998e-05/0.3589, allocations: 19.88 kB / 1.182 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.3589, allocations: 8.109 kB / 1.182 GB, free: 15.29 MB / 0.9356 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.0001228/0.359, allocations: 133.7 kB / 1.182 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.359, allocations: 19.94 kB / 1.182 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.083e-05/0.3591, allocations: 13.41 kB / 1.182 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.3591, allocations: 4 kB / 1.182 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.3591, allocations: 4 kB / 1.182 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3591, allocations: 7.922 kB / 1.182 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007475/0.3599, allocations: 0.5289 MB / 1.183 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3599, allocations: 0 / 1.183 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.728e-05/0.36, allocations: 15.92 kB / 1.183 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.36, allocations: 7.938 kB / 1.183 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.36, allocations: 7.984 kB / 1.183 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.36, allocations: 0 / 1.183 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.36, allocations: 3.984 kB / 1.183 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004486/0.3605, allocations: 314.7 kB / 1.183 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/0.3605, allocations: 93.02 kB / 1.183 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.3606, allocations: 7.938 kB / 1.183 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.3608, allocations: 19.97 kB / 1.183 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.046e-05/0.3608, allocations: 19.86 kB / 1.183 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.239e-05/0.3609, allocations: 8 kB / 1.183 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.817e-05/0.3609, allocations: 116.3 kB / 1.183 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.361, allocations: 3.938 kB / 1.183 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003347/0.3613, allocations: 43.92 kB / 1.183 GB, free: 13.82 MB / 0.9356 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.0004645/0.3618, allocations: 211.1 kB / 1.183 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003812/0.3622, allocations: 111.8 kB / 1.184 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3622, allocations: 0.5625 kB / 1.184 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.3624, allocations: 59.89 kB / 1.184 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.3627, allocations: 15.98 kB / 1.184 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005019/0.3632, allocations: 273.1 kB / 1.184 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.3636, allocations: 0.7158 MB / 1.185 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.3637, allocations: 15.44 kB / 1.185 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.3637, allocations: 0 / 1.185 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of Templates: time 0.004354/0.3681, allocations: 2.063 MB / 1.187 GB, free: 10.36 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 10.454205216956325]