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.001202/0.001202, 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.001286/0.001286, allocations: 198.9 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.341/1.341, allocations: 205.1 MB / 222.5 MB, free: 4.555 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.673/1.673, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001694/0.001694, allocations: 67.02 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2036, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003182/0.2068, allocations: 1.643 MB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009199/0.2078, allocations: 0.5942 MB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.497e-05/0.2079, allocations: 4 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.2081, allocations: 23.78 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.2084, allocations: 66.55 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001531/0.2085, allocations: 67.84 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.2087, allocations: 127.6 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.2089, allocations: 49.42 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.209, allocations: 55.77 kB / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.2091, allocations: 59.7 kB / 0.7863 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.2091, allocations: 8 kB / 0.7863 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.369e-05/0.2092, allocations: 35.97 kB / 0.7863 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.2093, allocations: 39.84 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.525e-05/0.2094, allocations: 63.53 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000187/0.2095, allocations: 143.7 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2096, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.566e-06/0.2096, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.2096, allocations: 3.938 kB / 0.7865 GB, free: 10.29 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.0005704/0.2102, allocations: 466.6 kB / 0.787 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.2102, allocations: 16.03 kB / 0.787 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.2102, allocations: 34.75 kB / 0.787 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.626e-05/0.2103, allocations: 16.75 kB / 0.787 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002888/0.2106, allocations: 236.9 kB / 0.7873 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.2106, allocations: 4.375 kB / 0.7873 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.2106, allocations: 4.375 kB / 0.7873 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.2109, allocations: 117.7 kB / 0.7874 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.2109, allocations: 0 / 0.7874 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2109, allocations: 7.984 kB / 0.7874 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.2109, allocations: 11.98 kB / 0.7874 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.2112, allocations: 59.88 kB / 0.7875 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005608/0.2117, allocations: 388.4 kB / 0.7878 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.2119, allocations: 42.55 kB / 0.7879 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.212, allocations: 24.91 kB / 0.7879 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.212, allocations: 3.938 kB / 0.7879 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.2123, allocations: 109 kB / 0.788 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.2123, allocations: 0 / 0.788 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004336/0.2127, allocations: 117.4 kB / 0.7881 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.2128, allocations: 81.11 kB / 0.7882 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.213, allocations: 245 kB / 0.7884 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.2131, allocations: 41.69 kB / 0.7885 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.783e-05/0.2132, allocations: 128 kB / 0.7886 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.2132, allocations: 3.906 kB / 0.7886 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.146e-05/0.2132, allocations: 17.72 kB / 0.7886 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.2134, allocations: 326.8 kB / 0.7889 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2135, allocations: 23.97 kB / 0.7889 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.2136, allocations: 55.34 kB / 0.789 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.2138, allocations: 66.53 kB / 0.7891 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2138, allocations: 0 / 0.7891 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002734/0.2141, allocations: 105.4 kB / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2141, allocations: 4.938 kB / 0.7892 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2141, allocations: 4 kB / 0.7892 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.2142, allocations: 3.938 kB / 0.7892 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.2143, allocations: 15.92 kB / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.2143, allocations: 0 / 0.7892 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.834e-05/0.2144, allocations: 19.98 kB / 0.7892 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.2144, allocations: 0 / 0.7892 GB, free: 7.266 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.0001054/0.2145, allocations: 133.8 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.114e-05/0.2146, allocations: 15.81 kB / 0.7894 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.142e-05/0.2146, allocations: 21.17 kB / 0.7894 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2146, allocations: 4 kB / 0.7894 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2146, allocations: 0 / 0.7894 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2146, allocations: 0 / 0.7894 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.2148, allocations: 209.6 kB / 0.7896 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2148, allocations: 7.938 kB / 0.7896 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.769e-05/0.2149, allocations: 11.98 kB / 0.7896 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2149, allocations: 0 / 0.7896 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.215, allocations: 15.92 kB / 0.7896 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.215, allocations: 0 / 0.7896 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.215, allocations: 0 / 0.7896 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.2153, allocations: 125.1 kB / 0.7897 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.221e-05/0.2153, allocations: 92.95 kB / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.2153, allocations: 3.938 kB / 0.7898 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.957e-05/0.2154, allocations: 11.98 kB / 0.7898 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.021e-05/0.2155, allocations: 11.98 kB / 0.7898 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.2155, allocations: 4 kB / 0.7899 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000155/0.2157, allocations: 192.4 kB / 0.79 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2157, allocations: 0 / 0.79 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002159/0.2159, allocations: 27.91 kB / 0.7901 GB, free: 6.305 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.0006181/0.2165, allocations: 0.67 MB / 0.7907 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002591/0.2168, allocations: 63.81 kB / 0.7908 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2168, allocations: 0 / 0.7908 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.2169, allocations: 27.97 kB / 0.7908 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.2172, allocations: 46.09 kB / 0.7908 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.2193, allocations: 1.752 MB / 0.7926 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.2197, allocations: 0.7158 MB / 0.7933 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.32e-05/0.2197, allocations: 16.53 kB / 0.7933 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.921e-05/0.2198, allocations: 43.42 kB / 0.7933 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2198, allocations: 0 / 0.7933 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01907/0.2389, allocations: 3.56 MB / 0.7968 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.008/7.247, allocations: 28.8 kB / 0.7968 GB, free: 15.35 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)