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.001789/0.001789, allocations: 105.8 kB / 18.84 MB, free: 3.023 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.002041/0.002041, allocations: 189 kB / 22.1 MB, free: 4.219 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.569/1.569, allocations: 225.6 MB / 250.8 MB, free: 2.898 MB / 190.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 2.897/2.897, allocations: 495.8 MB / 0.783 GB, free: 12.25 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.002077/0.002077, allocations: 59.91 kB / 1.137 GB, free: 10.2 MB / 0.8731 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.9447/0.9468, allocations: 173.6 MB / 1.307 GB, free: 0.9297 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002997/0.9498, allocations: 1.609 MB / 1.308 GB, free: 15.81 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.00146/0.9513, allocations: 0.7224 MB / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.754e-05/0.9513, allocations: 1.031 kB / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.9514, allocations: 19.5 kB / 1.309 GB, free: 15.31 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 5.669e-05/0.9515, allocations: 15.08 kB / 1.309 GB, free: 15.3 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.0004711/0.952, allocations: 108.6 kB / 1.309 GB, free: 15.25 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002141/0.9522, allocations: 142.1 kB / 1.309 GB, free: 15.18 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.9523, allocations: 20.45 kB / 1.309 GB, free: 15.17 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.9524, allocations: 59.06 kB / 1.309 GB, free: 15.14 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.9525, allocations: 65.42 kB / 1.309 GB, free: 15.11 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.9526, allocations: 10.5 kB / 1.309 GB, free: 15.11 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.9527, allocations: 52.88 kB / 1.309 GB, free: 15.09 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 8.994e-05/0.9528, allocations: 36.77 kB / 1.31 GB, free: 15.07 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 8.4e-05/0.9529, allocations: 62.53 kB / 1.31 GB, free: 15.03 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.9531, allocations: 162.4 kB / 1.31 GB, free: 14.97 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.9531, allocations: 0.6562 kB / 1.31 GB, free: 14.97 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.403e-06/0.9531, allocations: 0 / 1.31 GB, free: 14.97 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 5.691e-06/0.9531, allocations: 0 / 1.31 GB, free: 14.97 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.0009517/0.9541, allocations: 489.6 kB / 1.31 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.9541, allocations: 14.28 kB / 1.31 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.861e-05/0.9542, allocations: 17.48 kB / 1.31 GB, free: 14.53 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.9544, allocations: 161.7 kB / 1.31 GB, free: 14.38 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.9544, allocations: 8.25 kB / 1.31 GB, free: 14.37 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.9545, allocations: 7.734 kB / 1.31 GB, free: 14.37 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/0.9548, allocations: 132.5 kB / 1.311 GB, free: 14.3 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.9548, allocations: 0 / 1.311 GB, free: 14.3 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.9549, allocations: 9.656 kB / 1.311 GB, free: 14.29 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.9549, allocations: 2.156 kB / 1.311 GB, free: 14.29 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.9551, allocations: 66.06 kB / 1.311 GB, free: 14.28 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007112/0.9558, allocations: 436.4 kB / 1.311 GB, free: 13.91 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.9561, allocations: 75.69 kB / 1.311 GB, free: 13.86 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.9562, allocations: 43.81 kB / 1.311 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.9562, allocations: 11.03 kB / 1.311 GB, free: 13.82 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003134/0.9565, allocations: 142.4 kB / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.9565, allocations: 0 / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of matching and sorting (n=12): time 0.0006447/0.9572, allocations: 198.2 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.9572, allocations: 80.41 kB / 1.312 GB, free: 13.56 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.9574, allocations: 159.8 kB / 1.312 GB, free: 13.45 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 3.698e-05/0.9574, allocations: 30.19 kB / 1.312 GB, free: 13.41 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.863e-05/0.9575, allocations: 114.3 kB / 1.312 GB, free: 13.3 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 4.091e-05/0.9576, allocations: 27.03 kB / 1.312 GB, free: 13.29 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.759e-05/0.9576, allocations: 38.62 kB / 1.312 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001767/0.9578, allocations: 330.7 kB / 1.312 GB, free: 12.93 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.958, allocations: 37.47 kB / 1.312 GB, free: 12.93 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.9582, allocations: 120 kB / 1.312 GB, free: 12.81 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.9585, allocations: 147.1 kB / 1.312 GB, free: 12.71 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.9585, allocations: 5.062 kB / 1.312 GB, free: 12.7 MB / 1.014 GB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.000407/0.9589, allocations: 169.8 kB / 1.313 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.959, allocations: 6.812 kB / 1.313 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.959, allocations: 1.625 kB / 1.313 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.959, allocations: 7.75 kB / 1.313 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.9591, allocations: 14.86 kB / 1.313 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.9591, allocations: 4.031 kB / 1.313 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.9592, allocations: 23.44 kB / 1.313 GB, free: 12.61 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.9592, allocations: 5.438 kB / 1.313 GB, free: 12.61 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.0001467/0.9594, allocations: 144.2 kB / 1.313 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.342e-05/0.9594, allocations: 19.95 kB / 1.313 GB, free: 12.46 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.444e-05/0.9595, allocations: 20.16 kB / 1.313 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.9595, allocations: 1.406 kB / 1.313 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9595, allocations: 1.344 kB / 1.313 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.9595, allocations: 5.969 kB / 1.313 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000796/0.9603, allocations: 0.4989 MB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.9603, allocations: 1.5 kB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.03e-05/0.9604, allocations: 12.34 kB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.9604, allocations: 5.719 kB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.9604, allocations: 5.891 kB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.9604, allocations: 1.219 kB / 1.313 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.9604, allocations: 5.219 kB / 1.313 GB, free: 12.03 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004812/0.9609, allocations: 327.7 kB / 1.314 GB, free: 11.79 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.466e-05/0.9609, allocations: 17.38 kB / 1.314 GB, free: 11.77 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.9609, allocations: 5.938 kB / 1.314 GB, free: 11.77 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.9611, allocations: 22.53 kB / 1.314 GB, free: 11.76 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.9612, allocations: 9.953 kB / 1.314 GB, free: 11.76 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.593e-05/0.9612, allocations: 11.98 kB / 1.314 GB, free: 11.76 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0001022/0.9613, allocations: 118.5 kB / 1.314 GB, free: 11.67 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.9613, allocations: 0 / 1.314 GB, free: 11.67 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003814/0.9617, allocations: 39.77 kB / 1.314 GB, free: 11.66 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.0005805/0.9623, allocations: 220.3 kB / 1.314 GB, free: 11.53 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0004121/0.9627, allocations: 99.64 kB / 1.314 GB, free: 11.51 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.9627, allocations: 3.938 kB / 1.314 GB, free: 11.5 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.9629, allocations: 49.14 kB / 1.314 GB, free: 11.5 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000387/0.9632, allocations: 27.03 kB / 1.314 GB, free: 11.48 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005646/0.9638, allocations: 249.8 kB / 1.315 GB, free: 11.29 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.9642, allocations: 0.7104 MB / 1.315 GB, free: 10.6 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 8.176e-05/0.9643, allocations: 25.38 kB / 1.315 GB, free: 10.59 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.9643, allocations: 14.91 kB / 1.315 GB, free: 10.59 MB / 1.014 GB
Notification: Performance of SimCode: time 3.71e-07/0.9643, allocations: 192 / 1.315 GB, free: 10.59 MB / 1.014 GB
Notification: Performance of Templates: time 0.006183/0.9705, allocations: 1.839 MB / 1.317 GB, free: 9.758 MB / 1.014 GB
"
[Timeout remaining time 299]
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: 9.353171276859939]