Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001663/0.001663, allocations: 114.5 kB / 18.88 MB, free: 3.062 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.002015/0.002015, allocations: 192 kB / 22.17 MB, free: 5.656 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.44/1.44, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.755/2.755, allocations: 476.7 MB / 0.7645 GB, free: 10.09 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_11_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_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 67.89 kB / 1.109 GB, free: 6.551 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8211/0.8232, allocations: 168.7 MB / 1.274 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003359/0.8265, allocations: 1.67 MB / 1.276 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001136/0.8277, allocations: 0.551 MB / 1.276 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.8278, allocations: 4 kB / 1.276 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002276/0.828, allocations: 23.73 kB / 1.276 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003345/0.8283, allocations: 71.59 kB / 1.276 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.8285, allocations: 67.92 kB / 1.276 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.8288, allocations: 139.4 kB / 1.276 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.8289, allocations: 33.42 kB / 1.277 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.8291, allocations: 51.84 kB / 1.277 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.8292, allocations: 71.61 kB / 1.277 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.8293, allocations: 8 kB / 1.277 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.493e-05/0.8293, allocations: 24 kB / 1.277 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.8294, allocations: 47.83 kB / 1.277 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.241e-05/0.8295, allocations: 59.59 kB / 1.277 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002646/0.8298, allocations: 153.9 kB / 1.277 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.8298, allocations: 0 / 1.277 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8298, allocations: 0 / 1.277 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.8298, allocations: 0 / 1.277 GB, free: 1.453 MB / 0.9669 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.0007369/0.8305, allocations: 470.5 kB / 1.277 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.8306, allocations: 12.03 kB / 1.277 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.8306, allocations: 20.8 kB / 1.277 GB, free: 0.9141 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003974/0.831, allocations: 248.9 kB / 1.278 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-06/0.831, allocations: 384 / 1.278 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.8311, allocations: 4.375 kB / 1.278 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.8314, allocations: 113.9 kB / 1.278 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.8314, allocations: 0 / 1.278 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.8314, allocations: 0 / 1.278 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.8314, allocations: 4 kB / 1.278 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.8317, allocations: 67.94 kB / 1.278 GB, free: 448 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007344/0.8324, allocations: 380.5 kB / 1.278 GB, free: 16 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.8326, allocations: 42.53 kB / 1.278 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.8327, allocations: 32.84 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.8327, allocations: 4 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002736/0.833, allocations: 89.09 kB / 1.278 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.833, allocations: 0 / 1.278 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004946/0.8335, allocations: 125.4 kB / 1.278 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.812e-05/0.8336, allocations: 85.05 kB / 1.279 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002987/0.8339, allocations: 257 kB / 1.279 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.8339, allocations: 25.7 kB / 1.279 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.834, allocations: 128 kB / 1.279 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.834, allocations: 15.92 kB / 1.279 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.8341, allocations: 17.72 kB / 1.279 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.8342, allocations: 326.8 kB / 1.279 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.8343, allocations: 27.97 kB / 1.279 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.8345, allocations: 47.41 kB / 1.279 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.8347, allocations: 66.5 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.8347, allocations: 0 / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002967/0.835, allocations: 113.4 kB / 1.28 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.835, allocations: 8 kB / 1.28 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.835, allocations: 0 / 1.28 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.835, allocations: 3.938 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.8352, allocations: 15.97 kB / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.8352, allocations: 0 / 1.28 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.074e-05/0.8353, allocations: 15.94 kB / 1.28 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.8353, allocations: 3.984 kB / 1.28 GB, free: 14.48 MB / 0.9825 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.0001199/0.8354, allocations: 129.8 kB / 1.28 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.732e-05/0.8354, allocations: 19.89 kB / 1.28 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.252e-05/0.8355, allocations: 21.25 kB / 1.28 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.8355, allocations: 3.938 kB / 1.28 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.8355, allocations: 0 / 1.28 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.8355, allocations: 0 / 1.28 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002369/0.8357, allocations: 221.5 kB / 1.28 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8357, allocations: 4 kB / 1.28 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.501e-05/0.8358, allocations: 11.92 kB / 1.28 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.8358, allocations: 4 kB / 1.28 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.8358, allocations: 8 kB / 1.28 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.8358, allocations: 3.938 kB / 1.28 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.8358, allocations: 0 / 1.28 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.8362, allocations: 117 kB / 1.28 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.88e-05/0.8362, allocations: 93 kB / 1.28 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.8363, allocations: 0 / 1.28 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.523e-05/0.8364, allocations: 23.92 kB / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.8364, allocations: 0 / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.8364, allocations: 4 kB / 1.28 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002014/0.8366, allocations: 192.5 kB / 1.28 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.8366, allocations: 0 / 1.28 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002296/0.8369, allocations: 19.95 kB / 1.28 GB, free: 13.52 MB / 0.9825 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.0002893/0.8371, allocations: 129.7 kB / 1.281 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003211/0.8375, allocations: 56.27 kB / 1.281 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.8375, allocations: 0 / 1.281 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.8376, allocations: 28.16 kB / 1.281 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.8379, allocations: 51.97 kB / 1.281 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006366/0.8385, allocations: 295.8 kB / 1.281 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.8389, allocations: 0.7197 MB / 1.282 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.704e-05/0.839, allocations: 20.48 kB / 1.282 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.816e-05/0.839, allocations: 19.38 kB / 1.282 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of SimCode: time 4.41e-07/0.839, allocations: 0 / 1.282 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of Templates: time 0.005382/0.8444, allocations: 1.773 MB / 1.283 GB, free: 10.4 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.490895655937493]