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.001101/0.001101, allocations: 108 kB / 15.6 MB, free: 132 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.001156/0.001156, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.123/1.123, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.472/1.472, allocations: 292.3 MB / 0.5489 GB, free: 13.55 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.001249/0.001249, allocations: 74.27 kB / 0.6715 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1581, allocations: 114.5 MB / 0.7834 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002446/0.1606, allocations: 1.64 MB / 0.785 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007305/0.1613, allocations: 0.5903 MB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.127e-05/0.1614, allocations: 4 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.1615, allocations: 27.73 kB / 0.7856 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.1617, allocations: 59 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001252/0.1619, allocations: 63.84 kB / 0.7857 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.162, allocations: 131.5 kB / 0.7858 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.1621, allocations: 53.45 kB / 0.7859 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.65e-05/0.1622, allocations: 55.78 kB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.941e-05/0.1623, allocations: 63.7 kB / 0.786 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.1623, allocations: 8 kB / 0.786 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.929e-05/0.1624, allocations: 31.91 kB / 0.786 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.045e-05/0.1625, allocations: 39.91 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.431e-05/0.1625, allocations: 63.53 kB / 0.7861 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.1627, allocations: 139.7 kB / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1627, allocations: 0 / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1627, allocations: 0 / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.1627, allocations: 0 / 0.7862 GB, free: 10.63 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.0004884/0.1632, allocations: 466.6 kB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.376e-05/0.1632, allocations: 12.03 kB / 0.7867 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.256e-05/0.1633, allocations: 16.75 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.1635, allocations: 240.8 kB / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.1635, allocations: 384 / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.1635, allocations: 12.31 kB / 0.787 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.1637, allocations: 109.9 kB / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.792e-06/0.1638, allocations: 3.938 kB / 0.7871 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.1638, allocations: 0 / 0.7871 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1638, allocations: 4 kB / 0.7871 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.164, allocations: 67.94 kB / 0.7871 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004579/0.1645, allocations: 384.4 kB / 0.7875 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.1646, allocations: 42.55 kB / 0.7875 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.1647, allocations: 32.89 kB / 0.7876 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.1647, allocations: 0 / 0.7876 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/0.1649, allocations: 89.09 kB / 0.7877 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 2.004e-06/0.1649, allocations: 4 kB / 0.7877 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003676/0.1653, allocations: 129.3 kB / 0.7878 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.1654, allocations: 77.11 kB / 0.7879 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.1656, allocations: 253 kB / 0.7881 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.1656, allocations: 25.7 kB / 0.7881 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.054e-05/0.1656, allocations: 128 kB / 0.7882 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.359e-05/0.1657, allocations: 11.91 kB / 0.7883 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.1657, allocations: 17.7 kB / 0.7883 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.314e-05/0.1658, allocations: 326.8 kB / 0.7886 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.1659, allocations: 31.97 kB / 0.7886 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.166, allocations: 47.41 kB / 0.7887 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.1662, allocations: 70.5 kB / 0.7887 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1662, allocations: 0 / 0.7887 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002476/0.1665, allocations: 105.4 kB / 0.7888 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.1665, allocations: 8 kB / 0.7888 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.1665, allocations: 0 / 0.7888 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.659e-06/0.1665, allocations: 3.938 kB / 0.7888 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.235e-05/0.1666, allocations: 12.27 kB / 0.7889 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.1666, allocations: 11.86 kB / 0.7889 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.958e-05/0.1667, allocations: 11.91 kB / 0.7889 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.1667, allocations: 4.094 kB / 0.7889 GB, free: 7.664 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.062e-05/0.1668, allocations: 129.8 kB / 0.789 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.1668, allocations: 23.78 kB / 0.789 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.546e-05/0.1669, allocations: 17.25 kB / 0.789 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1669, allocations: 3.938 kB / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.1669, allocations: 0 / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/0.1669, allocations: 0 / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.167, allocations: 221.5 kB / 0.7893 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.167, allocations: 0 / 0.7893 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.19e-05/0.1671, allocations: 7.984 kB / 0.7893 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1671, allocations: 8 kB / 0.7893 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1671, allocations: 3.938 kB / 0.7893 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1671, allocations: 3.938 kB / 0.7893 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.1671, allocations: 0 / 0.7893 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.1674, allocations: 120.8 kB / 0.7894 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.763e-05/0.1674, allocations: 96.92 kB / 0.7895 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.1674, allocations: 3.984 kB / 0.7895 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.73e-05/0.1675, allocations: 15.92 kB / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.979e-05/0.1676, allocations: 0 / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.1676, allocations: 4 kB / 0.7895 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001346/0.1677, allocations: 192.5 kB / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1677, allocations: 0 / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001932/0.1679, allocations: 23.91 kB / 0.7897 GB, free: 6.715 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.0001551/0.1681, allocations: 123.3 kB / 0.7898 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002443/0.1683, allocations: 59.88 kB / 0.7899 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1683, allocations: 192 / 0.7899 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1685, allocations: 31.97 kB / 0.7899 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.1687, allocations: 45.39 kB / 0.79 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/0.1691, allocations: 284.3 kB / 0.7902 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.1693, allocations: 0.7196 MB / 0.7909 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.459e-05/0.1694, allocations: 28.45 kB / 0.791 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.964e-05/0.1694, allocations: 15.44 kB / 0.791 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.1694, allocations: 0 / 0.791 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of Templates: time 0.00361/0.173, allocations: 1.772 MB / 0.7927 GB, free: 3.625 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)