Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001085/0.001085, allocations: 106.9 kB / 16.35 MB, free: 5.879 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.001061/0.001061, allocations: 191 kB / 17.29 MB, free: 5.516 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.281/1.281, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.758/1.758, allocations: 292.3 MB / 0.5496 GB, free: 17.47 MB / 462.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.00141/0.00141, allocations: 67.89 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2206, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003526/0.2242, allocations: 1.64 MB / 0.7864 GB, free: 1.523 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.2253, allocations: 0.5893 MB / 0.7869 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.2254, allocations: 0 / 0.7869 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002034/0.2256, allocations: 27.73 kB / 0.787 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002869/0.2259, allocations: 59.73 kB / 0.787 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001767/0.2261, allocations: 71.84 kB / 0.7871 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.2263, allocations: 131.5 kB / 0.7872 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.2265, allocations: 49.45 kB / 0.7873 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.2266, allocations: 51.78 kB / 0.7873 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.2267, allocations: 63.69 kB / 0.7874 GB, free: 484 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.2268, allocations: 8 kB / 0.7874 GB, free: 476 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.27e-05/0.2268, allocations: 27.94 kB / 0.7874 GB, free: 448 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.126e-05/0.2269, allocations: 51.81 kB / 0.7875 GB, free: 396 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.336e-05/0.227, allocations: 55.61 kB / 0.7875 GB, free: 340 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.2272, allocations: 143.4 kB / 0.7877 GB, free: 196 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2272, allocations: 7.984 kB / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2272, allocations: 0 / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.2272, allocations: 4 kB / 0.7877 GB, free: 184 kB / 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.3518/0.579, allocations: 460.2 kB / 0.7881 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.5791, allocations: 10.16 kB / 0.7881 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.074e-05/0.5792, allocations: 17.22 kB / 0.7881 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.5794, allocations: 232.6 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.5794, allocations: 3.25 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.5795, allocations: 6.5 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.5797, allocations: 106.5 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.5798, allocations: 0 / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.5798, allocations: 9.031 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.5798, allocations: 3.938 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.58, allocations: 67.53 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.5805, allocations: 384.6 kB / 0.7889 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.5807, allocations: 39.36 kB / 0.7889 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.241e-05/0.5808, allocations: 30.75 kB / 0.789 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.5808, allocations: 0 / 0.789 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.5811, allocations: 99.78 kB / 0.7891 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.673e-06/0.5811, allocations: 2 kB / 0.7891 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003788/0.5815, allocations: 118 kB / 0.7892 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.534e-05/0.5815, allocations: 85.52 kB / 0.7893 GB, free: 48.03 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.5817, allocations: 251.1 kB / 0.7895 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.5817, allocations: 28.48 kB / 0.7895 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/0.5818, allocations: 133.1 kB / 0.7897 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.5818, allocations: 7.953 kB / 0.7897 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.5818, allocations: 22.22 kB / 0.7897 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.464e-05/0.5819, allocations: 323.5 kB / 0.79 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.582, allocations: 24.72 kB / 0.79 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.5821, allocations: 50.19 kB / 0.7901 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.5823, allocations: 73.8 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5823, allocations: 2.688 kB / 0.7901 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002326/0.5826, allocations: 98.47 kB / 0.7902 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.5826, allocations: 8.297 kB / 0.7902 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.5826, allocations: 0 / 0.7902 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.5826, allocations: 5.531 kB / 0.7902 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.5827, allocations: 15.61 kB / 0.7903 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.5827, allocations: 7.312 kB / 0.7903 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.911e-05/0.5828, allocations: 18.14 kB / 0.7903 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.5829, allocations: 2.625 kB / 0.7903 GB, free: 47.38 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 7.307e-05/0.5829, allocations: 131.1 kB / 0.7904 GB, free: 47.27 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.53e-05/0.583, allocations: 18.16 kB / 0.7904 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.583, allocations: 15.3 kB / 0.7904 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.583, allocations: 3.562 kB / 0.7905 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.583, allocations: 3.938 kB / 0.7905 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.583, allocations: 2.625 kB / 0.7905 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.5831, allocations: 209.5 kB / 0.7907 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5832, allocations: 7.516 kB / 0.7907 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.902e-05/0.5832, allocations: 8.484 kB / 0.7907 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.5832, allocations: 3.594 kB / 0.7907 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.5833, allocations: 0 / 0.7907 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5833, allocations: 1.062 kB / 0.7907 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5833, allocations: 5.219 kB / 0.7907 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.5835, allocations: 122.2 kB / 0.7908 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.879e-05/0.5835, allocations: 94.45 kB / 0.7909 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.5836, allocations: 0 / 0.7909 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.622e-05/0.5837, allocations: 11.7 kB / 0.7909 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.5837, allocations: 12.98 kB / 0.7909 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.5838, allocations: 4.219 kB / 0.7909 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001344/0.5839, allocations: 192.4 kB / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5839, allocations: 0 / 0.7911 GB, free: 46.8 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002148/0.5841, allocations: 25.84 kB / 0.7911 GB, free: 46.8 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.0001825/0.5843, allocations: 119 kB / 0.7912 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000282/0.5846, allocations: 61.05 kB / 0.7913 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.5846, allocations: 0 / 0.7913 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.5847, allocations: 25.78 kB / 0.7913 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.585, allocations: 46.94 kB / 0.7914 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004101/0.5854, allocations: 282.2 kB / 0.7916 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.5856, allocations: 0.7214 MB / 0.7923 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.287e-05/0.5857, allocations: 17.88 kB / 0.7924 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.351e-05/0.5857, allocations: 26.5 kB / 0.7924 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.5857, allocations: 0 / 0.7924 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of Templates: time 0.004244/0.59, allocations: 1.749 MB / 0.7941 GB, free: 45.75 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)