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.001047/0.001047, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001463/0.001463, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.938/1.938, allocations: 205.4 MB / 222.1 MB, free: 5.891 MB / 174.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.923/1.923, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005357/0.0005358, allocations: 18.34 kB / 0.6737 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2346, allocations: 116.3 MB / 0.7873 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002067/0.2367, allocations: 1.328 MB / 0.7886 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009324/0.2377, allocations: 0.5584 MB / 0.7891 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.666e-05/0.2378, allocations: 4 kB / 0.7891 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.2379, allocations: 23.84 kB / 0.7892 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.2382, allocations: 51.75 kB / 0.7892 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000143/0.2383, allocations: 51.94 kB / 0.7893 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001764/0.2385, allocations: 119.5 kB / 0.7894 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.2386, allocations: 37.47 kB / 0.7894 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.2388, allocations: 43.8 kB / 0.7894 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.2389, allocations: 47.75 kB / 0.7895 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.2389, allocations: 4 kB / 0.7895 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.39e-05/0.239, allocations: 16 kB / 0.7895 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.478e-05/0.2391, allocations: 35.83 kB / 0.7895 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.835e-05/0.2391, allocations: 45.64 kB / 0.7896 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.2393, allocations: 108 kB / 0.7897 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2393, allocations: 4 kB / 0.7897 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2393, allocations: 4 kB / 0.7897 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.2393, allocations: 0 / 0.7897 GB, free: 9.434 MB / 0.6075 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.0005478/0.2398, allocations: 446.5 kB / 0.7901 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2399, allocations: 12.03 kB / 0.7901 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.659e-05/0.24, allocations: 23.8 kB / 0.7902 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.2402, allocations: 223.6 kB / 0.7904 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.2402, allocations: 8 kB / 0.7904 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.2403, allocations: 4 kB / 0.7904 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.2405, allocations: 113.6 kB / 0.7905 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.2405, allocations: 0 / 0.7905 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.2406, allocations: 4 kB / 0.7905 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.2406, allocations: 8 kB / 0.7905 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.2408, allocations: 71.94 kB / 0.7906 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000602/0.2414, allocations: 400.4 kB / 0.791 GB, free: 8 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.2415, allocations: 46.55 kB / 0.791 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.2417, allocations: 36.89 kB / 0.791 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.2417, allocations: 3.953 kB / 0.791 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/0.242, allocations: 109 kB / 0.7911 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.242, allocations: 3.938 kB / 0.7911 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004175/0.2424, allocations: 141.4 kB / 0.7913 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.2425, allocations: 77.11 kB / 0.7914 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.2427, allocations: 249 kB / 0.7916 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.2427, allocations: 29.7 kB / 0.7916 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.6e-05/0.2428, allocations: 136 kB / 0.7917 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.615e-05/0.2428, allocations: 7.891 kB / 0.7918 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.2428, allocations: 0 / 0.7918 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.243, allocations: 326.8 kB / 0.7921 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.2431, allocations: 31.97 kB / 0.7921 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.2432, allocations: 63.34 kB / 0.7922 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.2434, allocations: 32.02 kB / 0.7922 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2434, allocations: 0 / 0.7922 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003218/0.2437, allocations: 125.4 kB / 0.7923 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2437, allocations: 4 kB / 0.7923 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2437, allocations: 3.984 kB / 0.7923 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.2437, allocations: 4 kB / 0.7923 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.2439, allocations: 11.98 kB / 0.7923 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.2439, allocations: 4 kB / 0.7923 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.221e-05/0.244, allocations: 19.92 kB / 0.7924 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.244, allocations: 4 kB / 0.7924 GB, free: 6.453 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.2441, allocations: 133.8 kB / 0.7925 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.2441, allocations: 23.98 kB / 0.7925 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.2442, allocations: 13.25 kB / 0.7925 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2442, allocations: 3.984 kB / 0.7925 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2442, allocations: 0 / 0.7925 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2442, allocations: 3.984 kB / 0.7925 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.2444, allocations: 217.5 kB / 0.7927 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.2444, allocations: 4 kB / 0.7927 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.892e-05/0.2445, allocations: 15.98 kB / 0.7928 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.2445, allocations: 0 / 0.7928 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.2445, allocations: 3.953 kB / 0.7928 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2445, allocations: 0 / 0.7928 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2445, allocations: 0 / 0.7928 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.2448, allocations: 132.9 kB / 0.7929 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.2449, allocations: 104.9 kB / 0.793 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.2449, allocations: 0 / 0.793 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.122e-05/0.245, allocations: 19.94 kB / 0.793 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.336e-05/0.245, allocations: 11.98 kB / 0.793 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.2451, allocations: 7.938 kB / 0.793 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001595/0.2452, allocations: 184.5 kB / 0.7932 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2452, allocations: 0 / 0.7932 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000219/0.2455, allocations: 31.84 kB / 0.7932 GB, free: 5.469 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002143/0.2457, allocations: 128.9 kB / 0.7934 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002632/0.246, allocations: 68.02 kB / 0.7934 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.246, allocations: 4 kB / 0.7934 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.2461, allocations: 31.91 kB / 0.7935 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.2464, allocations: 39.38 kB / 0.7935 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004967/0.2469, allocations: 318.2 kB / 0.7938 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.2472, allocations: 0.72 MB / 0.7945 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.652e-05/0.2472, allocations: 20.66 kB / 0.7945 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.2473, allocations: 15.44 kB / 0.7945 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2473, allocations: 0 / 0.7945 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of Templates: time 0.004298/0.2516, allocations: 1.548 MB / 0.796 GB, free: 2.551 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) Environment - environmentSimulation: