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.0008081/0.0008082, allocations: 91.69 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.0007878/0.0007878, 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 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001615/0.001615, allocations: 266.3 kB / 291.3 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9033/0.9033, allocations: 169.5 MB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004057/0.0004059, allocations: 14.44 kB / 0.598 GB, free: 28.49 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1657, allocations: 88.55 MB / 0.6845 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002002/0.1677, allocations: 1.323 MB / 0.6858 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007968/0.1685, allocations: 0.5112 MB / 0.6863 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.102e-05/0.1686, allocations: 7.938 kB / 0.6863 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1688, allocations: 27.84 kB / 0.6863 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.169, allocations: 51.75 kB / 0.6864 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001365/0.1692, allocations: 51.88 kB / 0.6864 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000177/0.1694, allocations: 116.2 kB / 0.6865 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1695, allocations: 48 kB / 0.6866 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.1696, allocations: 43.84 kB / 0.6866 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.1698, allocations: 52.27 kB / 0.6867 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.1698, allocations: 4.656 kB / 0.6867 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.38e-05/0.1699, allocations: 8 kB / 0.6867 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.69e-05/0.1699, allocations: 45.77 kB / 0.6867 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.691e-05/0.17, allocations: 41.64 kB / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.1701, allocations: 104 kB / 0.6868 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1701, allocations: 0 / 0.6868 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1702, allocations: 0 / 0.6868 GB, free: 12.99 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1702, allocations: 0.8438 kB / 0.6868 GB, free: 12.99 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.0005887/0.1708, allocations: 454 kB / 0.6873 GB, free: 12.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1708, allocations: 12.03 kB / 0.6873 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.914e-05/0.1709, allocations: 19.72 kB / 0.6873 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/0.1711, allocations: 224.3 kB / 0.6875 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.1711, allocations: 4 kB / 0.6875 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.1711, allocations: 8.5 kB / 0.6875 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.1714, allocations: 117.2 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.1714, allocations: 3.938 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.1715, allocations: 4 kB / 0.6877 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1715, allocations: 4 kB / 0.6877 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002158/0.1717, allocations: 75.19 kB / 0.6877 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005552/0.1723, allocations: 390.9 kB / 0.6881 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.1724, allocations: 57.34 kB / 0.6882 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.1725, allocations: 37.52 kB / 0.6882 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.1725, allocations: 0.875 kB / 0.6882 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.1728, allocations: 99.69 kB / 0.6883 GB, free: 11.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.494e-06/0.1728, allocations: 4 kB / 0.6883 GB, free: 11.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004014/0.1732, allocations: 149.5 kB / 0.6884 GB, free: 11.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.1733, allocations: 81.11 kB / 0.6885 GB, free: 11.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.1735, allocations: 249 kB / 0.6888 GB, free: 10.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.1735, allocations: 29.64 kB / 0.6888 GB, free: 10.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.639e-05/0.1736, allocations: 136 kB / 0.6889 GB, free: 10.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.1736, allocations: 7.891 kB / 0.6889 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.1736, allocations: 0 / 0.6889 GB, free: 10.68 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1738, allocations: 326.8 kB / 0.6892 GB, free: 10.35 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-05/0.1739, allocations: 35.97 kB / 0.6893 GB, free: 10.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.174, allocations: 63.39 kB / 0.6893 GB, free: 10.24 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.763e-05/0.1741, allocations: 27.92 kB / 0.6894 GB, free: 10.21 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1741, allocations: 0 / 0.6894 GB, free: 10.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002707/0.1744, allocations: 125.4 kB / 0.6895 GB, free: 10.08 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.1744, allocations: 4 kB / 0.6895 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1744, allocations: 3.984 kB / 0.6895 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1744, allocations: 4 kB / 0.6895 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.1745, allocations: 16.08 kB / 0.6895 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.1746, allocations: 4 kB / 0.6895 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.006e-05/0.1746, allocations: 15.98 kB / 0.6895 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-06/0.1747, allocations: 4 kB / 0.6895 GB, free: 10.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.1748, allocations: 126.4 kB / 0.6896 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.1748, allocations: 19.77 kB / 0.6897 GB, free: 9.879 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.167e-05/0.1748, allocations: 25.25 kB / 0.6897 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.1748, allocations: 0 / 0.6897 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1748, allocations: 0 / 0.6897 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1749, allocations: 3.984 kB / 0.6897 GB, free: 9.848 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.175, allocations: 217.5 kB / 0.6899 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.175, allocations: 4 kB / 0.6899 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/0.1751, allocations: 19.92 kB / 0.6899 GB, free: 9.562 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.1751, allocations: 3.953 kB / 0.6899 GB, free: 9.559 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.1751, allocations: 7.938 kB / 0.6899 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1751, allocations: 0 / 0.6899 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1751, allocations: 0 / 0.6899 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.1754, allocations: 132.9 kB / 0.6901 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-05/0.1755, allocations: 96.91 kB / 0.6901 GB, free: 9.289 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.1755, allocations: 7.953 kB / 0.6902 GB, free: 9.281 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.604e-05/0.1756, allocations: 11.98 kB / 0.6902 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.032e-05/0.1756, allocations: 7.984 kB / 0.6902 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.1757, allocations: 8 kB / 0.6902 GB, free: 9.254 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001647/0.1758, allocations: 188.5 kB / 0.6904 GB, free: 9.066 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1758, allocations: 0 / 0.6904 GB, free: 9.066 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002047/0.176, allocations: 20 kB / 0.6904 GB, free: 9.047 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 (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.0002102/0.1763, allocations: 121.2 kB / 0.6905 GB, free: 8.926 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002483/0.1765, allocations: 67.89 kB / 0.6906 GB, free: 8.859 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1765, allocations: 0 / 0.6906 GB, free: 8.859 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.1766, allocations: 40.16 kB / 0.6906 GB, free: 8.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.1769, allocations: 37.39 kB / 0.6906 GB, free: 8.785 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004853/0.1774, allocations: 322.2 kB / 0.6909 GB, free: 8.445 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.1777, allocations: 0.72 MB / 0.6916 GB, free: 7.699 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.108e-05/0.1777, allocations: 20.53 kB / 0.6917 GB, free: 7.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.348e-05/0.1778, allocations: 11.44 kB / 0.6917 GB, free: 7.668 MB / 494.1 MB Notification: Performance of SimCode: time 1.523e-06/0.1778, allocations: 3.938 kB / 0.6917 GB, free: 7.664 MB / 494.1 MB Notification: Performance of Templates: time 0.004038/0.1818, allocations: 1.576 MB / 0.6932 GB, free: 6.121 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)