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.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.001534/0.001534, allocations: 110 kB / 18.93 MB, free: 2.945 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.001628/0.001628, allocations: 186.6 kB / 22.23 MB, free: 5.164 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.328/1.328, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 179]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.897/2.897, allocations: 0.4893 GB / 0.7884 GB, free: 33.13 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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_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: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 72 kB / 1.145 GB, free: 30.69 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2791, allocations: 174.9 MB / 1.316 GB, free: 9.711 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002668/0.2818, allocations: 1.601 MB / 1.318 GB, free: 8.102 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001243/0.283, allocations: 0.7284 MB / 1.318 GB, free: 7.367 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.42e-05/0.2831, allocations: 0 / 1.318 GB, free: 7.367 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.2832, allocations: 19.8 kB / 1.318 GB, free: 7.348 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 5.148e-05/0.2832, allocations: 15.8 kB / 1.318 GB, free: 7.332 MB / 1.014 GB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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.0004421/0.2836, allocations: 119.7 kB / 1.318 GB, free: 7.215 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001799/0.2838, allocations: 139.5 kB / 1.319 GB, free: 7.078 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.2839, allocations: 17.31 kB / 1.319 GB, free: 7.059 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.448e-05/0.284, allocations: 59.77 kB / 1.319 GB, free: 7 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 9.091e-05/0.2841, allocations: 71.67 kB / 1.319 GB, free: 6.93 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.2842, allocations: 12 kB / 1.319 GB, free: 6.918 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.2843, allocations: 43.97 kB / 1.319 GB, free: 6.875 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 5.66e-05/0.2843, allocations: 35.89 kB / 1.319 GB, free: 6.84 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.04e-05/0.2844, allocations: 55.67 kB / 1.319 GB, free: 6.785 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002368/0.2846, allocations: 175.3 kB / 1.319 GB, free: 6.613 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2846, allocations: 3.938 kB / 1.319 GB, free: 6.609 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.183e-06/0.2846, allocations: 4 kB / 1.319 GB, free: 6.605 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 8.997e-06/0.2847, allocations: 4 kB / 1.319 GB, free: 6.602 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.0008169/0.2855, allocations: 482.6 kB / 1.319 GB, free: 6.082 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.2855, allocations: 8.031 kB / 1.319 GB, free: 6.074 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.184e-05/0.2856, allocations: 16.89 kB / 1.319 GB, free: 6.059 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.2858, allocations: 158.2 kB / 1.32 GB, free: 5.879 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.2858, allocations: 8.375 kB / 1.32 GB, free: 5.871 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.2858, allocations: 8.375 kB / 1.32 GB, free: 5.863 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.2861, allocations: 131.6 kB / 1.32 GB, free: 5.723 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.2861, allocations: 4 kB / 1.32 GB, free: 5.719 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.2861, allocations: 4 kB / 1.32 GB, free: 5.715 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.2861, allocations: 4 kB / 1.32 GB, free: 5.711 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.2864, allocations: 67.94 kB / 1.32 GB, free: 5.645 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006222/0.287, allocations: 431.8 kB / 1.32 GB, free: 5.176 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.2872, allocations: 81.19 kB / 1.32 GB, free: 5.078 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.2873, allocations: 49.75 kB / 1.32 GB, free: 5.023 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.2874, allocations: 3.984 kB / 1.32 GB, free: 5.02 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.2876, allocations: 145 kB / 1.321 GB, free: 4.859 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.2876, allocations: 0 / 1.321 GB, free: 4.859 MB / 1.014 GB
Notification: Performance of matching and sorting (n=12): time 0.0005579/0.2882, allocations: 193.3 kB / 1.321 GB, free: 4.664 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.2882, allocations: 89.09 kB / 1.321 GB, free: 4.559 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.2884, allocations: 154.3 kB / 1.321 GB, free: 4.398 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.2884, allocations: 29.81 kB / 1.321 GB, free: 4.363 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 7.017e-05/0.2885, allocations: 120.2 kB / 1.321 GB, free: 4.238 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.849e-05/0.2885, allocations: 31.78 kB / 1.321 GB, free: 4.207 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.404e-05/0.2886, allocations: 29.72 kB / 1.321 GB, free: 4.172 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.000131/0.2887, allocations: 334.8 kB / 1.321 GB, free: 3.836 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.2888, allocations: 39.97 kB / 1.322 GB, free: 3.797 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.289, allocations: 118.2 kB / 1.322 GB, free: 3.645 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.2893, allocations: 147.5 kB / 1.322 GB, free: 3.473 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2893, allocations: 0 / 1.322 GB, free: 3.473 MB / 1.014 GB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003587/0.2897, allocations: 169.5 kB / 1.322 GB, free: 3.301 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2897, allocations: 8 kB / 1.322 GB, free: 3.293 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2897, allocations: 0 / 1.322 GB, free: 3.293 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.2897, allocations: 4 kB / 1.322 GB, free: 3.289 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.2898, allocations: 15.98 kB / 1.322 GB, free: 3.273 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.2898, allocations: 4 kB / 1.322 GB, free: 3.27 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.504e-05/0.2899, allocations: 15.92 kB / 1.322 GB, free: 3.254 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.2899, allocations: 11.94 kB / 1.322 GB, free: 3.242 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.0001182/0.2901, allocations: 146.6 kB / 1.322 GB, free: 3.09 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.2901, allocations: 15.91 kB / 1.322 GB, free: 3.074 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.672e-05/0.2901, allocations: 17.41 kB / 1.322 GB, free: 3.051 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2901, allocations: 3.984 kB / 1.322 GB, free: 3.047 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2901, allocations: 0 / 1.322 GB, free: 3.047 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.2901, allocations: 7.938 kB / 1.322 GB, free: 3.039 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.2908, allocations: 0.4967 MB / 1.323 GB, free: 2.492 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2908, allocations: 480 / 1.323 GB, free: 2.492 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.067e-05/0.2909, allocations: 11.98 kB / 1.323 GB, free: 2.48 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.2909, allocations: 3.938 kB / 1.323 GB, free: 2.477 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.2909, allocations: 11.98 kB / 1.323 GB, free: 2.465 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2909, allocations: 3.938 kB / 1.323 GB, free: 2.461 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2909, allocations: 3.938 kB / 1.323 GB, free: 2.457 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004123/0.2914, allocations: 318.6 kB / 1.323 GB, free: 2.129 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.2914, allocations: 15.91 kB / 1.323 GB, free: 2.113 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.2914, allocations: 3.938 kB / 1.323 GB, free: 2.109 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.2916, allocations: 19.97 kB / 1.323 GB, free: 2.09 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.2916, allocations: 11.98 kB / 1.323 GB, free: 2.078 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.2917, allocations: 8 kB / 1.323 GB, free: 2.07 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 8.765e-05/0.2917, allocations: 128.2 kB / 1.323 GB, free: 1.945 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.2917, allocations: 0 / 1.323 GB, free: 1.945 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003165/0.2921, allocations: 35.94 kB / 1.323 GB, free: 1.91 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.0004473/0.2925, allocations: 205.9 kB / 1.323 GB, free: 1.742 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003633/0.2929, allocations: 115.9 kB / 1.324 GB, free: 1.629 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2929, allocations: 0 / 1.324 GB, free: 1.629 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.293, allocations: 43.97 kB / 1.324 GB, free: 1.586 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.2934, allocations: 25.94 kB / 1.324 GB, free: 1.562 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000443/0.2938, allocations: 267.8 kB / 1.324 GB, free: 1.273 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.2941, allocations: 0.7119 MB / 1.325 GB, free: 0.5352 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 6.017e-05/0.2942, allocations: 20.66 kB / 1.325 GB, free: 0.5156 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.166e-05/0.2942, allocations: 15.44 kB / 1.325 GB, free: 0.5 MB / 1.014 GB
Notification: Performance of SimCode: time 2.91e-07/0.2942, allocations: 7.938 kB / 1.325 GB, free: 0.4922 MB / 1.014 GB
Notification: Performance of Templates: time 0.005121/0.2993, allocations: 1.822 MB / 1.326 GB, free: 14.68 MB / 1.029 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/jenkins/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: 7.90905911847949]