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.00103/0.00103, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009402/0.0009403, allocations: 191.8 kB / 16.25 MB, free: 6.629 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.127/1.127, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.5/1.5, allocations: 292.2 MB / 0.5485 GB, free: 13.66 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.001174/0.001174, allocations: 65.56 kB / 0.671 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1686, allocations: 114.6 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002972/0.1716, allocations: 1.706 MB / 0.7845 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008458/0.1725, allocations: 0.5854 MB / 0.7851 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.4e-05/0.1726, allocations: 8 kB / 0.7851 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.1728, allocations: 19.86 kB / 0.7851 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002086/0.173, allocations: 55.75 kB / 0.7852 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001431/0.1731, allocations: 51.94 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.1733, allocations: 139.5 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1735, allocations: 41.48 kB / 0.7854 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.1736, allocations: 55.78 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.842e-05/0.1737, allocations: 63.69 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.1737, allocations: 8 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.341e-05/0.1738, allocations: 27.94 kB / 0.7855 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.938e-05/0.1738, allocations: 39.89 kB / 0.7856 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.675e-05/0.1739, allocations: 59.55 kB / 0.7856 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.1741, allocations: 147.7 kB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1741, allocations: 0 / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1741, allocations: 0 / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.738e-06/0.1741, allocations: 0 / 0.7858 GB, free: 10.89 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.0005334/0.1746, allocations: 470.6 kB / 0.7862 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.878e-05/0.1747, allocations: 8.031 kB / 0.7862 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.1747, allocations: 24.75 kB / 0.7862 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.1749, allocations: 232.8 kB / 0.7865 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.175, allocations: 8.375 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.175, allocations: 4.375 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.1752, allocations: 110 kB / 0.7866 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.1753, allocations: 7.922 kB / 0.7866 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.1753, allocations: 8 kB / 0.7866 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.1753, allocations: 3.938 kB / 0.7866 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.1755, allocations: 59.94 kB / 0.7867 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005018/0.176, allocations: 388.4 kB / 0.787 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.1761, allocations: 34.55 kB / 0.7871 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.763e-05/0.1762, allocations: 36.89 kB / 0.7871 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.145e-05/0.1763, allocations: 0 / 0.7871 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.1765, allocations: 97.08 kB / 0.7872 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1765, allocations: 3.938 kB / 0.7872 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003727/0.1769, allocations: 121.4 kB / 0.7873 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.1769, allocations: 77.11 kB / 0.7874 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.1772, allocations: 253 kB / 0.7876 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.1772, allocations: 29.7 kB / 0.7877 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.624e-05/0.1772, allocations: 132 kB / 0.7878 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.1773, allocations: 11.89 kB / 0.7878 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.1773, allocations: 17.72 kB / 0.7878 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.123e-05/0.1774, allocations: 330.8 kB / 0.7881 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.424e-05/0.1775, allocations: 19.98 kB / 0.7881 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.1776, allocations: 47.41 kB / 0.7882 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.1778, allocations: 74.48 kB / 0.7883 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1778, allocations: 0 / 0.7883 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002429/0.1781, allocations: 101.4 kB / 0.7884 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.1781, allocations: 8.094 kB / 0.7884 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1781, allocations: 4 kB / 0.7884 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.1781, allocations: 3.938 kB / 0.7884 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.55e-05/0.1782, allocations: 11.98 kB / 0.7884 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1782, allocations: 11.88 kB / 0.7884 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.343e-05/0.1783, allocations: 11.89 kB / 0.7884 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.1783, allocations: 4 kB / 0.7884 GB, free: 7.914 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.74e-05/0.1784, allocations: 125.8 kB / 0.7885 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.1785, allocations: 19.81 kB / 0.7886 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.077e-05/0.1785, allocations: 21.23 kB / 0.7886 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1785, allocations: 3.938 kB / 0.7886 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.1785, allocations: 0 / 0.7886 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.1785, allocations: 0 / 0.7886 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.1787, allocations: 217.5 kB / 0.7888 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1787, allocations: 0 / 0.7888 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.621e-05/0.1787, allocations: 12.27 kB / 0.7888 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1788, allocations: 0 / 0.7888 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.1788, allocations: 4 kB / 0.7888 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1788, allocations: 3.938 kB / 0.7888 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1788, allocations: 8 kB / 0.7888 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.179, allocations: 128.8 kB / 0.7889 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.262e-05/0.1791, allocations: 92.86 kB / 0.789 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.1791, allocations: 0 / 0.789 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.844e-05/0.1792, allocations: 15.92 kB / 0.789 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.265e-05/0.1792, allocations: 8 kB / 0.789 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.1793, allocations: 7.984 kB / 0.7891 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000143/0.1794, allocations: 184.5 kB / 0.7892 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1794, allocations: 0 / 0.7892 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002067/0.1796, allocations: 31.89 kB / 0.7893 GB, free: 6.957 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 (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.0001774/0.1798, allocations: 112.7 kB / 0.7894 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002456/0.1801, allocations: 59.88 kB / 0.7894 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1801, allocations: 0 / 0.7894 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.883e-05/0.1802, allocations: 27.97 kB / 0.7894 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.1804, allocations: 46.38 kB / 0.7895 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004388/0.1809, allocations: 331.4 kB / 0.7898 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.1811, allocations: 0.7233 MB / 0.7905 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.028e-05/0.1812, allocations: 20.48 kB / 0.7905 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.351e-05/0.1812, allocations: 15.44 kB / 0.7906 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.1812, allocations: 0 / 0.7906 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of Templates: time 0.003804/0.1851, allocations: 1.661 MB / 0.7922 GB, free: 3.949 MB / 0.6075 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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)