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.001063/0.001063, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009934/0.009934, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.358/1.358, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001733/0.001733, allocations: 262.6 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9172/0.9172, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003985, allocations: 14.53 kB / 0.5987 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1485, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.001718/0.1503, allocations: 1.344 MB / 0.6864 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007378/0.151, allocations: 0.531 MB / 0.687 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.758e-05/0.1511, allocations: 3.938 kB / 0.687 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.1513, allocations: 21.98 kB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.1515, allocations: 63.69 kB / 0.687 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001373/0.1516, allocations: 63.86 kB / 0.6871 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.1518, allocations: 119.6 kB / 0.6872 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.1519, allocations: 44.56 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.152, allocations: 52.33 kB / 0.6873 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.977e-05/0.1521, allocations: 45.7 kB / 0.6874 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.1522, allocations: 4 kB / 0.6874 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.084e-05/0.1522, allocations: 19.92 kB / 0.6874 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.236e-05/0.1523, allocations: 35.84 kB / 0.6874 GB, free: 12.72 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.197e-05/0.1524, allocations: 78.62 kB / 0.6875 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.1525, allocations: 135.4 kB / 0.6876 GB, free: 12.51 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1526, allocations: 4 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1526, allocations: 0 / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1526, allocations: 1.344 kB / 0.6876 GB, free: 12.5 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.0005286/0.1531, allocations: 453.2 kB / 0.6881 GB, free: 12.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1532, allocations: 12.02 kB / 0.6881 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.707e-05/0.1532, allocations: 20.66 kB / 0.6881 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.1534, allocations: 229.5 kB / 0.6883 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.1535, allocations: 3.281 kB / 0.6883 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.1535, allocations: 16.34 kB / 0.6883 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.1538, allocations: 120.5 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.1538, allocations: 1.625 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.1538, allocations: 4 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1538, allocations: 4 kB / 0.6884 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.1541, allocations: 78.62 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.1546, allocations: 398.5 kB / 0.6889 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.1548, allocations: 46.55 kB / 0.6889 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.1549, allocations: 44.83 kB / 0.689 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.1549, allocations: 0 / 0.689 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.1552, allocations: 101.1 kB / 0.6891 GB, free: 10.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1552, allocations: 0 / 0.6891 GB, free: 10.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000445/0.1557, allocations: 153.3 kB / 0.6892 GB, free: 10.69 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1557, allocations: 77.11 kB / 0.6893 GB, free: 10.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.1559, allocations: 253 kB / 0.6895 GB, free: 10.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.156, allocations: 25.7 kB / 0.6896 GB, free: 10.31 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.138e-05/0.156, allocations: 136 kB / 0.6897 GB, free: 10.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.1561, allocations: 3.906 kB / 0.6897 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.1561, allocations: 13.72 kB / 0.6897 GB, free: 10.15 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.623e-05/0.1562, allocations: 326.8 kB / 0.69 GB, free: 9.824 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.1563, allocations: 35.97 kB / 0.6901 GB, free: 9.789 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.1564, allocations: 51.41 kB / 0.6901 GB, free: 9.727 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.1567, allocations: 86.5 kB / 0.6902 GB, free: 9.633 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1567, allocations: 0 / 0.6902 GB, free: 9.633 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002871/0.157, allocations: 121.5 kB / 0.6903 GB, free: 9.508 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.157, allocations: 4 kB / 0.6903 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.157, allocations: 0 / 0.6903 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.157, allocations: 7.938 kB / 0.6903 GB, free: 9.496 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1571, allocations: 11.98 kB / 0.6903 GB, free: 9.484 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.954e-06/0.1572, allocations: 7.984 kB / 0.6903 GB, free: 9.477 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.442e-05/0.1573, allocations: 23.88 kB / 0.6904 GB, free: 9.453 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.1573, allocations: 7.984 kB / 0.6904 GB, free: 9.445 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.189e-05/0.1574, allocations: 122.4 kB / 0.6905 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.1574, allocations: 23.8 kB / 0.6905 GB, free: 9.293 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.1575, allocations: 17.25 kB / 0.6905 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1575, allocations: 4.219 kB / 0.6905 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1575, allocations: 0 / 0.6905 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1575, allocations: 0 / 0.6905 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.1576, allocations: 221.6 kB / 0.6907 GB, free: 9.004 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1576, allocations: 0 / 0.6907 GB, free: 9.004 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-05/0.1578, allocations: 19.98 kB / 0.6908 GB, free: 8.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1578, allocations: 3.938 kB / 0.6908 GB, free: 8.98 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1578, allocations: 0 / 0.6908 GB, free: 8.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1578, allocations: 3.938 kB / 0.6908 GB, free: 8.977 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1578, allocations: 0 / 0.6908 GB, free: 8.977 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002985/0.1581, allocations: 136.8 kB / 0.6909 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.473e-05/0.1582, allocations: 100.9 kB / 0.691 GB, free: 8.707 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.1582, allocations: 0 / 0.691 GB, free: 8.707 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.581e-05/0.1583, allocations: 19.92 kB / 0.691 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.1583, allocations: 7.984 kB / 0.691 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-05/0.1584, allocations: 11.94 kB / 0.691 GB, free: 8.668 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001577/0.1585, allocations: 188.5 kB / 0.6912 GB, free: 8.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1585, allocations: 0 / 0.6912 GB, free: 8.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002177/0.1587, allocations: 19.91 kB / 0.6912 GB, free: 8.461 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.0001975/0.159, allocations: 137.8 kB / 0.6914 GB, free: 8.324 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002881/0.1592, allocations: 64.02 kB / 0.6914 GB, free: 8.262 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.1593, allocations: 0 / 0.6914 GB, free: 8.262 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.1594, allocations: 39.91 kB / 0.6915 GB, free: 8.223 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.1597, allocations: 32.41 kB / 0.6915 GB, free: 8.191 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/0.1602, allocations: 340.3 kB / 0.6918 GB, free: 7.836 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.1604, allocations: 0.716 MB / 0.6925 GB, free: 7.094 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.669e-05/0.1605, allocations: 16.48 kB / 0.6925 GB, free: 7.078 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.063e-05/0.1606, allocations: 19.42 kB / 0.6925 GB, free: 7.059 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1606, allocations: 3.938 kB / 0.6926 GB, free: 7.055 MB / 494.1 MB Notification: Performance of Templates: time 0.004245/0.1648, allocations: 1.598 MB / 0.6941 GB, free: 5.488 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)