Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.726/1.726, allocations: 288.2 MB / 303.2 MB, free: 8.18 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.00137/0.00137, allocations: 177.1 kB / 371.8 MB, free: 10.28 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.387/2.387, allocations: 205.4 MB / 0.6305 GB, free: 9.926 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.0009425/0.0009426, allocations: 97.67 kB / 0.7439 GB, free: 5.859 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005202/0.0005202, allocations: 10.91 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3837/0.3843, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.135/1.52, allocations: 140 MB / 1.116 GB, free: 16.19 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/1.52, allocations: 76.69 kB / 1.116 GB, free: 16.19 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009545/1.53, allocations: 3.284 MB / 1.119 GB, free: 31.73 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.533e-06/1.53, allocations: 0 / 1.119 GB, free: 31.73 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.7e-05/1.53, allocations: 7.656 kB / 1.119 GB, free: 31.72 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.0005925/1.53, allocations: 461.4 kB / 1.12 GB, free: 31.32 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/1.53, allocations: 15.7 kB / 1.12 GB, free: 31.31 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.734e-05/1.53, allocations: 43.92 kB / 1.12 GB, free: 31.27 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.333e-05/1.53, allocations: 19.31 kB / 1.12 GB, free: 31.26 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/1.531, allocations: 236.9 kB / 1.12 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/1.531, allocations: 7.219 kB / 1.12 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/1.531, allocations: 3.938 kB / 1.12 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/1.531, allocations: 107.8 kB / 1.12 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/1.531, allocations: 4 kB / 1.12 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/1.531, allocations: 0 / 1.12 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/1.531, allocations: 3.688 kB / 1.12 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/1.531, allocations: 83.02 kB / 1.12 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006485/1.532, allocations: 386.3 kB / 1.121 GB, free: 30.72 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/1.532, allocations: 51.69 kB / 1.121 GB, free: 30.69 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/1.532, allocations: 0 / 1.121 GB, free: 30.69 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/1.533, allocations: 122.4 kB / 1.121 GB, free: 30.61 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/1.533, allocations: 0 / 1.121 GB, free: 30.61 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0004472/1.533, allocations: 137.4 kB / 1.121 GB, free: 30.57 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/1.533, allocations: 77.11 kB / 1.121 GB, free: 30.47 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/1.533, allocations: 226.4 kB / 1.121 GB, free: 30.38 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/1.533, allocations: 25.7 kB / 1.121 GB, free: 30.35 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.336e-05/1.533, allocations: 125.8 kB / 1.122 GB, free: 30.26 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/1.533, allocations: 3.906 kB / 1.122 GB, free: 30.26 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/1.533, allocations: 4 kB / 1.122 GB, free: 30.25 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001669/1.534, allocations: 334.9 kB / 1.122 GB, free: 29.94 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/1.534, allocations: 31.91 kB / 1.122 GB, free: 29.94 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/1.534, allocations: 55.97 kB / 1.122 GB, free: 29.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/1.534, allocations: 29.5 kB / 1.122 GB, free: 29.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.534, allocations: 4.031 kB / 1.122 GB, free: 29.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002858/1.534, allocations: 118.9 kB / 1.122 GB, free: 29.86 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/1.534, allocations: 11.78 kB / 1.122 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/1.534, allocations: 3.953 kB / 1.122 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/1.534, allocations: 0 / 1.122 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/1.535, allocations: 14.77 kB / 1.122 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/1.535, allocations: 3.938 kB / 1.122 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.644e-05/1.535, allocations: 19.09 kB / 1.122 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/1.535, allocations: 6.875 kB / 1.122 GB, free: 29.84 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.0001348/1.535, allocations: 131.5 kB / 1.122 GB, free: 29.72 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.101e-05/1.535, allocations: 19.44 kB / 1.122 GB, free: 29.71 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.151e-05/1.535, allocations: 23.11 kB / 1.122 GB, free: 29.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/1.535, allocations: 3.953 kB / 1.122 GB, free: 29.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.535, allocations: 3.938 kB / 1.122 GB, free: 29.69 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/1.535, allocations: 0 / 1.122 GB, free: 29.69 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/1.535, allocations: 213.1 kB / 1.123 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/1.535, allocations: 0 / 1.123 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.966e-05/1.535, allocations: 19 kB / 1.123 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/1.535, allocations: 0 / 1.123 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/1.535, allocations: 3.375 kB / 1.123 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.535, allocations: 0 / 1.123 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.535, allocations: 7.859 kB / 1.123 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/1.536, allocations: 133.2 kB / 1.123 GB, free: 29.42 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.955e-05/1.536, allocations: 99.16 kB / 1.123 GB, free: 29.32 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/1.536, allocations: 7.562 kB / 1.123 GB, free: 29.32 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.129e-05/1.536, allocations: 18.88 kB / 1.123 GB, free: 29.31 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.018e-05/1.536, allocations: 11.23 kB / 1.123 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/1.536, allocations: 3.906 kB / 1.123 GB, free: 29.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001896/1.536, allocations: 186.9 kB / 1.123 GB, free: 29.22 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/1.536, allocations: 0 / 1.123 GB, free: 29.22 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002266/1.536, allocations: 27.59 kB / 1.123 GB, free: 29.21 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.0007798/1.537, allocations: 0.6944 MB / 1.124 GB, free: 28.61 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002882/1.537, allocations: 71.52 kB / 1.124 GB, free: 28.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.537, allocations: 4.188 kB / 1.124 GB, free: 28.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/1.538, allocations: 33.33 kB / 1.124 GB, free: 28.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/1.538, allocations: 38.14 kB / 1.124 GB, free: 28.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/1.54, allocations: 1.222 MB / 1.125 GB, free: 27.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/1.54, allocations: 0.7245 MB / 1.126 GB, free: 27.12 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.496e-05/1.54, allocations: 25.61 kB / 1.126 GB, free: 27.11 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.633e-05/1.54, allocations: 36.7 kB / 1.126 GB, free: 27.11 MB / 0.698 GB Notification: Performance of SimCode: time 6.082e-06/1.54, allocations: 0 / 1.126 GB, free: 27.11 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/1.559, allocations: 3.258 MB / 1.129 GB, free: 26.77 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003635/1.559, allocations: 192.4 kB / 1.129 GB, free: 26.53 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/3.291, allocations: 0 / 1.129 GB, free: 26.53 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)