Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.487/1.487, allocations: 251.9 MB / 266.9 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 184.9 kB / 326.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.818/1.818, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008428/0.0008428, allocations: 82.38 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002884, allocations: 13.23 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1613, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001579/0.163, allocations: 1.329 MB / 0.9014 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007074/0.1637, allocations: 0.5581 MB / 0.902 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.1638, allocations: 4 kB / 0.902 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.1639, allocations: 19.86 kB / 0.902 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.1641, allocations: 66.41 kB / 0.9021 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001077/0.1642, allocations: 47.94 kB / 0.9021 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.1644, allocations: 91.75 kB / 0.9022 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.1645, allocations: 37.47 kB / 0.9022 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.453e-05/0.1646, allocations: 47.83 kB / 0.9023 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.99e-05/0.1647, allocations: 47.7 kB / 0.9023 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.518e-05/0.1647, allocations: 0 / 0.9023 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.946e-05/0.1647, allocations: 11.94 kB / 0.9023 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.62e-05/0.1648, allocations: 39.89 kB / 0.9024 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.1648, allocations: 41.64 kB / 0.9024 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.165, allocations: 99.75 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.165, allocations: 4 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.843e-06/0.165, allocations: 0 / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.165, allocations: 0 / 0.9025 GB, free: 61.43 MB / 0.6042 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.0004679/0.1655, allocations: 448.5 kB / 0.903 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1655, allocations: 8.031 kB / 0.903 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.498e-05/0.1656, allocations: 46.5 kB / 0.903 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.638e-05/0.1656, allocations: 19.77 kB / 0.903 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.1658, allocations: 231.6 kB / 0.9032 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.1658, allocations: 0 / 0.9032 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.1658, allocations: 8 kB / 0.9033 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.1661, allocations: 109.6 kB / 0.9034 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.1661, allocations: 4 kB / 0.9034 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.1661, allocations: 8 kB / 0.9034 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.1661, allocations: 0 / 0.9034 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.1663, allocations: 71.94 kB / 0.9034 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004479/0.1668, allocations: 400.4 kB / 0.9038 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.1669, allocations: 58.44 kB / 0.9039 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/0.1669, allocations: 0 / 0.9039 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.1672, allocations: 109.1 kB / 0.904 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1672, allocations: 4 kB / 0.904 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003819/0.1676, allocations: 141.6 kB / 0.9041 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.491e-05/0.1676, allocations: 85.03 kB / 0.9042 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.1678, allocations: 252.9 kB / 0.9044 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.1678, allocations: 29.7 kB / 0.9045 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.1678, allocations: 124.1 kB / 0.9046 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.1679, allocations: 7.844 kB / 0.9046 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-06/0.1679, allocations: 0 / 0.9046 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.193e-05/0.1679, allocations: 334.8 kB / 0.9049 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.168, allocations: 31.97 kB / 0.9049 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.1681, allocations: 55.41 kB / 0.905 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.1682, allocations: 39.97 kB / 0.905 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1683, allocations: 3.938 kB / 0.905 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002399/0.1685, allocations: 125.3 kB / 0.9052 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/0.1685, allocations: 4 kB / 0.9052 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1685, allocations: 4 kB / 0.9052 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.1685, allocations: 4.094 kB / 0.9052 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.874e-05/0.1686, allocations: 19.98 kB / 0.9052 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.1687, allocations: 3.938 kB / 0.9052 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.369e-05/0.1687, allocations: 15.98 kB / 0.9052 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.1688, allocations: 0 / 0.9052 GB, free: 58.43 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.711e-05/0.1688, allocations: 129.8 kB / 0.9053 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.045e-05/0.1689, allocations: 23.77 kB / 0.9054 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.791e-05/0.1689, allocations: 17.23 kB / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1689, allocations: 4 kB / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1689, allocations: 0 / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1689, allocations: 0 / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.967e-05/0.169, allocations: 209.6 kB / 0.9056 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.169, allocations: 0 / 0.9056 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.637e-05/0.1691, allocations: 15.98 kB / 0.9056 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1691, allocations: 3.953 kB / 0.9056 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.1691, allocations: 4 kB / 0.9056 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1692, allocations: 0 / 0.9056 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1692, allocations: 4 kB / 0.9056 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.1694, allocations: 144.7 kB / 0.9057 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.344e-05/0.1695, allocations: 92.92 kB / 0.9058 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.1695, allocations: 7.938 kB / 0.9058 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.109e-05/0.1696, allocations: 15.98 kB / 0.9058 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.1696, allocations: 7.938 kB / 0.9059 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.1696, allocations: 4 kB / 0.9059 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001125/0.1697, allocations: 192.5 kB / 0.906 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1698, allocations: 0 / 0.906 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002008/0.17, allocations: 20 kB / 0.9061 GB, free: 57.46 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005016/0.1705, allocations: 0.6801 MB / 0.9067 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002599/0.1707, allocations: 79.81 kB / 0.9068 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1708, allocations: 7.984 kB / 0.9068 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.1709, allocations: 40.14 kB / 0.9068 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.1711, allocations: 41.02 kB / 0.9069 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.1723, allocations: 1.213 MB / 0.9081 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.1724, allocations: 0.7199 MB / 0.9088 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.957e-05/0.1725, allocations: 20.53 kB / 0.9088 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.653e-05/0.1726, allocations: 39.42 kB / 0.9088 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of SimCode: time 3.31e-07/0.1726, allocations: 4 kB / 0.9088 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01187/0.1845, allocations: 3.196 MB / 0.912 GB, free: 51.46 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000113/0.1846, allocations: 190.3 kB / 0.9121 GB, free: 51.22 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/1.764, allocations: 5.562 kB / 0.9121 GB, free: 51.22 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)