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.679/1.679, allocations: 285.4 MB / 298 MB, free: 5.961 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.001036/0.001036, allocations: 172.9 kB / 366.4 MB, free: 2.078 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.1 MB / 0.6248 GB, free: 7.723 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008557/0.0008556, allocations: 90.72 kB / 0.738 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.965e-05/3.969e-05, allocations: 4 kB / 0.8584 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9169/0.917, allocations: 115.3 MB / 0.971 GB, free: 77.99 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2296/1.147, allocations: 139.9 MB / 1.108 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/1.147, allocations: 75.95 kB / 1.108 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.009513/1.157, allocations: 3.271 MB / 1.111 GB, free: 8.547 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.204e-06/1.157, allocations: 0.7812 kB / 1.111 GB, free: 8.547 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.746e-05/1.157, allocations: 4 kB / 1.111 GB, free: 8.543 MB / 0.7136 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.0005421/1.157, allocations: 436.6 kB / 1.111 GB, free: 8.074 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/1.157, allocations: 8.562 kB / 1.111 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.251e-05/1.157, allocations: 42.55 kB / 1.111 GB, free: 8.016 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.68e-05/1.157, allocations: 21.62 kB / 1.111 GB, free: 7.996 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/1.158, allocations: 231 kB / 1.112 GB, free: 7.73 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/1.158, allocations: 4 kB / 1.112 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/1.158, allocations: 4 kB / 1.112 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/1.158, allocations: 95.84 kB / 1.112 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/1.158, allocations: 0 / 1.112 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/1.158, allocations: 0 / 1.112 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/1.158, allocations: 1.406 kB / 1.112 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.071e-05/1.158, allocations: 37.98 kB / 1.112 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006507/1.159, allocations: 394 kB / 1.112 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.02e-05/1.159, allocations: 22.58 kB / 1.112 GB, free: 7.129 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.18e-05/1.159, allocations: 8.922 kB / 1.112 GB, free: 7.117 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/1.159, allocations: 7.984 kB / 1.112 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/1.159, allocations: 94.16 kB / 1.112 GB, free: 7 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/1.159, allocations: 0 / 1.112 GB, free: 7 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001711/1.159, allocations: 65.41 kB / 1.112 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/1.159, allocations: 77.11 kB / 1.112 GB, free: 6.836 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/1.16, allocations: 221.1 kB / 1.113 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/1.16, allocations: 25.7 kB / 1.113 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.485e-05/1.16, allocations: 132 kB / 1.113 GB, free: 6.449 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/1.16, allocations: 15.89 kB / 1.113 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-06/1.16, allocations: 0 / 1.113 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001444/1.16, allocations: 324.8 kB / 1.113 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.781e-05/1.16, allocations: 8 kB / 1.113 GB, free: 6.102 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.504e-05/1.16, allocations: 35.38 kB / 1.113 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.392e-05/1.16, allocations: 19.95 kB / 1.113 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/1.16, allocations: 0 / 1.113 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001149/1.16, allocations: 69.44 kB / 1.113 GB, free: 5.961 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/1.16, allocations: 7.953 kB / 1.113 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/1.16, allocations: 6.422 kB / 1.113 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/1.16, allocations: 0 / 1.113 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/1.16, allocations: 17.73 kB / 1.113 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/1.16, allocations: 4.094 kB / 1.113 GB, free: 5.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.411e-05/1.16, allocations: 19.98 kB / 1.113 GB, free: 5.91 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/1.16, allocations: 0 / 1.113 GB, free: 5.91 MB / 0.7136 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 9.04e-05/1.161, allocations: 105 kB / 1.113 GB, free: 5.801 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/1.161, allocations: 15.81 kB / 1.113 GB, free: 5.785 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/1.161, allocations: 21.19 kB / 1.113 GB, free: 5.766 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/1.161, allocations: 0 / 1.113 GB, free: 5.766 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/1.161, allocations: 8 kB / 1.113 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/1.161, allocations: 0 / 1.113 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/1.161, allocations: 225.4 kB / 1.114 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/1.161, allocations: 3.938 kB / 1.114 GB, free: 5.484 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.381e-05/1.161, allocations: 17.77 kB / 1.114 GB, free: 5.469 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/1.161, allocations: 0 / 1.114 GB, free: 5.469 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/1.161, allocations: 0.5 kB / 1.114 GB, free: 5.469 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/1.161, allocations: 3.953 kB / 1.114 GB, free: 5.465 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.161, allocations: 4 kB / 1.114 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/1.161, allocations: 93.06 kB / 1.114 GB, free: 5.352 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-05/1.161, allocations: 100.9 kB / 1.114 GB, free: 5.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/1.161, allocations: 2.688 kB / 1.114 GB, free: 5.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.154e-05/1.161, allocations: 11.98 kB / 1.114 GB, free: 5.223 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.737e-05/1.161, allocations: 11.94 kB / 1.114 GB, free: 5.211 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/1.162, allocations: 4 kB / 1.114 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002062/1.162, allocations: 185.4 kB / 1.114 GB, free: 5.027 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.91e-07/1.162, allocations: 0 / 1.114 GB, free: 5.027 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000211/1.162, allocations: 24.12 kB / 1.114 GB, free: 5.004 MB / 0.7136 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.000673/1.163, allocations: 0.6543 MB / 1.115 GB, free: 4.328 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.829e-05/1.163, allocations: 23.92 kB / 1.115 GB, free: 4.305 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.163, allocations: 0 / 1.115 GB, free: 4.305 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.503e-05/1.163, allocations: 14.91 kB / 1.115 GB, free: 4.293 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/1.163, allocations: 48.23 kB / 1.115 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005773/1.164, allocations: 237.9 kB / 1.115 GB, free: 3.973 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/1.164, allocations: 0.7238 MB / 1.116 GB, free: 3.223 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 7.983e-05/1.164, allocations: 19.05 kB / 1.116 GB, free: 3.203 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.433e-05/1.164, allocations: 43.42 kB / 1.116 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of SimCode: time 4.81e-07/1.164, allocations: 0 / 1.116 GB, free: 3.164 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/1.179, allocations: 3.24 MB / 1.119 GB, free: 152 kB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/1.179, allocations: 164.3 kB / 1.119 GB, free: 15.93 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/2.941, allocations: 4 kB / 1.119 GB, free: 15.92 MB / 0.7292 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)