Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0008697/0.0008697, allocations: 99.05 kB / 16.02 MB, free: 80 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.00137/0.00137, allocations: 184.8 kB / 16.92 MB, free: 6.672 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.361/1.361, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7272/0.7272, allocations: 115.5 MB / 407.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003115, allocations: 8.594 kB / 495.9 MB, free: 6.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1762, allocations: 77.53 MB / 0.56 GB, free: 9.078 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002705/0.1789, allocations: 1.34 MB / 0.5613 GB, free: 7.727 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000992/0.18, allocations: 0.5262 MB / 0.5618 GB, free: 7.195 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.1801, allocations: 11.94 kB / 0.5618 GB, free: 7.184 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.1803, allocations: 23.86 kB / 0.5618 GB, free: 7.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.1806, allocations: 57.34 kB / 0.5619 GB, free: 7.109 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001814/0.1808, allocations: 59.88 kB / 0.5619 GB, free: 7.051 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002/0.181, allocations: 119.6 kB / 0.562 GB, free: 6.934 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.1812, allocations: 45.47 kB / 0.5621 GB, free: 6.887 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.1813, allocations: 51.72 kB / 0.5621 GB, free: 6.836 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001178/0.1815, allocations: 51.7 kB / 0.5622 GB, free: 6.785 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.1815, allocations: 4 kB / 0.5622 GB, free: 6.781 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.737e-05/0.1816, allocations: 15.98 kB / 0.5622 GB, free: 6.766 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.427e-05/0.1817, allocations: 39.84 kB / 0.5622 GB, free: 6.727 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.802e-05/0.1818, allocations: 77.23 kB / 0.5623 GB, free: 6.645 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.182, allocations: 135.7 kB / 0.5624 GB, free: 6.512 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.182, allocations: 0 / 0.5624 GB, free: 6.512 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.182, allocations: 0 / 0.5624 GB, free: 6.512 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.182, allocations: 0 / 0.5624 GB, free: 6.512 MB / 430.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.0008787/0.1829, allocations: 442.9 kB / 0.5629 GB, free: 6.031 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.183, allocations: 12.03 kB / 0.5629 GB, free: 6.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.768e-05/0.1831, allocations: 24.66 kB / 0.5629 GB, free: 5.996 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.1835, allocations: 232.8 kB / 0.5631 GB, free: 5.727 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.1835, allocations: 12.38 kB / 0.5631 GB, free: 5.715 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.1836, allocations: 4.375 kB / 0.5631 GB, free: 5.711 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004049/0.184, allocations: 117.9 kB / 0.5633 GB, free: 5.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.184, allocations: 0 / 0.5633 GB, free: 5.59 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.184, allocations: 4 kB / 0.5633 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.1841, allocations: 4 kB / 0.5633 GB, free: 5.582 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002916/0.1844, allocations: 79.88 kB / 0.5633 GB, free: 5.504 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008979/0.1853, allocations: 392.5 kB / 0.5637 GB, free: 5.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.1855, allocations: 58.47 kB / 0.5638 GB, free: 5.004 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.1856, allocations: 32.84 kB / 0.5638 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.1857, allocations: 0 / 0.5638 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003445/0.186, allocations: 109.1 kB / 0.5639 GB, free: 4.844 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.413e-06/0.186, allocations: 0 / 0.5639 GB, free: 4.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005512/0.1866, allocations: 149.3 kB / 0.564 GB, free: 4.691 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.1867, allocations: 77.11 kB / 0.5641 GB, free: 4.598 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.187, allocations: 260.9 kB / 0.5644 GB, free: 4.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.187, allocations: 25.7 kB / 0.5644 GB, free: 4.309 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.1872, allocations: 132.1 kB / 0.5645 GB, free: 4.176 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.1872, allocations: 7.812 kB / 0.5645 GB, free: 4.168 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.1873, allocations: 13.72 kB / 0.5645 GB, free: 4.148 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1874, allocations: 326.8 kB / 0.5648 GB, free: 3.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.1876, allocations: 31.97 kB / 0.5649 GB, free: 3.789 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.1878, allocations: 59.41 kB / 0.5649 GB, free: 3.719 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.188, allocations: 86.5 kB / 0.565 GB, free: 3.625 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.188, allocations: 0 / 0.565 GB, free: 3.625 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003367/0.1884, allocations: 117.4 kB / 0.5651 GB, free: 3.504 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.1884, allocations: 11.94 kB / 0.5651 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1884, allocations: 3.984 kB / 0.5651 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1884, allocations: 3.938 kB / 0.5651 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.1886, allocations: 20.08 kB / 0.5652 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.1886, allocations: 0 / 0.5652 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.1887, allocations: 15.98 kB / 0.5652 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.1887, allocations: 0 / 0.5652 GB, free: 3.449 MB / 430.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 0.0001306/0.1888, allocations: 129.8 kB / 0.5653 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/0.1889, allocations: 15.81 kB / 0.5653 GB, free: 3.297 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.442e-05/0.1889, allocations: 25.17 kB / 0.5653 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1889, allocations: 7.938 kB / 0.5654 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1889, allocations: 4 kB / 0.5654 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.189, allocations: 0 / 0.5654 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.1892, allocations: 209.6 kB / 0.5656 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1892, allocations: 0 / 0.5656 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.541e-05/0.1893, allocations: 15.98 kB / 0.5656 GB, free: 2.992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.1893, allocations: 0 / 0.5656 GB, free: 2.992 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.1893, allocations: 4 kB / 0.5656 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1893, allocations: 11.92 kB / 0.5656 GB, free: 2.977 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1893, allocations: 4 kB / 0.5656 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003354/0.1896, allocations: 136.8 kB / 0.5657 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.1897, allocations: 100.8 kB / 0.5658 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.1897, allocations: 0 / 0.5658 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.203e-05/0.1898, allocations: 19.92 kB / 0.5658 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.1899, allocations: 0 / 0.5658 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.1899, allocations: 11.92 kB / 0.5658 GB, free: 2.672 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001729/0.1901, allocations: 192.4 kB / 0.566 GB, free: 2.48 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1901, allocations: 4 kB / 0.566 GB, free: 2.477 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002332/0.1904, allocations: 20 kB / 0.5661 GB, free: 2.457 MB / 430.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.0002665/0.1906, allocations: 116.5 kB / 0.5662 GB, free: 2.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003422/0.191, allocations: 71.94 kB / 0.5662 GB, free: 2.27 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.191, allocations: 0 / 0.5662 GB, free: 2.27 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1911, allocations: 48.03 kB / 0.5663 GB, free: 2.223 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.1915, allocations: 32.41 kB / 0.5663 GB, free: 2.191 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000716/0.1923, allocations: 326.1 kB / 0.5666 GB, free: 1.844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.1927, allocations: 0.7238 MB / 0.5673 GB, free: 1.094 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.06e-05/0.1928, allocations: 16.55 kB / 0.5673 GB, free: 1.078 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.676e-05/0.1928, allocations: 15.44 kB / 0.5674 GB, free: 1.062 MB / 430.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1928, allocations: 0 / 0.5674 GB, free: 1.062 MB / 430.1 MB Notification: Performance of Templates: time 0.0062/0.199, allocations: 1.585 MB / 0.5689 GB, free: 15.5 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)