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.00113/0.00113, 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.001099/0.001099, allocations: 194.6 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.153/1.153, allocations: 205.1 MB / 222.4 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.584/1.584, allocations: 292.3 MB / 0.5489 GB, free: 13.51 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.001345/0.001345, allocations: 70.2 kB / 0.6716 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1784, allocations: 114.5 MB / 0.7835 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002723/0.1812, allocations: 1.644 MB / 0.7851 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008187/0.182, allocations: 0.5864 MB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.503e-05/0.1821, allocations: 0 / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.1822, allocations: 27.73 kB / 0.7857 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.1824, allocations: 55.73 kB / 0.7857 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.1826, allocations: 75.84 kB / 0.7858 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.1828, allocations: 127.6 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.1829, allocations: 45.45 kB / 0.786 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.183, allocations: 59.78 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.763e-05/0.1831, allocations: 59.69 kB / 0.7861 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.1832, allocations: 8 kB / 0.7861 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.496e-05/0.1832, allocations: 27.92 kB / 0.7861 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8e-05/0.1833, allocations: 47.89 kB / 0.7862 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.863e-05/0.1834, allocations: 59.55 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.1835, allocations: 143.7 kB / 0.7864 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1836, allocations: 7.938 kB / 0.7864 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.914e-06/0.1836, allocations: 0 / 0.7864 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.1836, allocations: 0 / 0.7864 GB, free: 10.5 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.0005462/0.1841, allocations: 462.6 kB / 0.7868 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.1842, allocations: 12.03 kB / 0.7868 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.1842, allocations: 38.75 kB / 0.7869 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.1843, allocations: 16.75 kB / 0.7869 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.1845, allocations: 236.8 kB / 0.7871 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.1845, allocations: 4.375 kB / 0.7871 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.1845, allocations: 4.375 kB / 0.7871 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.1848, allocations: 117.7 kB / 0.7872 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1848, allocations: 0 / 0.7872 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1848, allocations: 4 kB / 0.7872 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.1848, allocations: 0 / 0.7872 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.185, allocations: 63.94 kB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005186/0.1856, allocations: 384.4 kB / 0.7876 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.1857, allocations: 38.55 kB / 0.7877 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.1858, allocations: 32.89 kB / 0.7877 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.1858, allocations: 0 / 0.7877 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.1861, allocations: 97.03 kB / 0.7878 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1861, allocations: 0 / 0.7878 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004133/0.1865, allocations: 121.4 kB / 0.7879 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.1866, allocations: 77.11 kB / 0.788 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.1868, allocations: 261 kB / 0.7882 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.1868, allocations: 25.7 kB / 0.7883 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.505e-05/0.1869, allocations: 128 kB / 0.7884 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.1869, allocations: 15.89 kB / 0.7884 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.1869, allocations: 13.72 kB / 0.7884 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.1871, allocations: 326.8 kB / 0.7887 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1872, allocations: 23.97 kB / 0.7888 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1873, allocations: 59.52 kB / 0.7888 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000205/0.1875, allocations: 62.56 kB / 0.7889 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1875, allocations: 0 / 0.7889 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002764/0.1878, allocations: 109.3 kB / 0.789 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.1878, allocations: 4 kB / 0.789 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.1878, allocations: 3.984 kB / 0.789 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1879, allocations: 3.938 kB / 0.789 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.188, allocations: 20.02 kB / 0.789 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.188, allocations: 7.984 kB / 0.789 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.619e-05/0.1881, allocations: 15.89 kB / 0.789 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.1881, allocations: 4 kB / 0.789 GB, free: 7.488 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.587e-05/0.1882, allocations: 125.8 kB / 0.7892 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.7e-05/0.1882, allocations: 23.75 kB / 0.7892 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.985e-05/0.1883, allocations: 21.19 kB / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1883, allocations: 0 / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1883, allocations: 8 kB / 0.7892 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1883, allocations: 3.984 kB / 0.7892 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.1884, allocations: 213.6 kB / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1884, allocations: 0 / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.071e-05/0.1885, allocations: 11.98 kB / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1885, allocations: 0 / 0.7894 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1886, allocations: 3.938 kB / 0.7894 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1886, allocations: 0 / 0.7894 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1886, allocations: 0 / 0.7894 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.1888, allocations: 124.8 kB / 0.7895 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.1889, allocations: 92.91 kB / 0.7896 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.1889, allocations: 3.938 kB / 0.7896 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.189, allocations: 15.98 kB / 0.7897 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.17e-05/0.189, allocations: 0 / 0.7897 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.1891, allocations: 8 kB / 0.7897 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001536/0.1892, allocations: 192.5 kB / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1892, allocations: 0 / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002118/0.1895, allocations: 28.03 kB / 0.7899 GB, free: 6.539 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.000603/0.1901, allocations: 0.6722 MB / 0.7905 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002675/0.1903, allocations: 59.81 kB / 0.7906 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1904, allocations: 3.938 kB / 0.7906 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.1905, allocations: 32.34 kB / 0.7906 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.1908, allocations: 53.88 kB / 0.7907 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.1927, allocations: 1.761 MB / 0.7924 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.1929, allocations: 0.7158 MB / 0.7931 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.406e-05/0.193, allocations: 16.48 kB / 0.7931 GB, free: 3.094 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.477e-05/0.1931, allocations: 47.42 kB / 0.7931 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of SimCode: time 2.61e-07/0.1931, allocations: 0 / 0.7931 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.211, allocations: 3.536 MB / 0.7966 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.413/9.624, allocations: 17.11 kB / 0.7966 GB, free: 15.57 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)