Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001061/0.001061, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001077/0.001077, allocations: 194.9 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 275 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9609/0.9609, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 93.19 kB / 0.5947 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1761/0.1778, allocations: 86.99 MB / 0.6796 GB, free: 1.043 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003042/0.1809, allocations: 1.687 MB / 0.6813 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008287/0.1817, allocations: 0.5441 MB / 0.6818 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.468e-05/0.1818, allocations: 0 / 0.6818 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.182, allocations: 27.84 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.1823, allocations: 55.7 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000139/0.1824, allocations: 59.94 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.1826, allocations: 135.5 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.1828, allocations: 45.75 kB / 0.6821 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.1829, allocations: 59.7 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.183, allocations: 55.77 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.183, allocations: 8 kB / 0.6822 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.031e-05/0.1831, allocations: 20 kB / 0.6823 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.568e-05/0.1832, allocations: 47.83 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.815e-05/0.1832, allocations: 59.61 kB / 0.6824 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.1834, allocations: 139.4 kB / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1834, allocations: 4 kB / 0.6825 GB, free: 14.1 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1834, allocations: 7.938 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1835, allocations: 0 / 0.6825 GB, free: 14.09 MB / 494.1 MB 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.0006136/0.1841, allocations: 466.6 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.1841, allocations: 12.03 kB / 0.683 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.282e-05/0.1842, allocations: 16.75 kB / 0.683 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.1845, allocations: 241.3 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.1845, allocations: 8.375 kB / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.1845, allocations: 8.375 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.1848, allocations: 110 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1848, allocations: 0 / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.1848, allocations: 0 / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.1848, allocations: 3.984 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.185, allocations: 63.94 kB / 0.6834 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005411/0.1856, allocations: 384.4 kB / 0.6838 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.1857, allocations: 42.55 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.818e-05/0.1858, allocations: 24.89 kB / 0.6838 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.1858, allocations: 11.94 kB / 0.6838 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002605/0.1861, allocations: 105 kB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1861, allocations: 0 / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000393/0.1865, allocations: 117.4 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.1866, allocations: 77.11 kB / 0.6841 GB, free: 12.24 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.1868, allocations: 257 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.1868, allocations: 25.7 kB / 0.6844 GB, free: 11.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.168e-05/0.1869, allocations: 139.9 kB / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.55e-05/0.1869, allocations: 3.906 kB / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.187, allocations: 17.72 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1871, allocations: 330.8 kB / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.1872, allocations: 19.98 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.1873, allocations: 51.41 kB / 0.6849 GB, free: 11.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.1875, allocations: 74.48 kB / 0.685 GB, free: 11.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1875, allocations: 4 kB / 0.685 GB, free: 11.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002545/0.1878, allocations: 101.4 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1878, allocations: 6.031 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1878, allocations: 96 / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1878, allocations: 11.94 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1879, allocations: 11.98 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.188, allocations: 0 / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.282e-05/0.188, allocations: 15.92 kB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.1881, allocations: 4 kB / 0.6851 GB, free: 11.13 MB / 494.1 MB 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 0.0001045/0.1882, allocations: 126.5 kB / 0.6853 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.1882, allocations: 19.72 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.827e-05/0.1882, allocations: 25.23 kB / 0.6853 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1883, allocations: 3.938 kB / 0.6853 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1883, allocations: 4 kB / 0.6853 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1883, allocations: 0 / 0.6853 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.1884, allocations: 209.6 kB / 0.6855 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1884, allocations: 0 / 0.6855 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.913e-05/0.1885, allocations: 11.98 kB / 0.6855 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1885, allocations: 3.938 kB / 0.6855 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.1886, allocations: 0 / 0.6855 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.1886, allocations: 7.938 kB / 0.6855 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1886, allocations: 4.219 kB / 0.6855 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002674/0.1888, allocations: 128.9 kB / 0.6857 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.872e-05/0.1889, allocations: 84.92 kB / 0.6857 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.1889, allocations: 4 kB / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.998e-05/0.189, allocations: 15.92 kB / 0.6858 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.1891, allocations: 8 kB / 0.6858 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.1891, allocations: 7.984 kB / 0.6858 GB, free: 10.38 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001625/0.1893, allocations: 188.4 kB / 0.686 GB, free: 10.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1893, allocations: 0 / 0.686 GB, free: 10.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.1895, allocations: 23.98 kB / 0.686 GB, free: 10.18 MB / 494.1 MB 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.0002316/0.1897, allocations: 123 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002846/0.19, allocations: 55.88 kB / 0.6862 GB, free: 10 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.19, allocations: 7.984 kB / 0.6862 GB, free: 9.992 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.1901, allocations: 27.97 kB / 0.6862 GB, free: 9.965 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.1904, allocations: 40.56 kB / 0.6862 GB, free: 9.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005453/0.191, allocations: 328.3 kB / 0.6865 GB, free: 9.582 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.1913, allocations: 0.7197 MB / 0.6872 GB, free: 8.836 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.017e-05/0.1913, allocations: 16.48 kB / 0.6873 GB, free: 8.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.704e-05/0.1914, allocations: 15.44 kB / 0.6873 GB, free: 8.805 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1914, allocations: 4 kB / 0.6873 GB, free: 8.801 MB / 494.1 MB Notification: Performance of Templates: time 0.004256/0.1956, allocations: 1.659 MB / 0.6889 GB, free: 7.172 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)