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.001496/0.001496, allocations: 105.4 kB / 15.7 MB, free: 24 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.001985/0.001985, allocations: 199.2 kB / 16.64 MB, free: 6.453 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.41/1.41, allocations: 205.1 MB / 222.5 MB, free: 4.578 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.667/1.667, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001558/0.001558, allocations: 66.28 kB / 0.6718 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.2009, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003535/0.2045, allocations: 1.64 MB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.2057, allocations: 0.5903 MB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2059, allocations: 7.938 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.2062, allocations: 19.8 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003678/0.2065, allocations: 66.86 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.2068, allocations: 67.91 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002825/0.2071, allocations: 135.5 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.2073, allocations: 49.45 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.2074, allocations: 51.84 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.2076, allocations: 71.56 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.2076, allocations: 8 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.596e-05/0.2077, allocations: 23.98 kB / 0.7863 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.472e-05/0.2078, allocations: 47.83 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.39e-05/0.2079, allocations: 63.61 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.2082, allocations: 147.7 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2082, allocations: 0 / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2082, allocations: 3.938 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.964e-06/0.2082, allocations: 0 / 0.7865 GB, free: 10.27 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.0006923/0.2089, allocations: 458.7 kB / 0.787 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2089, allocations: 8.031 kB / 0.787 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.673e-05/0.209, allocations: 38.75 kB / 0.787 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.533e-05/0.2091, allocations: 20.75 kB / 0.787 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.2094, allocations: 244.8 kB / 0.7873 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.2094, allocations: 4.375 kB / 0.7873 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.2095, allocations: 4.375 kB / 0.7873 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.2098, allocations: 109.8 kB / 0.7874 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.2098, allocations: 0 / 0.7874 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.2098, allocations: 11.98 kB / 0.7874 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2098, allocations: 3.938 kB / 0.7874 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.2101, allocations: 63.94 kB / 0.7875 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.2107, allocations: 380.4 kB / 0.7878 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.2109, allocations: 46.48 kB / 0.7879 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.211, allocations: 32.89 kB / 0.7879 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.211, allocations: 0 / 0.7879 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/0.2113, allocations: 97.08 kB / 0.788 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.2113, allocations: 4 kB / 0.788 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004551/0.2117, allocations: 125.3 kB / 0.7881 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.2118, allocations: 77.11 kB / 0.7882 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.2121, allocations: 253 kB / 0.7884 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.2121, allocations: 29.69 kB / 0.7885 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.05e-05/0.2122, allocations: 132 kB / 0.7886 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.2122, allocations: 11.91 kB / 0.7886 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.259e-05/0.2123, allocations: 17.7 kB / 0.7886 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2124, allocations: 326.8 kB / 0.7889 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.2126, allocations: 23.97 kB / 0.789 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.2127, allocations: 51.41 kB / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.2129, allocations: 62.47 kB / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2129, allocations: 0 / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002865/0.2132, allocations: 109.4 kB / 0.7892 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.2133, allocations: 4 kB / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2133, allocations: 0 / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.2133, allocations: 7.875 kB / 0.7892 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.2134, allocations: 11.98 kB / 0.7892 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.2134, allocations: 7.984 kB / 0.7892 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.407e-05/0.2135, allocations: 15.89 kB / 0.7892 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.2135, allocations: 8.094 kB / 0.7892 GB, free: 7.246 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 0.000104/0.2136, allocations: 125.8 kB / 0.7893 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/0.2137, allocations: 15.81 kB / 0.7894 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.2137, allocations: 29.17 kB / 0.7894 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.2137, allocations: 0 / 0.7894 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2137, allocations: 0 / 0.7894 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.2138, allocations: 3.938 kB / 0.7894 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.214, allocations: 217.5 kB / 0.7896 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.214, allocations: 0 / 0.7896 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.971e-05/0.214, allocations: 15.98 kB / 0.7896 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2141, allocations: 0 / 0.7896 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.2141, allocations: 7.922 kB / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2141, allocations: 0 / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2141, allocations: 0 / 0.7896 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/0.2144, allocations: 116.9 kB / 0.7897 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.346e-05/0.2145, allocations: 92.92 kB / 0.7898 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.2145, allocations: 3.938 kB / 0.7898 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.521e-05/0.2146, allocations: 15.98 kB / 0.7898 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.413e-05/0.2146, allocations: 3.984 kB / 0.7898 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.2147, allocations: 4 kB / 0.7898 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001768/0.2148, allocations: 192.5 kB / 0.79 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.573e-06/0.2148, allocations: 0 / 0.79 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000235/0.2151, allocations: 27.84 kB / 0.7901 GB, free: 6.301 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.0007472/0.2158, allocations: 0.6852 MB / 0.7907 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002925/0.2161, allocations: 59.81 kB / 0.7908 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2162, allocations: 0 / 0.7908 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.2163, allocations: 27.97 kB / 0.7908 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.2166, allocations: 39.25 kB / 0.7908 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.2188, allocations: 1.756 MB / 0.7926 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.2191, allocations: 0.7158 MB / 0.7933 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.393e-05/0.2192, allocations: 28.41 kB / 0.7933 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.89e-05/0.2192, allocations: 39.42 kB / 0.7933 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of SimCode: time 6.312e-06/0.2192, allocations: 0 / 0.7933 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02083/0.2401, allocations: 3.565 MB / 0.7968 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.207/8.447, allocations: 15.02 kB / 0.7968 GB, free: 15.34 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)