Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.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.001425/0.001425, allocations: 112.7 kB / 18.94 MB, free: 2.93 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.001485/0.001485, allocations: 190 kB / 22.23 MB, free: 5.105 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.268/1.268, allocations: 225.6 MB / 251 MB, free: 13.02 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.786/2.786, allocations: 495.7 MB / 0.7831 GB, free: 33.44 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.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter")
translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 67.83 kB / 1.137 GB, free: 33.86 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2727, allocations: 173.6 MB / 1.307 GB, free: 1.973 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002948/0.2757, allocations: 1.676 MB / 1.309 GB, free: 292 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0008805/0.2766, allocations: 0.5534 MB / 1.309 GB, free: 15.73 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.239e-05/0.2766, allocations: 7.938 kB / 1.309 GB, free: 15.72 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.2768, allocations: 31.77 kB / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.277, allocations: 63.69 kB / 1.309 GB, free: 15.62 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0001358/0.2772, allocations: 63.84 kB / 1.309 GB, free: 15.56 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001771/0.2773, allocations: 131.6 kB / 1.309 GB, free: 15.43 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.2775, allocations: 37.55 kB / 1.309 GB, free: 15.39 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2776, allocations: 59.77 kB / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.2777, allocations: 63.7 kB / 1.31 GB, free: 15.27 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.2777, allocations: 8 kB / 1.31 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 6.335e-05/0.2778, allocations: 35.97 kB / 1.31 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 9.155e-05/0.2779, allocations: 39.84 kB / 1.31 GB, free: 15.19 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.514e-05/0.2779, allocations: 59.59 kB / 1.31 GB, free: 15.13 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.2782, allocations: 147.2 kB / 1.31 GB, free: 14.98 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2782, allocations: 0 / 1.31 GB, free: 14.98 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.523e-06/0.2782, allocations: 0 / 1.31 GB, free: 14.98 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 8.726e-06/0.2782, allocations: 0 / 1.31 GB, free: 14.98 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: 13
 * Number of variables: 13
