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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008063/0.0008063, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005323/0.005323, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.231/1.231, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.545/1.545, allocations: 292.7 MB / 0.5502 GB, free: 14.43 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.0004615/0.0004615, allocations: 17.5 kB / 0.6744 GB, free: 25.81 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1787, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001629/0.1804, allocations: 1.363 MB / 0.7893 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007341/0.1811, allocations: 0.566 MB / 0.7899 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.322e-05/0.1812, allocations: 4 kB / 0.7899 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.1813, allocations: 19.86 kB / 0.7899 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.1815, allocations: 71.17 kB / 0.79 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001198/0.1816, allocations: 51.94 kB / 0.79 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000144/0.1818, allocations: 127.5 kB / 0.7901 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.1819, allocations: 49.45 kB / 0.7902 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.552e-05/0.182, allocations: 47.73 kB / 0.7902 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.098e-05/0.1821, allocations: 55.69 kB / 0.7903 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.1821, allocations: 0 / 0.7903 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.406e-05/0.1822, allocations: 16 kB / 0.7903 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.207e-05/0.1822, allocations: 35.89 kB / 0.7903 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.431e-05/0.1823, allocations: 81.25 kB / 0.7904 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.1825, allocations: 135.6 kB / 0.7905 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1825, allocations: 0 / 0.7905 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1825, allocations: 4 kB / 0.7905 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.247e-06/0.1825, allocations: 0 / 0.7905 GB, free: 8.82 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.0004775/0.183, allocations: 454.8 kB / 0.791 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.93e-05/0.183, allocations: 8.031 kB / 0.791 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.1831, allocations: 38.75 kB / 0.791 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.1831, allocations: 16.75 kB / 0.791 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.1833, allocations: 240.7 kB / 0.7913 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.1833, allocations: 4.375 kB / 0.7913 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.1833, allocations: 8.375 kB / 0.7913 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.1836, allocations: 113.8 kB / 0.7914 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.699e-06/0.1836, allocations: 0 / 0.7914 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.1836, allocations: 8 kB / 0.7914 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-06/0.1836, allocations: 4 kB / 0.7914 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.1839, allocations: 71.94 kB / 0.7915 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004894/0.1844, allocations: 392.5 kB / 0.7918 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.1845, allocations: 54.48 kB / 0.7919 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.1846, allocations: 44.83 kB / 0.7919 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.1846, allocations: 0 / 0.7919 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002306/0.1849, allocations: 105.1 kB / 0.792 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 8.81e-07/0.1849, allocations: 0 / 0.792 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004043/0.1853, allocations: 149.3 kB / 0.7922 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.1853, allocations: 77.11 kB / 0.7923 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.1856, allocations: 256.9 kB / 0.7925 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.1856, allocations: 25.7 kB / 0.7925 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.276e-05/0.1857, allocations: 144 kB / 0.7927 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.281e-05/0.1857, allocations: 3.906 kB / 0.7927 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.092e-05/0.1857, allocations: 9.719 kB / 0.7927 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.6e-05/0.1858, allocations: 326.8 kB / 0.793 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.1859, allocations: 31.97 kB / 0.793 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.1861, allocations: 59.41 kB / 0.7931 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.1863, allocations: 86.5 kB / 0.7932 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1863, allocations: 0 / 0.7932 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002727/0.1866, allocations: 113.4 kB / 0.7933 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.1866, allocations: 8 kB / 0.7933 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1866, allocations: 0 / 0.7933 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.1866, allocations: 7.875 kB / 0.7933 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.822e-05/0.1867, allocations: 20.08 kB / 0.7933 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.015e-06/0.1867, allocations: 0 / 0.7933 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.906e-05/0.1868, allocations: 19.98 kB / 0.7933 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.1868, allocations: 0 / 0.7933 GB, free: 5.703 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.503e-05/0.1869, allocations: 129.8 kB / 0.7934 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.312e-05/0.187, allocations: 15.81 kB / 0.7935 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.187, allocations: 25.17 kB / 0.7935 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.187, allocations: 8 kB / 0.7935 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.187, allocations: 0 / 0.7935 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.187, allocations: 0 / 0.7935 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.1872, allocations: 217.5 kB / 0.7937 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1872, allocations: 0 / 0.7937 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.951e-05/0.1873, allocations: 15.98 kB / 0.7937 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1873, allocations: 0 / 0.7937 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.1873, allocations: 3.938 kB / 0.7937 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1873, allocations: 0 / 0.7937 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1873, allocations: 8 kB / 0.7937 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.1876, allocations: 136.8 kB / 0.7938 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.308e-05/0.1876, allocations: 97.23 kB / 0.7939 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.1877, allocations: 3.938 kB / 0.7939 GB, free: 4.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-05/0.1878, allocations: 15.98 kB / 0.794 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.037e-05/0.1878, allocations: 7.984 kB / 0.794 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.1878, allocations: 7.938 kB / 0.794 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001506/0.188, allocations: 188.5 kB / 0.7942 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.188, allocations: 0 / 0.7942 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001999/0.1882, allocations: 24 kB / 0.7942 GB, free: 4.727 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.0006097/0.1888, allocations: 0.6962 MB / 0.7949 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000258/0.1891, allocations: 79.81 kB / 0.7949 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1891, allocations: 0 / 0.7949 GB, free: 3.93 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.1892, allocations: 36.17 kB / 0.795 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.1895, allocations: 43.23 kB / 0.795 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.1913, allocations: 1.818 MB / 0.7968 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.1916, allocations: 0.7197 MB / 0.7975 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.485e-05/0.1916, allocations: 20.48 kB / 0.7975 GB, free: 1.18 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.211e-05/0.1917, allocations: 43.41 kB / 0.7976 GB, free: 1.137 MB / 0.6075 GB Notification: Performance of SimCode: time 3.4e-07/0.1917, allocations: 4 kB / 0.7976 GB, free: 1.133 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.167/1.358, allocations: 3.221 MB / 0.8007 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/1.359, allocations: 207.9 kB / 0.8009 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/3.056, allocations: 0 / 0.8009 GB, free: 13.79 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)