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.001682/0.001682, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.00197/0.00197, allocations: 213 kB / 22.99 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.431/3.431, allocations: 0.5107 GB / 0.8166 GB, free: 17.85 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.002229/0.002229, allocations: 65.62 kB / 1.187 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3445, allocations: 181.9 MB / 1.365 GB, free: 13.64 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.004069/0.3486, allocations: 1.594 MB / 1.366 GB, free: 12.03 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002046/0.3506, allocations: 0.7258 MB / 1.367 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.344e-05/0.3507, allocations: 3.938 kB / 1.367 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.3509, allocations: 15.86 kB / 1.367 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.622e-05/0.3509, allocations: 27.73 kB / 1.367 GB, free: 11.25 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.0005948/0.3515, allocations: 107.7 kB / 1.367 GB, free: 11.15 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.3518, allocations: 139.5 kB / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.352, allocations: 21.31 kB / 1.367 GB, free: 10.99 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.3521, allocations: 55.81 kB / 1.367 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.3522, allocations: 59.75 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.002e-05/0.3523, allocations: 19.88 kB / 1.367 GB, free: 10.86 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.3524, allocations: 47.97 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.956e-05/0.3525, allocations: 35.89 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.939e-05/0.3526, allocations: 47.73 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003468/0.3529, allocations: 175.3 kB / 1.368 GB, free: 10.55 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3529, allocations: 0 / 1.368 GB, free: 10.55 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3529, allocations: 0 / 1.368 GB, free: 10.55 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.279e-05/0.3529, allocations: 0 / 1.368 GB, free: 10.55 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.001102/0.3541, allocations: 478.6 kB / 1.368 GB, free: 10.04 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3541, allocations: 12.03 kB / 1.368 GB, free: 10.03 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.3542, allocations: 20.84 kB / 1.368 GB, free: 10.01 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.3544, allocations: 162.7 kB / 1.368 GB, free: 9.824 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.3545, allocations: 4.375 kB / 1.368 GB, free: 9.82 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.3545, allocations: 8.375 kB / 1.368 GB, free: 9.812 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.3549, allocations: 139.6 kB / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3549, allocations: 0 / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.355, allocations: 0 / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.355, allocations: 0 / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.3553, allocations: 75.88 kB / 1.368 GB, free: 9.59 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008042/0.3561, allocations: 388.5 kB / 1.369 GB, free: 9.176 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.3564, allocations: 81.11 kB / 1.369 GB, free: 9.078 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.3566, allocations: 49.8 kB / 1.369 GB, free: 9.023 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.3566, allocations: 8 kB / 1.369 GB, free: 9.016 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004627/0.3571, allocations: 141 kB / 1.369 GB, free: 8.859 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.663e-06/0.3571, allocations: 0 / 1.369 GB, free: 8.859 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0007724/0.3579, allocations: 193.4 kB / 1.369 GB, free: 8.664 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.11e-05/0.3579, allocations: 85.05 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002041/0.3581, allocations: 162.3 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.3582, allocations: 33.7 kB / 1.37 GB, free: 8.355 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.3583, allocations: 120.3 kB / 1.37 GB, free: 8.23 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.696e-05/0.3583, allocations: 27.8 kB / 1.37 GB, free: 8.203 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.671e-05/0.3584, allocations: 33.7 kB / 1.37 GB, free: 8.164 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001952/0.3586, allocations: 330.8 kB / 1.37 GB, free: 7.832 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.3588, allocations: 31.97 kB / 1.37 GB, free: 7.801 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.3592, allocations: 191.4 kB / 1.37 GB, free: 7.559 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005243/0.3597, allocations: 151.5 kB / 1.37 GB, free: 7.383 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3597, allocations: 4 kB / 1.37 GB, free: 7.379 MB / 1.061 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005426/0.3602, allocations: 165.3 kB / 1.371 GB, free: 7.211 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.3603, allocations: 11.98 kB / 1.371 GB, free: 7.199 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3603, allocations: 0 / 1.371 GB, free: 7.199 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.3603, allocations: 12.28 kB / 1.371 GB, free: 7.188 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.3604, allocations: 19.92 kB / 1.371 GB, free: 7.168 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.3604, allocations: 0 / 1.371 GB, free: 7.168 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.3606, allocations: 16.09 kB / 1.371 GB, free: 7.152 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.3606, allocations: 11.94 kB / 1.371 GB, free: 7.141 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.0001876/0.3608, allocations: 137.7 kB / 1.371 GB, free: 6.996 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.3609, allocations: 19.89 kB / 1.371 GB, free: 6.977 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.476e-05/0.3609, allocations: 17.41 kB / 1.371 GB, free: 6.953 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.3609, allocations: 0 / 1.371 GB, free: 6.953 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.361, allocations: 8 kB / 1.371 GB, free: 6.945 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.361, allocations: 3.984 kB / 1.371 GB, free: 6.941 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.362, allocations: 469.2 kB / 1.371 GB, free: 6.445 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.362, allocations: 480 / 1.371 GB, free: 6.445 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.3621, allocations: 15.98 kB / 1.371 GB, free: 6.43 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3621, allocations: 0 / 1.371 GB, free: 6.43 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.3621, allocations: 0 / 1.371 GB, free: 6.43 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.264e-05/0.3621, allocations: 7.938 kB / 1.371 GB, free: 6.422 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3621, allocations: 7.938 kB / 1.371 GB, free: 6.414 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006357/0.3628, allocations: 326.5 kB / 1.372 GB, free: 6.078 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.046e-05/0.3628, allocations: 11.91 kB / 1.372 GB, free: 6.066 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.3629, allocations: 8 kB / 1.372 GB, free: 6.059 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.3632, allocations: 23.84 kB / 1.372 GB, free: 6.035 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.589e-05/0.3632, allocations: 8.266 kB / 1.372 GB, free: 6.027 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-05/0.3633, allocations: 12 kB / 1.372 GB, free: 6.016 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.733e-05/0.3634, allocations: 124.2 kB / 1.372 GB, free: 5.895 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3634, allocations: 0 / 1.372 GB, free: 5.895 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003939/0.3638, allocations: 43.92 kB / 1.372 GB, free: 5.852 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.0006034/0.3644, allocations: 184.8 kB / 1.372 GB, free: 5.699 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004828/0.3648, allocations: 103.8 kB / 1.372 GB, free: 5.598 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3648, allocations: 0.5625 kB / 1.372 GB, free: 5.598 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.3651, allocations: 63.89 kB / 1.372 GB, free: 5.535 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006145/0.3657, allocations: 20.06 kB / 1.372 GB, free: 5.516 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008354/0.3666, allocations: 285.2 kB / 1.372 GB, free: 5.203 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.3667, allocations: 102.1 kB / 1.373 GB, free: 5.082 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.838e-05/0.3668, allocations: 23.42 kB / 1.373 GB, free: 5.059 MB / 1.061 GB Notification: Performance of SimCode: time 3.4e-07/0.3668, allocations: 0 / 1.373 GB, free: 5.059 MB / 1.061 GB Notification: Performance of Templates: time 0.006019/0.3728, allocations: 2.083 MB / 1.375 GB, free: 2.984 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.424057778902352]