Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005291/0.005291, allocations: 102.8 kB / 15.73 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001256, allocations: 190 kB / 16.67 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.1 MB / 222.6 MB, free: 4.367 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.364/1.364, allocations: 251.7 MB / 0.5094 GB, free: 3.02 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 73.78 kB / 0.7258 GB, free: 9.07 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1776, allocations: 104.7 MB / 0.828 GB, free: 260 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002558/0.1802, allocations: 1.636 MB / 0.8296 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009453/0.1812, allocations: 0.593 MB / 0.8302 GB, free: 14 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.859e-05/0.1812, allocations: 4 kB / 0.8302 GB, free: 14 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001682/0.1814, allocations: 23.73 kB / 0.8302 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002377/0.1817, allocations: 59.73 kB / 0.8303 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001391/0.1818, allocations: 71.84 kB / 0.8303 GB, free: 13.85 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.182, allocations: 139.5 kB / 0.8305 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.1821, allocations: 53.33 kB / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.1822, allocations: 51.78 kB / 0.8306 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1824, allocations: 59.75 kB / 0.8306 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.1824, allocations: 12 kB / 0.8306 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 5.194e-05/0.1825, allocations: 27.92 kB / 0.8307 GB, free: 13.51 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.1826, allocations: 47.83 kB / 0.8307 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.491e-05/0.1826, allocations: 51.61 kB / 0.8308 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001893/0.1828, allocations: 147.4 kB / 0.8309 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.1828, allocations: 0 / 0.8309 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of FrontEnd: time 7.31e-07/0.1828, allocations: 0 / 0.8309 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.1828, allocations: 0 / 0.8309 GB, free: 13.27 MB / 0.6544 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.0005692/0.1834, allocations: 481.2 kB / 0.8314 GB, free: 12.75 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.1835, allocations: 8.031 kB / 0.8314 GB, free: 12.74 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.803e-05/0.1835, allocations: 20.66 kB / 0.8314 GB, free: 12.72 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.1838, allocations: 236.8 kB / 0.8316 GB, free: 12.45 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.1838, allocations: 12.31 kB / 0.8316 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.1838, allocations: 4.375 kB / 0.8316 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.1841, allocations: 117.9 kB / 0.8317 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.1841, allocations: 0 / 0.8317 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.1841, allocations: 0 / 0.8317 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.1841, allocations: 0 / 0.8317 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.1843, allocations: 66.69 kB / 0.8318 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.1848, allocations: 380.5 kB / 0.8322 GB, free: 11.83 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001237/0.185, allocations: 42.55 kB / 0.8322 GB, free: 11.78 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.862e-05/0.1851, allocations: 24.89 kB / 0.8322 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.1851, allocations: 0 / 0.8322 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.1853, allocations: 105 kB / 0.8323 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.1853, allocations: 0 / 0.8323 GB, free: 11.63 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003873/0.1857, allocations: 117.4 kB / 0.8325 GB, free: 11.51 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.1858, allocations: 77.11 kB / 0.8325 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.186, allocations: 264.8 kB / 0.8328 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.186, allocations: 29.7 kB / 0.8328 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.208e-05/0.1861, allocations: 128.1 kB / 0.8329 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.1861, allocations: 7.812 kB / 0.8329 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.189e-05/0.1861, allocations: 21.66 kB / 0.833 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1862, allocations: 326.8 kB / 0.8333 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.1864, allocations: 19.97 kB / 0.8333 GB, free: 10.6 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.1865, allocations: 51.41 kB / 0.8333 GB, free: 10.54 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.1867, allocations: 66.52 kB / 0.8334 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1867, allocations: 8.031 kB / 0.8334 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002465/0.1869, allocations: 105.3 kB / 0.8335 GB, free: 10.35 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.187, allocations: 7.938 kB / 0.8335 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.187, allocations: 0 / 0.8335 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.187, allocations: 7.938 kB / 0.8335 GB, free: 10.33 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.1871, allocations: 15.98 kB / 0.8335 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1871, allocations: 96 / 0.8335 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.404e-05/0.1872, allocations: 23.86 kB / 0.8336 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.1872, allocations: 288 / 0.8336 GB, free: 10.29 MB / 0.6544 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 8.437e-05/0.1873, allocations: 129.8 kB / 0.8337 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/0.1873, allocations: 19.8 kB / 0.8337 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.1874, allocations: 13.25 kB / 0.8337 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1874, allocations: 7.922 kB / 0.8337 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.1874, allocations: 0 / 0.8337 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1874, allocations: 4 kB / 0.8337 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.1875, allocations: 221.6 kB / 0.8339 GB, free: 9.844 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1876, allocations: 0 / 0.8339 GB, free: 9.844 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.975e-05/0.1876, allocations: 11.98 kB / 0.834 GB, free: 9.832 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1876, allocations: 0 / 0.834 GB, free: 9.832 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.1877, allocations: 0 / 0.834 GB, free: 9.832 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.1877, allocations: 3.938 kB / 0.834 GB, free: 9.828 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1877, allocations: 0 / 0.834 GB, free: 9.828 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002581/0.1879, allocations: 132.7 kB / 0.8341 GB, free: 9.68 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.188, allocations: 88.92 kB / 0.8342 GB, free: 9.574 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.188, allocations: 4 kB / 0.8342 GB, free: 9.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.724e-05/0.1881, allocations: 11.92 kB / 0.8342 GB, free: 9.559 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.1881, allocations: 8 kB / 0.8342 GB, free: 9.551 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.1882, allocations: 7.984 kB / 0.8342 GB, free: 9.543 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001429/0.1883, allocations: 184.5 kB / 0.8344 GB, free: 9.367 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1883, allocations: 0 / 0.8344 GB, free: 9.367 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0001989/0.1885, allocations: 24 kB / 0.8344 GB, free: 9.344 MB / 0.6544 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.000191/0.1887, allocations: 114.4 kB / 0.8345 GB, free: 9.227 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002751/0.189, allocations: 63.88 kB / 0.8346 GB, free: 9.164 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.189, allocations: 4 kB / 0.8346 GB, free: 9.16 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.1891, allocations: 27.97 kB / 0.8346 GB, free: 9.133 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.1894, allocations: 43.17 kB / 0.8346 GB, free: 9.094 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.1899, allocations: 284.1 kB / 0.8349 GB, free: 8.789 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.1901, allocations: 0.7275 MB / 0.8356 GB, free: 8.035 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.819e-05/0.1902, allocations: 20.61 kB / 0.8356 GB, free: 8.016 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.1902, allocations: 19.38 kB / 0.8357 GB, free: 8 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.1902, allocations: 0 / 0.8357 GB, free: 8 MB / 0.6544 GB Notification: Performance of Templates: time 0.004283/0.1945, allocations: 1.776 MB / 0.8374 GB, free: 6.254 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)