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.0011/0.0011, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 188 kB / 16.64 MB, free: 6.594 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.108/1.108, allocations: 205.1 MB / 222.5 MB, free: 4.574 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.475/1.475, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001246/0.001246, allocations: 74.84 kB / 0.6723 GB, free: 25.93 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1622, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002676/0.1649, allocations: 1.643 MB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008201/0.1657, allocations: 0.5864 MB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.21e-05/0.1658, allocations: 3.938 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.166, allocations: 23.8 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.1662, allocations: 67.67 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001345/0.1664, allocations: 63.91 kB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.1665, allocations: 135.5 kB / 0.7866 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.1667, allocations: 45.47 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.1668, allocations: 51.78 kB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.1669, allocations: 63.69 kB / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.1669, allocations: 8 kB / 0.7867 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.167, allocations: 27.98 kB / 0.7868 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.757e-05/0.1671, allocations: 47.83 kB / 0.7868 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.344e-05/0.1671, allocations: 55.61 kB / 0.7869 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.1673, allocations: 143.4 kB / 0.787 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.1673, allocations: 8 kB / 0.787 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.313e-06/0.1673, allocations: 7.938 kB / 0.787 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.1673, allocations: 0 / 0.787 GB, free: 9.762 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.0005171/0.1679, allocations: 454.7 kB / 0.7875 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.744e-05/0.1679, allocations: 12.03 kB / 0.7875 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.367e-05/0.1679, allocations: 16.75 kB / 0.7875 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.1682, allocations: 240.8 kB / 0.7877 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1682, allocations: 16.38 kB / 0.7877 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.1682, allocations: 4.375 kB / 0.7877 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002371/0.1685, allocations: 110 kB / 0.7878 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.1685, allocations: 3.984 kB / 0.7878 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.1685, allocations: 4 kB / 0.7878 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1685, allocations: 0 / 0.7878 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.1687, allocations: 71.88 kB / 0.7879 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004809/0.1692, allocations: 388.3 kB / 0.7883 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.1693, allocations: 38.5 kB / 0.7883 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.706e-05/0.1694, allocations: 28.89 kB / 0.7883 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.1694, allocations: 4 kB / 0.7884 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001849/0.1696, allocations: 97.08 kB / 0.7884 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1696, allocations: 0 / 0.7884 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.000367/0.17, allocations: 125.3 kB / 0.7886 GB, free: 8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.1701, allocations: 81.09 kB / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.1703, allocations: 253 kB / 0.7889 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.1703, allocations: 25.7 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.766e-05/0.1704, allocations: 132 kB / 0.789 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.1704, allocations: 7.906 kB / 0.789 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.1704, allocations: 17.72 kB / 0.7891 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.852e-05/0.1705, allocations: 334.8 kB / 0.7894 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.514e-05/0.1706, allocations: 15.98 kB / 0.7894 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.1707, allocations: 51.41 kB / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.1709, allocations: 70.48 kB / 0.7895 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1709, allocations: 0 / 0.7895 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002544/0.1712, allocations: 105.4 kB / 0.7896 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.1712, allocations: 4 kB / 0.7896 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1712, allocations: 4.094 kB / 0.7896 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.1712, allocations: 3.938 kB / 0.7896 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.235e-05/0.1713, allocations: 11.98 kB / 0.7896 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.1713, allocations: 4 kB / 0.7896 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.663e-05/0.1714, allocations: 11.89 kB / 0.7896 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.1714, allocations: 7.984 kB / 0.7897 GB, free: 6.797 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.029e-05/0.1715, allocations: 125.8 kB / 0.7898 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.1716, allocations: 15.81 kB / 0.7898 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.1716, allocations: 29.23 kB / 0.7898 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.1716, allocations: 3.938 kB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.1716, allocations: 0 / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.1716, allocations: 0 / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.1718, allocations: 225.5 kB / 0.79 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1718, allocations: 3.938 kB / 0.79 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.193e-05/0.1718, allocations: 11.98 kB / 0.7901 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1719, allocations: 0 / 0.7901 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.1719, allocations: 0 / 0.7901 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1719, allocations: 3.938 kB / 0.7901 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1719, allocations: 4.281 kB / 0.7901 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.1721, allocations: 124.9 kB / 0.7902 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.1722, allocations: 88.92 kB / 0.7903 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.1722, allocations: 4 kB / 0.7903 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.562e-05/0.1723, allocations: 23.86 kB / 0.7903 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.29e-05/0.1723, allocations: 4 kB / 0.7903 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.1724, allocations: 7.984 kB / 0.7903 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001395/0.1725, allocations: 184.5 kB / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1725, allocations: 0 / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002094/0.1727, allocations: 31.89 kB / 0.7905 GB, free: 5.832 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.000179/0.1729, allocations: 115.3 kB / 0.7906 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002459/0.1732, allocations: 55.94 kB / 0.7907 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1732, allocations: 0 / 0.7907 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.1733, allocations: 31.91 kB / 0.7907 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.1735, allocations: 48.38 kB / 0.7907 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004108/0.174, allocations: 288.5 kB / 0.791 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.1742, allocations: 0.7197 MB / 0.7917 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.628e-05/0.1742, allocations: 12.55 kB / 0.7917 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.417e-05/0.1743, allocations: 19.42 kB / 0.7918 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.1743, allocations: 4 kB / 0.7918 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of Templates: time 0.003859/0.1782, allocations: 1.754 MB / 0.7935 GB, free: 2.77 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)