Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.731/2.731, allocations: 287.3 MB / 302.3 MB, free: 8.395 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001719/0.001719, allocations: 182.4 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.207/2.207, allocations: 205.4 MB / 0.6295 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001523/0.001523, allocations: 100.2 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000797/0.0007972, allocations: 12.09 kB / 0.8656 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2796, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002139/0.2818, allocations: 1.328 MB / 0.9795 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.283, allocations: 0.5352 MB / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.212e-05/0.2831, allocations: 4 kB / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.2833, allocations: 27.78 kB / 0.98 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.2836, allocations: 63.84 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001889/0.2838, allocations: 47.94 kB / 0.9801 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001916/0.284, allocations: 91.75 kB / 0.9802 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.2842, allocations: 33.47 kB / 0.9803 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2843, allocations: 55.77 kB / 0.9803 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.532e-05/0.2844, allocations: 43.72 kB / 0.9804 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.2845, allocations: 0 / 0.9804 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.34e-05/0.2845, allocations: 11.98 kB / 0.9804 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.364e-05/0.2846, allocations: 39.89 kB / 0.9804 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.433e-05/0.2847, allocations: 41.64 kB / 0.9804 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001656/0.2849, allocations: 104 kB / 0.9805 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.2849, allocations: 0 / 0.9805 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2849, allocations: 0 / 0.9805 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.2849, allocations: 0 / 0.9805 GB, free: 25.94 MB / 0.6198 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.0006462/0.2855, allocations: 452.7 kB / 0.981 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2856, allocations: 16 kB / 0.981 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.968e-05/0.2857, allocations: 23.67 kB / 0.981 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.286, allocations: 227.7 kB / 0.9812 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.286, allocations: 4 kB / 0.9812 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.286, allocations: 12 kB / 0.9812 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.2864, allocations: 106.3 kB / 0.9813 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.2864, allocations: 0 / 0.9813 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.2865, allocations: 7.938 kB / 0.9814 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.2865, allocations: 0 / 0.9814 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003872/0.2869, allocations: 79.94 kB / 0.9814 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007554/0.2877, allocations: 396.4 kB / 0.9818 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.2879, allocations: 50.52 kB / 0.9819 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.2879, allocations: 3.938 kB / 0.9819 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003445/0.2883, allocations: 109.1 kB / 0.982 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.465e-06/0.2883, allocations: 0 / 0.982 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0006717/0.289, allocations: 141.4 kB / 0.9821 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.289, allocations: 77.11 kB / 0.9822 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.2893, allocations: 261 kB / 0.9824 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.2894, allocations: 29.69 kB / 0.9825 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.544e-05/0.2895, allocations: 131.9 kB / 0.9826 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.2895, allocations: 11.89 kB / 0.9826 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-06/0.2895, allocations: 0 / 0.9826 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.259e-05/0.2896, allocations: 334.8 kB / 0.9829 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.2898, allocations: 31.98 kB / 0.9829 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.29, allocations: 51.41 kB / 0.983 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.2902, allocations: 40 kB / 0.983 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2902, allocations: 0 / 0.983 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004534/0.2907, allocations: 121.4 kB / 0.9831 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.2907, allocations: 8 kB / 0.9831 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2907, allocations: 0 / 0.9831 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.2908, allocations: 0 / 0.9831 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.2909, allocations: 15.98 kB / 0.9832 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.291, allocations: 3.938 kB / 0.9832 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.2911, allocations: 20.05 kB / 0.9832 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.2912, allocations: 0 / 0.9832 GB, free: 22.99 MB / 0.6198 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.0001585/0.2913, allocations: 129.8 kB / 0.9833 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.2914, allocations: 23.67 kB / 0.9833 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.269e-05/0.2914, allocations: 21.23 kB / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2914, allocations: 0 / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2915, allocations: 0 / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2915, allocations: 4 kB / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.2916, allocations: 209.6 kB / 0.9836 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2917, allocations: 4 kB / 0.9836 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.2918, allocations: 11.98 kB / 0.9836 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.2918, allocations: 3.953 kB / 0.9836 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.2918, allocations: 7.984 kB / 0.9836 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.2919, allocations: 0 / 0.9836 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.2919, allocations: 4 kB / 0.9836 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004569/0.2923, allocations: 140.8 kB / 0.9837 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.694e-05/0.2924, allocations: 100.8 kB / 0.9838 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.2924, allocations: 7.953 kB / 0.9838 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.2926, allocations: 19.98 kB / 0.9838 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/0.2927, allocations: 0 / 0.9838 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/0.2927, allocations: 7.984 kB / 0.9839 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002082/0.2929, allocations: 184.5 kB / 0.984 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.4e-07/0.2929, allocations: 3.938 kB / 0.984 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003111/0.2933, allocations: 20 kB / 0.9841 GB, free: 22.01 MB / 0.6198 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.0002374/0.2935, allocations: 114.4 kB / 0.9842 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004684/0.294, allocations: 76.2 kB / 0.9842 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.294, allocations: 0 / 0.9842 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.2942, allocations: 35.97 kB / 0.9843 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/0.2946, allocations: 34 kB / 0.9843 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000682/0.2953, allocations: 314 kB / 0.9846 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.2955, allocations: 0.7277 MB / 0.9853 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000109/0.2956, allocations: 16.48 kB / 0.9853 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.2957, allocations: 15.44 kB / 0.9853 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of SimCode: time 8.62e-07/0.2957, allocations: 0 / 0.9853 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of Templates: time 0.006151/0.3019, allocations: 1.565 MB / 0.9869 GB, free: 19.09 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)