Notification: Performance of Generate backend data structure: time 0.0007523/0.2789, allocations: 393.4 kB / 1.31 GB, free: 14.57 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.279, allocations: 16.03 kB / 1.31 GB, free: 14.55 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.821e-05/0.279, allocations: 24.73 kB / 1.31 GB, free: 14.53 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.2794, allocations: 183 kB / 1.31 GB, free: 14.32 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.2794, allocations: 4.375 kB / 1.31 GB, free: 14.32 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.2795, allocations: 4.375 kB / 1.31 GB, free: 14.32 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.2798, allocations: 110 kB / 1.311 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2798, allocations: 4 kB / 1.311 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.2798, allocations: 0 / 1.311 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.2798, allocations: 7.984 kB / 1.311 GB, free: 14.19 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.2801, allocations: 67.88 kB / 1.311 GB, free: 14.12 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.2807, allocations: 347.6 kB / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.2808, allocations: 46.48 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.2809, allocations: 24.89 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.281, allocations: 0 / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.2812, allocations: 105.1 kB / 1.311 GB, free: 13.54 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.2812, allocations: 0 / 1.311 GB, free: 13.54 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0004283/0.2816, allocations: 121.4 kB / 1.311 GB, free: 13.41 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.2817, allocations: 81.11 kB / 1.311 GB, free: 13.32 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.2819, allocations: 252.9 kB / 1.312 GB, free: 13.06 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.282, allocations: 33.7 kB / 1.312 GB, free: 13.02 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.377e-05/0.282, allocations: 128 kB / 1.312 GB, free: 12.89 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.2821, allocations: 3.953 kB / 1.312 GB, free: 12.89 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-05/0.2821, allocations: 21.7 kB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001419/0.2822, allocations: 326.8 kB / 1.312 GB, free: 12.54 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.2824, allocations: 23.97 kB / 1.312 GB, free: 12.51 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.2825, allocations: 55.41 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002153/0.2827, allocations: 66.47 kB / 1.312 GB, free: 12.37 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2827, allocations: 0 / 1.312 GB, free: 12.37 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002773/0.283, allocations: 109.5 kB / 1.312 GB, free: 12.26 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.283, allocations: 4 kB / 1.312 GB, free: 12.25 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.283, allocations: 4 kB / 1.312 GB, free: 12.25 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.283, allocations: 3.938 kB / 1.312 GB, free: 12.25 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2831, allocations: 11.98 kB / 1.312 GB, free: 12.23 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.2831, allocations: 0 / 1.312 GB, free: 12.23 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.631e-05/0.2832, allocations: 16.08 kB / 1.312 GB, free: 12.22 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.2832, allocations: 0 / 1.312 GB, free: 12.22 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 1 ($whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (3):
 * Single equations (assignments): 3
 * 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.000115/0.2833, allocations: 141.8 kB / 1.312 GB, free: 12.07 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.168e-05/0.2834, allocations: 19.86 kB / 1.312 GB, free: 12.05 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.45e-05/0.2834, allocations: 21.33 kB / 1.312 GB, free: 12.03 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2834, allocations: 3.938 kB / 1.312 GB, free: 12.03 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2834, allocations: 0 / 1.312 GB, free: 12.03 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-06/0.2834, allocations: 0 / 1.312 GB, free: 12.03 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.2836, allocations: 188.7 kB / 1.313 GB, free: 11.8 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2836, allocations: 11.94 kB / 1.313 GB, free: 11.79 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.614e-05/0.2836, allocations: 7.984 kB / 1.313 GB, free: 11.78 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2836, allocations: 4 kB / 1.313 GB, free: 11.78 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.2837, allocations: 0 / 1.313 GB, free: 11.78 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2837, allocations: 3.938 kB / 1.313 GB, free: 11.77 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2837, allocations: 0 / 1.313 GB, free: 11.77 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.284, allocations: 121 kB / 1.313 GB, free: 11.64 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.53e-05/0.284, allocations: 11.91 kB / 1.313 GB, free: 11.62 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.284, allocations: 0 / 1.313 GB, free: 11.62 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.4e-05/0.2841, allocations: 23.86 kB / 1.313 GB, free: 11.6 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.976e-05/0.2841, allocations: 3.984 kB / 1.313 GB, free: 11.6 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.2841, allocations: 4 kB / 1.313 GB, free: 11.59 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0001921/0.2843, allocations: 192.5 kB / 1.313 GB, free: 11.4 MB / 1.014 GB
Notification: Performance of sort global known variables: time 6e-08/0.2843, allocations: 0 / 1.313 GB, free: 11.4 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002162/0.2846, allocations: 27.89 kB / 1.313 GB, free: 11.38 MB / 1.014 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 1 ($whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (3):
 * Single equations (assignments): 3
 * 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 Backend phase and start with SimCode phase: time 0.0002124/0.2848, allocations: 128.7 kB / 1.313 GB, free: 11.25 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002978/0.2851, allocations: 60.12 kB / 1.313 GB, free: 11.19 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2851, allocations: 0 / 1.313 GB, free: 11.19 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.2852, allocations: 31.91 kB / 1.313 GB, free: 11.16 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.2854, allocations: 35.25 kB / 1.313 GB, free: 11.13 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000484/0.2859, allocations: 291.9 kB / 1.314 GB, free: 10.82 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.2863, allocations: 0.7237 MB / 1.314 GB, free: 10.07 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 7.075e-05/0.2863, allocations: 20.41 kB / 1.314 GB, free: 10.05 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.2864, allocations: 15.44 kB / 1.314 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of SimCode: time 2.81e-07/0.2864, allocations: 0 / 1.314 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of Templates: time 0.004785/0.2912, allocations: 1.794 MB / 1.316 GB, free: 8.258 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.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.623975842259824]