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.611/1.611, allocations: 249.3 MB / 261.8 MB, free: 5.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001055/0.001056, allocations: 178.1 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.509/1.509, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.001398/0.001398, allocations: 105.1 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.91e-05/2.93e-05, allocations: 0 / 0.788 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1976, allocations: 106.3 MB / 0.8919 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7273/0.925, allocations: 133.6 MB / 1.022 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.9253, allocations: 79.17 kB / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0094/0.9347, allocations: 3.277 MB / 1.026 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9347, allocations: 2.625 kB / 1.026 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.582e-05/0.9347, allocations: 4 kB / 1.026 GB, free: 14.22 MB / 0.6511 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.0005822/0.9353, allocations: 431.6 kB / 1.026 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.9354, allocations: 11.97 kB / 1.026 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.512e-05/0.9354, allocations: 37.56 kB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.054e-05/0.9355, allocations: 15.81 kB / 1.026 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.9358, allocations: 238.6 kB / 1.026 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.9358, allocations: 4 kB / 1.026 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.9358, allocations: 7.375 kB / 1.026 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.936, allocations: 92.11 kB / 1.026 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.9361, allocations: 4 kB / 1.026 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.9361, allocations: 3.938 kB / 1.026 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.9361, allocations: 0 / 1.026 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.014e-05/0.9362, allocations: 34.23 kB / 1.027 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.9368, allocations: 393 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 5.256e-05/0.9369, allocations: 22.33 kB / 1.027 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.427e-05/0.9369, allocations: 20.36 kB / 1.027 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.9369, allocations: 4 kB / 1.027 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.9371, allocations: 81.27 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.9371, allocations: 4 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0001696/0.9373, allocations: 61.08 kB / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/0.9374, allocations: 81.09 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.9376, allocations: 219.9 kB / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.9376, allocations: 28.58 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.9377, allocations: 128.7 kB / 1.027 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.9377, allocations: 11.66 kB / 1.028 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.9377, allocations: 0 / 1.028 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.9379, allocations: 329.6 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.6e-05/0.9379, allocations: 7.438 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.2e-05/0.938, allocations: 35.41 kB / 1.028 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.081e-05/0.938, allocations: 11.69 kB / 1.028 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.938, allocations: 0 / 1.028 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000111/0.9381, allocations: 76.83 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.9382, allocations: 5.094 kB / 1.028 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.9382, allocations: 4 kB / 1.028 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.9382, allocations: 3.984 kB / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.9383, allocations: 15.98 kB / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.9383, allocations: 0 / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.866e-05/0.9384, allocations: 31.8 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.9385, allocations: 0 / 1.028 GB, free: 11.76 MB / 0.6511 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 () * 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 8.247e-05/0.9385, allocations: 109 kB / 1.028 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.9386, allocations: 19.77 kB / 1.028 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.714e-05/0.9386, allocations: 16.44 kB / 1.028 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.9386, allocations: 0 / 1.028 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.9386, allocations: 4 kB / 1.028 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.9387, allocations: 3.984 kB / 1.028 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.9388, allocations: 211.8 kB / 1.028 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.9389, allocations: 0 / 1.028 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.733e-05/0.9389, allocations: 23.92 kB / 1.028 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.939, allocations: 0 / 1.028 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.939, allocations: 3.953 kB / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.939, allocations: 3.938 kB / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.939, allocations: 7.984 kB / 1.028 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.9391, allocations: 87.38 kB / 1.028 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.024e-05/0.9392, allocations: 108.6 kB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.9393, allocations: 0 / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.9394, allocations: 15.94 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.9394, allocations: 4 kB / 1.029 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.9394, allocations: 11.98 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001617/0.9396, allocations: 177.2 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9396, allocations: 0 / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002119/0.9398, allocations: 20 kB / 1.029 GB, free: 10.93 MB / 0.6511 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 () * 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.0005304/0.9404, allocations: 0.6474 MB / 1.029 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001057/0.9405, allocations: 31.61 kB / 1.029 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.9405, allocations: 0 / 1.029 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.349e-05/0.9405, allocations: 11.5 kB / 1.029 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.9408, allocations: 44.58 kB / 1.03 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005378/0.9413, allocations: 237.9 kB / 1.03 GB, free: 9.945 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.9416, allocations: 0.7267 MB / 1.03 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.985e-05/0.9417, allocations: 20.53 kB / 1.03 GB, free: 9.176 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.567e-05/0.9418, allocations: 48.22 kB / 1.031 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.9418, allocations: 0 / 1.031 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01417/0.956, allocations: 3.228 MB / 1.034 GB, free: 6.039 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.9562, allocations: 161.1 kB / 1.034 GB, free: 5.816 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.767, allocations: 3.938 kB / 1.034 GB, free: 5.812 MB / 0.6511 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)