Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001656/0.001656, allocations: 110 kB / 18.94 MB, free: 2.785 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.001714/0.001714, allocations: 190.8 kB / 22.23 MB, free: 5.238 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.452/1.452, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.205/3.205, allocations: 496 MB / 0.7835 GB, free: 33.63 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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_12_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_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 74.78 kB / 1.138 GB, free: 33.76 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3446, allocations: 173.6 MB / 1.307 GB, free: 1.793 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002923/0.3475, allocations: 1.625 MB / 1.309 GB, free: 160 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001366/0.3489, allocations: 0.7091 MB / 1.31 GB, free: 15.44 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.723e-05/0.3489, allocations: 4 kB / 1.31 GB, free: 15.44 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.349, allocations: 15.8 kB / 1.31 GB, free: 15.42 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 5.026e-05/0.3491, allocations: 19.81 kB / 1.31 GB, free: 15.4 MB / 1.014 GB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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.0004653/0.3496, allocations: 111.7 kB / 1.31 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002134/0.3498, allocations: 139.5 kB / 1.31 GB, free: 15.16 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.3499, allocations: 21.3 kB / 1.31 GB, free: 15.13 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.647e-05/0.35, allocations: 55.84 kB / 1.31 GB, free: 15.08 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.3501, allocations: 63.73 kB / 1.31 GB, free: 15.02 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.41e-05/0.3501, allocations: 15.94 kB / 1.31 GB, free: 15 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.3503, allocations: 55.95 kB / 1.31 GB, free: 14.95 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 5.432e-05/0.3503, allocations: 31.86 kB / 1.31 GB, free: 14.91 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.565e-05/0.3504, allocations: 55.66 kB / 1.31 GB, free: 14.86 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.3506, allocations: 175.3 kB / 1.31 GB, free: 14.69 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3506, allocations: 0 / 1.31 GB, free: 14.69 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.292e-06/0.3507, allocations: 0 / 1.31 GB, free: 14.69 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 5.701e-06/0.3507, allocations: 0 / 1.31 GB, free: 14.69 MB / 1.014 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.0008825/0.3515, allocations: 486.6 kB / 1.311 GB, free: 14.16 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3516, allocations: 8.922 kB / 1.311 GB, free: 14.16 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.809e-05/0.3516, allocations: 16.84 kB / 1.311 GB, free: 14.14 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.3519, allocations: 170.2 kB / 1.311 GB, free: 13.95 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.3519, allocations: 8.375 kB / 1.311 GB, free: 13.94 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.3519, allocations: 8.375 kB / 1.311 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.3522, allocations: 132.5 kB / 1.311 GB, free: 13.79 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.3522, allocations: 0 / 1.311 GB, free: 13.79 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.3522, allocations: 11.98 kB / 1.311 GB, free: 13.78 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.3523, allocations: 4 kB / 1.311 GB, free: 13.78 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.3525, allocations: 71.81 kB / 1.311 GB, free: 13.71 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006876/0.3532, allocations: 431.8 kB / 1.312 GB, free: 13.24 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.3534, allocations: 81.17 kB / 1.312 GB, free: 13.14 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.3535, allocations: 45.81 kB / 1.312 GB, free: 13.09 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.3536, allocations: 3.984 kB / 1.312 GB, free: 13.09 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003245/0.3539, allocations: 149 kB / 1.312 GB, free: 12.92 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.3539, allocations: 0 / 1.312 GB, free: 12.92 MB / 1.014 GB
Notification: Performance of matching and sorting (n=12): time 0.000579/0.3545, allocations: 189.4 kB / 1.312 GB, free: 12.73 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/0.3545, allocations: 85.05 kB / 1.312 GB, free: 12.63 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.3547, allocations: 162.3 kB / 1.312 GB, free: 12.46 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.3547, allocations: 29.7 kB / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.3548, allocations: 112.3 kB / 1.312 GB, free: 12.31 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 4.401e-05/0.3549, allocations: 31.8 kB / 1.312 GB, free: 12.28 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-05/0.3549, allocations: 29.72 kB / 1.312 GB, free: 12.24 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001784/0.3551, allocations: 338.8 kB / 1.313 GB, free: 11.9 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.3552, allocations: 35.97 kB / 1.313 GB, free: 11.87 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.3554, allocations: 114.3 kB / 1.313 GB, free: 11.72 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.3557, allocations: 147.5 kB / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3557, allocations: 0 / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003781/0.3561, allocations: 169.5 kB / 1.313 GB, free: 11.38 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3561, allocations: 4 kB / 1.313 GB, free: 11.37 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3561, allocations: 4.109 kB / 1.313 GB, free: 11.37 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3562, allocations: 3.938 kB / 1.313 GB, free: 11.36 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.3563, allocations: 19.92 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.3563, allocations: 4 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.3564, allocations: 23.92 kB / 1.313 GB, free: 11.32 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.3564, allocations: 8.531 kB / 1.313 GB, free: 11.31 MB / 1.014 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.0001442/0.3565, allocations: 143 kB / 1.313 GB, free: 11.16 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.3566, allocations: 15.91 kB / 1.313 GB, free: 11.14 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.225e-05/0.3566, allocations: 17.41 kB / 1.313 GB, free: 11.12 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3566, allocations: 7.938 kB / 1.313 GB, free: 11.12 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.3566, allocations: 3.984 kB / 1.313 GB, free: 11.11 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3566, allocations: 3.938 kB / 1.313 GB, free: 11.11 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007611/0.3574, allocations: 0.4967 MB / 1.314 GB, free: 10.56 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3574, allocations: 0 / 1.314 GB, free: 10.56 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.218e-05/0.3575, allocations: 11.98 kB / 1.314 GB, free: 10.55 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.3575, allocations: 7.938 kB / 1.314 GB, free: 10.54 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.3575, allocations: 7.984 kB / 1.314 GB, free: 10.54 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3575, allocations: 0 / 1.314 GB, free: 10.54 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3575, allocations: 0 / 1.314 GB, free: 10.54 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004449/0.3579, allocations: 326.5 kB / 1.314 GB, free: 10.2 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.923e-05/0.358, allocations: 11.91 kB / 1.314 GB, free: 10.19 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.358, allocations: 7.938 kB / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.3582, allocations: 15.97 kB / 1.314 GB, free: 10.16 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.3582, allocations: 16.27 kB / 1.314 GB, free: 10.15 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-05/0.3582, allocations: 8 kB / 1.314 GB, free: 10.14 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 9.717e-05/0.3583, allocations: 124.2 kB / 1.314 GB, free: 10.02 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.3583, allocations: 0 / 1.314 GB, free: 10.02 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003453/0.3587, allocations: 39.94 kB / 1.314 GB, free: 9.98 MB / 1.014 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.000502/0.3592, allocations: 214 kB / 1.315 GB, free: 9.809 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003588/0.3595, allocations: 103.8 kB / 1.315 GB, free: 9.707 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3596, allocations: 7.922 kB / 1.315 GB, free: 9.699 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.3597, allocations: 51.91 kB / 1.315 GB, free: 9.648 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.3601, allocations: 16.55 kB / 1.315 GB, free: 9.633 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005155/0.3606, allocations: 259.3 kB / 1.315 GB, free: 9.352 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.361, allocations: 0.7119 MB / 1.316 GB, free: 8.613 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 7.108e-05/0.3611, allocations: 20.47 kB / 1.316 GB, free: 8.594 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.368e-05/0.3612, allocations: 19.44 kB / 1.316 GB, free: 8.574 MB / 1.014 GB
Notification: Performance of SimCode: time 5.21e-07/0.3612, allocations: 0 / 1.316 GB, free: 8.574 MB / 1.014 GB
Notification: Performance of Templates: time 0.00601/0.3672, allocations: 1.838 MB / 1.318 GB, free: 6.75 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.791873658075929]