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.348/1.348, allocations: 252 MB / 267 MB, free: 10.95 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.001198/0.001198, allocations: 178 kB / 326.6 MB, free: 2.203 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.54/1.54, allocations: 205.4 MB / 0.5777 GB, free: 20.26 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.0008048/0.0008049, allocations: 95.95 kB / 0.6823 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003178, allocations: 9.812 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2152, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001811/0.217, allocations: 1.336 MB / 0.9016 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008477/0.2179, allocations: 0.5659 MB / 0.9022 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.218, allocations: 3.938 kB / 0.9022 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.2182, allocations: 19.86 kB / 0.9022 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002492/0.2185, allocations: 55.73 kB / 0.9022 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.2187, allocations: 55.94 kB / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001543/0.2188, allocations: 115.5 kB / 0.9024 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.219, allocations: 33.48 kB / 0.9024 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.2191, allocations: 51.77 kB / 0.9025 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.2192, allocations: 47.72 kB / 0.9025 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.908e-05/0.2193, allocations: 0 / 0.9025 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.476e-05/0.2193, allocations: 23.97 kB / 0.9026 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.454e-05/0.2194, allocations: 31.91 kB / 0.9026 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.62e-05/0.2194, allocations: 45.58 kB / 0.9026 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.2196, allocations: 99.75 kB / 0.9027 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2196, allocations: 4 kB / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.704e-06/0.2196, allocations: 0 / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.2196, allocations: 0 / 0.9027 GB, free: 61.28 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.0005415/0.2202, allocations: 454.9 kB / 0.9032 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.2202, allocations: 8.031 kB / 0.9032 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.2203, allocations: 42.5 kB / 0.9032 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.529e-05/0.2203, allocations: 23.77 kB / 0.9032 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.2206, allocations: 223.7 kB / 0.9034 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.2206, allocations: 4 kB / 0.9034 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.2206, allocations: 11.98 kB / 0.9035 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.2209, allocations: 109.6 kB / 0.9036 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2209, allocations: 0 / 0.9036 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.221, allocations: 8 kB / 0.9036 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.221, allocations: 4 kB / 0.9036 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.2212, allocations: 75.88 kB / 0.9036 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005463/0.2218, allocations: 392.4 kB / 0.904 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.2219, allocations: 54.5 kB / 0.9041 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.2221, allocations: 36.89 kB / 0.9041 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.2221, allocations: 0 / 0.9041 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.2223, allocations: 101.1 kB / 0.9042 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.814e-06/0.2224, allocations: 0 / 0.9042 GB, free: 59.58 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0004455/0.2228, allocations: 149.4 kB / 0.9043 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.2229, allocations: 77.11 kB / 0.9044 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.2231, allocations: 252.9 kB / 0.9047 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.2231, allocations: 29.64 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.57e-05/0.2231, allocations: 132.1 kB / 0.9048 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.2232, allocations: 11.83 kB / 0.9048 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-06/0.2232, allocations: 0 / 0.9048 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.2232, allocations: 326.8 kB / 0.9051 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.2234, allocations: 31.97 kB / 0.9052 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.2235, allocations: 59.41 kB / 0.9052 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001171/0.2236, allocations: 35.95 kB / 0.9053 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2236, allocations: 0 / 0.9053 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002764/0.2239, allocations: 125.3 kB / 0.9054 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2239, allocations: 4 kB / 0.9054 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.2239, allocations: 3.984 kB / 0.9054 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.224, allocations: 4 kB / 0.9054 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.2241, allocations: 11.98 kB / 0.9054 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2241, allocations: 4 kB / 0.9054 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.7e-05/0.2242, allocations: 20.05 kB / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.2242, allocations: 8 kB / 0.9054 GB, free: 58.25 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 7.579e-05/0.2243, allocations: 129.8 kB / 0.9056 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.2243, allocations: 19.77 kB / 0.9056 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.2244, allocations: 17.25 kB / 0.9056 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2244, allocations: 288 / 0.9056 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2244, allocations: 0 / 0.9056 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-06/0.2244, allocations: 3.984 kB / 0.9056 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.2245, allocations: 217.6 kB / 0.9058 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2245, allocations: 7.984 kB / 0.9058 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.491e-05/0.2246, allocations: 15.98 kB / 0.9058 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2246, allocations: 7.891 kB / 0.9058 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.2246, allocations: 0 / 0.9058 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2246, allocations: 0 / 0.9058 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2247, allocations: 0 / 0.9058 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.2249, allocations: 136.8 kB / 0.906 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.357e-05/0.225, allocations: 100.9 kB / 0.9061 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.225, allocations: 3.953 kB / 0.9061 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.834e-05/0.2251, allocations: 15.98 kB / 0.9061 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.2251, allocations: 11.98 kB / 0.9061 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.2252, allocations: 7.938 kB / 0.9061 GB, free: 57.47 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000125/0.2253, allocations: 184.5 kB / 0.9063 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2253, allocations: 0 / 0.9063 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001987/0.2255, allocations: 20 kB / 0.9063 GB, free: 57.27 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.0005495/0.2261, allocations: 0.693 MB / 0.907 GB, free: 56.56 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002753/0.2264, allocations: 72 kB / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2264, allocations: 0 / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.2265, allocations: 39.91 kB / 0.9071 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.2268, allocations: 41.02 kB / 0.9071 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.2281, allocations: 0.9221 MB / 0.908 GB, free: 55.43 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.2282, allocations: 0.7199 MB / 0.9087 GB, free: 54.69 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.189e-05/0.2283, allocations: 32.64 kB / 0.9088 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.386e-05/0.2284, allocations: 39.42 kB / 0.9088 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of SimCode: time 3.81e-07/0.2284, allocations: 0 / 0.9088 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.2412, allocations: 3.215 MB / 0.9119 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001234/0.2414, allocations: 202.4 kB / 0.9121 GB, free: 51.31 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/1.975, allocations: 3.25 kB / 0.9121 GB, free: 51.31 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)