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.487/1.487, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001672/0.001672, allocations: 175.9 kB / 326.5 MB, free: 2.238 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.944/1.944, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.001/0.001, allocations: 86.36 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003871/0.000387, allocations: 9.969 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2533, allocations: 106.3 MB / 0.9002 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.191/0.4443, allocations: 133.7 MB / 1.031 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.4446, allocations: 83.95 kB / 1.031 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009991/0.4546, allocations: 3.279 MB / 1.034 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of FrontEnd: time 6.102e-06/0.4547, allocations: 4 kB / 1.034 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.651e-05/0.4548, allocations: 7.938 kB / 1.034 GB, free: 6.531 MB / 0.6823 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.0008486/0.4556, allocations: 466.6 kB / 1.034 GB, free: 6.027 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.4557, allocations: 8.031 kB / 1.034 GB, free: 6.02 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.907e-05/0.4558, allocations: 42.48 kB / 1.035 GB, free: 5.969 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.4559, allocations: 19.81 kB / 1.035 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003669/0.4562, allocations: 223.7 kB / 1.035 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.4563, allocations: 8 kB / 1.035 GB, free: 5.68 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.4563, allocations: 11.94 kB / 1.035 GB, free: 5.668 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.4567, allocations: 105.6 kB / 1.035 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.4567, allocations: 0 / 1.035 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.4567, allocations: 4 kB / 1.035 GB, free: 5.555 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.4567, allocations: 4 kB / 1.035 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/0.457, allocations: 83.88 kB / 1.035 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008585/0.4579, allocations: 396.4 kB / 1.035 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.4581, allocations: 50.55 kB / 1.035 GB, free: 4.973 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.4581, allocations: 3.953 kB / 1.035 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.4584, allocations: 105.1 kB / 1.035 GB, free: 4.848 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 2.094e-06/0.4584, allocations: 0 / 1.035 GB, free: 4.848 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0005222/0.4589, allocations: 145.4 kB / 1.036 GB, free: 4.699 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.4591, allocations: 85.11 kB / 1.036 GB, free: 4.598 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.4594, allocations: 220.1 kB / 1.036 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.4594, allocations: 33.7 kB / 1.036 GB, free: 4.332 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.972e-05/0.4595, allocations: 124.1 kB / 1.036 GB, free: 4.207 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.4596, allocations: 7.844 kB / 1.036 GB, free: 4.199 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.4596, allocations: 0 / 1.036 GB, free: 4.199 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.4598, allocations: 326.8 kB / 1.036 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.4599, allocations: 31.97 kB / 1.036 GB, free: 3.84 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.46, allocations: 55.41 kB / 1.036 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.4602, allocations: 39.94 kB / 1.037 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4602, allocations: 0 / 1.037 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003236/0.4605, allocations: 125.3 kB / 1.037 GB, free: 3.605 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4605, allocations: 7.953 kB / 1.037 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.4606, allocations: 3.938 kB / 1.037 GB, free: 3.594 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.4606, allocations: 4 kB / 1.037 GB, free: 3.59 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.4607, allocations: 20.08 kB / 1.037 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.4607, allocations: 0 / 1.037 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.4609, allocations: 15.98 kB / 1.037 GB, free: 3.555 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.4609, allocations: 0 / 1.037 GB, free: 3.555 MB / 0.6823 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.000168/0.461, allocations: 129.8 kB / 1.037 GB, free: 3.418 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.887e-05/0.4611, allocations: 15.81 kB / 1.037 GB, free: 3.402 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.656e-05/0.4612, allocations: 29.19 kB / 1.037 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4612, allocations: 3.938 kB / 1.037 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4612, allocations: 0 / 1.037 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4612, allocations: 0 / 1.037 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.4614, allocations: 213.6 kB / 1.037 GB, free: 3.113 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4614, allocations: 0 / 1.037 GB, free: 3.113 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.399e-05/0.4615, allocations: 15.98 kB / 1.037 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.4616, allocations: 7.922 kB / 1.037 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.4616, allocations: 0 / 1.037 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.4616, allocations: 7.953 kB / 1.037 GB, free: 3.082 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4616, allocations: 0 / 1.037 GB, free: 3.082 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003317/0.4619, allocations: 140.8 kB / 1.037 GB, free: 2.926 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.499e-05/0.462, allocations: 96.91 kB / 1.037 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.4621, allocations: 0 / 1.037 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.733e-05/0.4622, allocations: 15.98 kB / 1.037 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.063e-05/0.4622, allocations: 7.953 kB / 1.037 GB, free: 2.789 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.4623, allocations: 7.984 kB / 1.037 GB, free: 2.781 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0002065/0.4625, allocations: 176.5 kB / 1.038 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4625, allocations: 4 kB / 1.038 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002488/0.4627, allocations: 32.05 kB / 1.038 GB, free: 2.578 MB / 0.6823 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.0009812/0.4637, allocations: 0.7006 MB / 1.038 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003045/0.464, allocations: 67.95 kB / 1.038 GB, free: 1.785 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4641, allocations: 0 / 1.038 GB, free: 1.785 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.4642, allocations: 44.09 kB / 1.038 GB, free: 1.742 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.4645, allocations: 37.02 kB / 1.038 GB, free: 1.707 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.4665, allocations: 1.231 MB / 1.04 GB, free: 420 kB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.4668, allocations: 0.7199 MB / 1.04 GB, free: 15.66 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.688e-05/0.4669, allocations: 24.47 kB / 1.04 GB, free: 15.64 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.341e-05/0.4671, allocations: 39.42 kB / 1.04 GB, free: 15.6 MB / 0.698 GB Notification: Performance of SimCode: time 8.02e-07/0.4671, allocations: 0 / 1.04 GB, free: 15.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/0.4834, allocations: 3.242 MB / 1.043 GB, free: 12.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002551/0.4837, allocations: 195.6 kB / 1.044 GB, free: 12.26 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/2.231, allocations: 0 / 1.044 GB, free: 12.26 MB / 0.698 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)