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.00146/0.00146, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001748/0.001748, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.305/1.305, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001991/0.001991, allocations: 274.8 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.943/0.943, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 98.36 kB / 0.5945 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1736, allocations: 86.99 MB / 0.6794 GB, free: 1.219 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002949/0.1766, allocations: 1.689 MB / 0.6811 GB, free: 15.53 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008156/0.1775, allocations: 0.5331 MB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.409e-05/0.1775, allocations: 0 / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.1778, allocations: 27.84 kB / 0.6816 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.178, allocations: 59.06 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001406/0.1782, allocations: 60.5 kB / 0.6818 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.1783, allocations: 123.5 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.1785, allocations: 61.66 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.1786, allocations: 55.72 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.85e-05/0.1787, allocations: 51.75 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.1787, allocations: 8 kB / 0.682 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.588e-05/0.1788, allocations: 20 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.657e-05/0.1789, allocations: 43.83 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.198e-05/0.179, allocations: 51.61 kB / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001837/0.1792, allocations: 147.4 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1792, allocations: 0 / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1792, allocations: 0 / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1792, allocations: 0 / 0.6823 GB, free: 14.3 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.0006437/0.1798, allocations: 466.6 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1799, allocations: 12.03 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.077e-05/0.1799, allocations: 16.75 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.1802, allocations: 249.3 kB / 0.683 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.1802, allocations: 384 / 0.683 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.1802, allocations: 8.375 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.1805, allocations: 109.9 kB / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.1805, allocations: 0 / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1806, allocations: 0 / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.1806, allocations: 4 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.1808, allocations: 63.94 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.1814, allocations: 376.5 kB / 0.6835 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.1816, allocations: 54.42 kB / 0.6836 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001215/0.1817, allocations: 28.89 kB / 0.6836 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.1817, allocations: 4 kB / 0.6836 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002498/0.182, allocations: 89.09 kB / 0.6837 GB, free: 12.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.182, allocations: 4 kB / 0.6837 GB, free: 12.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.00043/0.1824, allocations: 125.3 kB / 0.6838 GB, free: 12.55 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.1825, allocations: 85.05 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.1827, allocations: 249 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.1827, allocations: 29.7 kB / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.15e-05/0.1828, allocations: 136 kB / 0.6843 GB, free: 12.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.1828, allocations: 11.88 kB / 0.6843 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.1829, allocations: 13.72 kB / 0.6843 GB, free: 11.99 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.404e-05/0.183, allocations: 326.8 kB / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1831, allocations: 27.97 kB / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.1832, allocations: 51.41 kB / 0.6847 GB, free: 11.57 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.1834, allocations: 66.47 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1834, allocations: 0 / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002747/0.1837, allocations: 105.4 kB / 0.6849 GB, free: 11.39 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1837, allocations: 4 kB / 0.6849 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1838, allocations: 7.938 kB / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.1838, allocations: 7.922 kB / 0.6849 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.1839, allocations: 15.98 kB / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.1839, allocations: 0 / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.969e-05/0.184, allocations: 15.92 kB / 0.6849 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.184, allocations: 4.094 kB / 0.6849 GB, free: 11.34 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 9.593e-05/0.1841, allocations: 130.5 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.1842, allocations: 19.72 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.1842, allocations: 13.25 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1842, allocations: 7.938 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1842, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1842, allocations: 3.984 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.1844, allocations: 209.6 kB / 0.6853 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1844, allocations: 0 / 0.6853 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.222e-05/0.1845, allocations: 19.92 kB / 0.6853 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.1845, allocations: 0 / 0.6853 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.1845, allocations: 7.938 kB / 0.6853 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.1845, allocations: 3.938 kB / 0.6853 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1845, allocations: 0 / 0.6853 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.1848, allocations: 116.9 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.605e-05/0.1848, allocations: 100.9 kB / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.1849, allocations: 0 / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-05/0.185, allocations: 11.92 kB / 0.6856 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.185, allocations: 4 kB / 0.6856 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.185, allocations: 7.984 kB / 0.6856 GB, free: 10.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.1852, allocations: 188.5 kB / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1852, allocations: 0 / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.1854, allocations: 16 kB / 0.6858 GB, free: 10.39 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.0002328/0.1857, allocations: 122.6 kB / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000275/0.1859, allocations: 60 kB / 0.6859 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.186, allocations: 0 / 0.6859 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.1861, allocations: 27.97 kB / 0.686 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.1864, allocations: 40.42 kB / 0.686 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005122/0.1869, allocations: 337.8 kB / 0.6863 GB, free: 9.785 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.1872, allocations: 0.7238 MB / 0.687 GB, free: 9.035 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.434e-05/0.1872, allocations: 12.55 kB / 0.687 GB, free: 9.023 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.1873, allocations: 15.44 kB / 0.6871 GB, free: 9.008 MB / 494.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1873, allocations: 0 / 0.6871 GB, free: 9.008 MB / 494.1 MB Notification: Performance of Templates: time 0.004357/0.1917, allocations: 1.628 MB / 0.6886 GB, free: 7.414 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)