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.00137/0.00137, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001433/0.001433, allocations: 193.9 kB / 16.14 MB, free: 6.707 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.49/1.49, allocations: 205.1 MB / 222 MB, free: 4.773 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.61/1.61, allocations: 292.3 MB / 0.5484 GB, free: 13.68 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.001341/0.001342, allocations: 71.41 kB / 0.6709 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2128, allocations: 114.5 MB / 0.7828 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002742/0.2156, allocations: 1.71 MB / 0.7845 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008294/0.2165, allocations: 0.5738 MB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.077e-05/0.2166, allocations: 7.938 kB / 0.785 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.2168, allocations: 27.84 kB / 0.7851 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.217, allocations: 55.56 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001302/0.2171, allocations: 59.88 kB / 0.7852 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.2173, allocations: 127.5 kB / 0.7853 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.2174, allocations: 45.47 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.592e-05/0.2175, allocations: 55.83 kB / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.937e-05/0.2176, allocations: 59.7 kB / 0.7854 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/0.2177, allocations: 4 kB / 0.7854 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.415e-05/0.2177, allocations: 19.92 kB / 0.7855 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.147e-05/0.2178, allocations: 43.83 kB / 0.7855 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.182e-05/0.2179, allocations: 55.61 kB / 0.7856 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.218, allocations: 139.7 kB / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2181, allocations: 0 / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.21e-07/0.2181, allocations: 4 kB / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.2181, allocations: 0 / 0.7857 GB, free: 10.95 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.0005381/0.2186, allocations: 474.6 kB / 0.7861 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.2187, allocations: 8.031 kB / 0.7862 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.364e-05/0.2187, allocations: 38.75 kB / 0.7862 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.03e-05/0.2187, allocations: 20.73 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.219, allocations: 224.9 kB / 0.7864 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.855e-06/0.219, allocations: 8.375 kB / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.219, allocations: 8.375 kB / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.2193, allocations: 113.7 kB / 0.7865 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.2193, allocations: 0 / 0.7865 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2193, allocations: 4 kB / 0.7866 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.2193, allocations: 0 / 0.7866 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.2195, allocations: 59.94 kB / 0.7866 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005103/0.22, allocations: 388.4 kB / 0.787 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.2202, allocations: 38.55 kB / 0.787 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.2203, allocations: 28.89 kB / 0.787 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.2203, allocations: 4 kB / 0.787 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.2205, allocations: 113 kB / 0.7872 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.2205, allocations: 0 / 0.7872 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003953/0.2209, allocations: 121.3 kB / 0.7873 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.221, allocations: 81.11 kB / 0.7873 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.2212, allocations: 249 kB / 0.7876 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.2212, allocations: 37.64 kB / 0.7876 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.09e-05/0.2213, allocations: 132 kB / 0.7877 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.2213, allocations: 3.906 kB / 0.7878 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.2214, allocations: 17.72 kB / 0.7878 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.2215, allocations: 322.8 kB / 0.7881 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.2216, allocations: 27.97 kB / 0.7881 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.2217, allocations: 51.34 kB / 0.7882 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.2219, allocations: 74.55 kB / 0.7882 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.2219, allocations: 0 / 0.7882 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000251/0.2222, allocations: 97.41 kB / 0.7883 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2222, allocations: 7.984 kB / 0.7883 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2222, allocations: 96 / 0.7883 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2222, allocations: 11.94 kB / 0.7883 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.2224, allocations: 11.98 kB / 0.7883 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2224, allocations: 3.938 kB / 0.7883 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.561e-05/0.2225, allocations: 15.89 kB / 0.7884 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.2225, allocations: 0 / 0.7884 GB, free: 7.934 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 9.624e-05/0.2226, allocations: 134.4 kB / 0.7885 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.2226, allocations: 15.81 kB / 0.7885 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.324e-05/0.2226, allocations: 21.19 kB / 0.7885 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.676e-06/0.2226, allocations: 4 kB / 0.7885 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2227, allocations: 3.984 kB / 0.7885 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2227, allocations: 0 / 0.7885 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.2228, allocations: 209.6 kB / 0.7887 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2228, allocations: 0 / 0.7887 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.907e-05/0.2229, allocations: 15.98 kB / 0.7888 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.2229, allocations: 0 / 0.7888 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.2229, allocations: 7.938 kB / 0.7888 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.223, allocations: 4 kB / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.223, allocations: 0 / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.2232, allocations: 124.8 kB / 0.7889 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.2233, allocations: 92.91 kB / 0.789 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.2233, allocations: 3.938 kB / 0.789 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.788e-05/0.2234, allocations: 7.984 kB / 0.789 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.2234, allocations: 12 kB / 0.789 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.2235, allocations: 11.92 kB / 0.789 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001544/0.2236, allocations: 184.5 kB / 0.7892 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2236, allocations: 0 / 0.7892 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002085/0.2238, allocations: 19.91 kB / 0.7892 GB, free: 6.988 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.000655/0.2245, allocations: 0.6889 MB / 0.7899 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000273/0.2248, allocations: 63.89 kB / 0.7899 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2248, allocations: 0 / 0.7899 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.2249, allocations: 27.97 kB / 0.79 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.2252, allocations: 43.67 kB / 0.79 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.2271, allocations: 1.771 MB / 0.7917 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.2274, allocations: 0.7197 MB / 0.7924 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.351e-05/0.2274, allocations: 24.48 kB / 0.7925 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.07e-05/0.2275, allocations: 39.42 kB / 0.7925 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2275, allocations: 0 / 0.7925 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01271/0.2402, allocations: 3.308 MB / 0.7957 GB, free: 284 kB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/0.2405, allocations: 199.6 kB / 0.7959 GB, free: 24 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.715/1.956, allocations: 0 / 0.7959 GB, free: 24 kB / 0.6075 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)