Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.685/2.685, allocations: 287.3 MB / 302.3 MB, free: 8.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001601/0.0016, allocations: 181.3 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.118/2.118, allocations: 205.4 MB / 0.6295 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 93.78 kB / 0.7428 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007245/0.0007248, allocations: 14.44 kB / 0.8657 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2411, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9581/1.199, allocations: 139.8 MB / 1.115 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/1.2, allocations: 85.81 kB / 1.115 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01398/1.214, allocations: 3.272 MB / 1.118 GB, free: 31.27 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.986e-06/1.214, allocations: 4 kB / 1.118 GB, free: 31.27 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.937e-05/1.214, allocations: 3.812 kB / 1.118 GB, free: 31.27 MB / 0.698 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.0007976/1.215, allocations: 467.1 kB / 1.119 GB, free: 30.86 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.215, allocations: 11.64 kB / 1.119 GB, free: 30.86 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.566e-05/1.215, allocations: 38.41 kB / 1.119 GB, free: 30.82 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.069e-05/1.215, allocations: 19.53 kB / 1.119 GB, free: 30.81 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/1.215, allocations: 247.3 kB / 1.119 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/1.215, allocations: 3.984 kB / 1.119 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/1.215, allocations: 3.969 kB / 1.119 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004194/1.216, allocations: 109.5 kB / 1.119 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.216, allocations: 0 / 1.119 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/1.216, allocations: 7.688 kB / 1.119 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/1.216, allocations: 4 kB / 1.119 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003996/1.216, allocations: 79.64 kB / 1.119 GB, free: 30.54 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008634/1.217, allocations: 383.9 kB / 1.119 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/1.217, allocations: 52.58 kB / 1.119 GB, free: 30.23 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/1.217, allocations: 3.953 kB / 1.119 GB, free: 30.23 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003769/1.218, allocations: 108.6 kB / 1.12 GB, free: 30.16 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 2.114e-06/1.218, allocations: 4 kB / 1.12 GB, free: 30.15 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0007339/1.218, allocations: 141 kB / 1.12 GB, free: 30.11 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/1.218, allocations: 77.11 kB / 1.12 GB, free: 30.02 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/1.219, allocations: 222.9 kB / 1.12 GB, free: 29.92 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/1.219, allocations: 27.25 kB / 1.12 GB, free: 29.89 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.899e-05/1.219, allocations: 126.1 kB / 1.12 GB, free: 29.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/1.219, allocations: 16.62 kB / 1.12 GB, free: 29.8 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/1.219, allocations: 0 / 1.12 GB, free: 29.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001588/1.219, allocations: 333.9 kB / 1.12 GB, free: 29.48 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/1.219, allocations: 29.03 kB / 1.121 GB, free: 29.48 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/1.22, allocations: 61.45 kB / 1.121 GB, free: 29.44 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/1.22, allocations: 30.78 kB / 1.121 GB, free: 29.44 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/1.22, allocations: 0 / 1.121 GB, free: 29.44 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005145/1.22, allocations: 116.3 kB / 1.121 GB, free: 29.39 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/1.22, allocations: 11.61 kB / 1.121 GB, free: 29.39 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/1.22, allocations: 0 / 1.121 GB, free: 29.39 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/1.22, allocations: 4.031 kB / 1.121 GB, free: 29.39 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/1.221, allocations: 21.45 kB / 1.121 GB, free: 29.38 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/1.221, allocations: 3.812 kB / 1.121 GB, free: 29.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/1.221, allocations: 14.56 kB / 1.121 GB, free: 29.38 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/1.221, allocations: 7.5 kB / 1.121 GB, free: 29.38 MB / 0.698 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 0.00017/1.221, allocations: 133.6 kB / 1.121 GB, free: 29.26 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/1.221, allocations: 23.5 kB / 1.121 GB, free: 29.25 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.14e-05/1.221, allocations: 23.92 kB / 1.121 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/1.221, allocations: 0 / 1.121 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.221, allocations: 0 / 1.121 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/1.221, allocations: 3.812 kB / 1.121 GB, free: 29.23 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/1.221, allocations: 213.1 kB / 1.121 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/1.221, allocations: 3.844 kB / 1.121 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/1.222, allocations: 13.69 kB / 1.121 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/1.222, allocations: 0 / 1.121 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/1.222, allocations: 7.844 kB / 1.121 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/1.222, allocations: 3.953 kB / 1.121 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.222, allocations: 0 / 1.121 GB, free: 29.04 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004756/1.222, allocations: 135.1 kB / 1.121 GB, free: 28.96 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/1.222, allocations: 94.72 kB / 1.121 GB, free: 28.86 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/1.222, allocations: 3.25 kB / 1.121 GB, free: 28.86 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/1.222, allocations: 14.56 kB / 1.121 GB, free: 28.86 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.698e-05/1.223, allocations: 14.48 kB / 1.121 GB, free: 28.85 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/1.223, allocations: 10.64 kB / 1.121 GB, free: 28.85 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002387/1.223, allocations: 183.1 kB / 1.122 GB, free: 28.76 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.01e-07/1.223, allocations: 0 / 1.122 GB, free: 28.76 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003021/1.223, allocations: 30.56 kB / 1.122 GB, free: 28.75 MB / 0.698 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.001014/1.224, allocations: 0.6889 MB / 1.122 GB, free: 28.14 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004597/1.225, allocations: 74.38 kB / 1.122 GB, free: 28.14 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/1.225, allocations: 2.719 kB / 1.122 GB, free: 28.14 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002024/1.225, allocations: 35.84 kB / 1.122 GB, free: 28.13 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/1.225, allocations: 42.69 kB / 1.122 GB, free: 28.13 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/1.228, allocations: 1.22 MB / 1.124 GB, free: 27.35 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/1.228, allocations: 0.7224 MB / 1.124 GB, free: 26.66 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001285/1.228, allocations: 20.94 kB / 1.124 GB, free: 26.65 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/1.228, allocations: 44.75 kB / 1.124 GB, free: 26.64 MB / 0.698 GB Notification: Performance of SimCode: time 9.92e-07/1.228, allocations: 4 kB / 1.124 GB, free: 26.64 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/1.252, allocations: 3.239 MB / 1.128 GB, free: 26.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000261/1.253, allocations: 189.5 kB / 1.128 GB, free: 26.05 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/4.02, allocations: 0 / 1.128 GB, free: 26.05 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)