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: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.601/1.601, allocations: 288.4 MB / 304.3 MB, free: 8.059 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.001027/0.001027, allocations: 172.5 kB / 372.9 MB, free: 10.15 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.409/1.409, allocations: 205.4 MB / 0.6317 GB, free: 9.887 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.0006715/0.0006716, allocations: 106.2 kB / 0.7451 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003326, allocations: 15.78 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1647, allocations: 115.3 MB / 0.9807 GB, free: 27.39 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5523/0.7171, allocations: 140 MB / 1.117 GB, free: 16.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.7173, allocations: 79.31 kB / 1.118 GB, free: 16.48 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0084/0.7257, allocations: 3.298 MB / 1.121 GB, free: 32.02 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.134e-06/0.7258, allocations: 0 / 1.121 GB, free: 32.02 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.445e-05/0.7258, allocations: 3.906 kB / 1.121 GB, free: 32.02 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.0005243/0.7263, allocations: 447.5 kB / 1.121 GB, free: 31.61 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.7263, allocations: 15.53 kB / 1.121 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.968e-05/0.7264, allocations: 27.97 kB / 1.121 GB, free: 31.59 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.7266, allocations: 241.1 kB / 1.121 GB, free: 31.37 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.7267, allocations: 4.25 kB / 1.121 GB, free: 31.37 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.7267, allocations: 4.188 kB / 1.121 GB, free: 31.37 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/0.7269, allocations: 110 kB / 1.122 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.727, allocations: 4.188 kB / 1.122 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.727, allocations: 3.938 kB / 1.122 GB, free: 31.33 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.727, allocations: 0 / 1.122 GB, free: 31.33 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.7272, allocations: 80.67 kB / 1.122 GB, free: 31.33 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.7277, allocations: 401.8 kB / 1.122 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.7279, allocations: 48.31 kB / 1.122 GB, free: 31.01 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.728, allocations: 33.91 kB / 1.122 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.728, allocations: 0 / 1.122 GB, free: 31 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.7282, allocations: 112.3 kB / 1.122 GB, free: 30.94 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.7282, allocations: 0 / 1.122 GB, free: 30.94 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0003956/0.7286, allocations: 142 kB / 1.122 GB, free: 30.89 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.7287, allocations: 81.05 kB / 1.122 GB, free: 30.79 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.7289, allocations: 251.3 kB / 1.123 GB, free: 30.68 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.7289, allocations: 29.55 kB / 1.123 GB, free: 30.65 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.633e-05/0.729, allocations: 120.7 kB / 1.123 GB, free: 30.57 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.35e-05/0.729, allocations: 9.297 kB / 1.123 GB, free: 30.57 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-06/0.729, allocations: 0 / 1.123 GB, free: 30.57 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.7291, allocations: 325.8 kB / 1.123 GB, free: 30.25 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.7292, allocations: 36.03 kB / 1.123 GB, free: 30.25 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.7293, allocations: 57.89 kB / 1.123 GB, free: 30.21 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.7295, allocations: 85.25 kB / 1.123 GB, free: 30.18 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.7296, allocations: 3.844 kB / 1.123 GB, free: 30.18 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002486/0.7298, allocations: 117.6 kB / 1.123 GB, free: 30.14 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.7298, allocations: 3.844 kB / 1.123 GB, free: 30.14 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.7298, allocations: 0 / 1.123 GB, free: 30.14 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.7299, allocations: 4.094 kB / 1.123 GB, free: 30.13 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.73, allocations: 19.73 kB / 1.123 GB, free: 30.13 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.73, allocations: 11.75 kB / 1.123 GB, free: 30.12 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.694e-05/0.7301, allocations: 22.23 kB / 1.123 GB, free: 30.12 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.7301, allocations: 0 / 1.123 GB, free: 30.12 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 9.008e-05/0.7302, allocations: 130.8 kB / 1.124 GB, free: 30 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.26e-05/0.7302, allocations: 19.53 kB / 1.124 GB, free: 29.99 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.7303, allocations: 19.92 kB / 1.124 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.7303, allocations: 3.812 kB / 1.124 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.7303, allocations: 3.938 kB / 1.124 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.7303, allocations: 0 / 1.124 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.7304, allocations: 219.1 kB / 1.124 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.7304, allocations: 3.938 kB / 1.124 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.885e-05/0.7305, allocations: 13.38 kB / 1.124 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.7305, allocations: 7.812 kB / 1.124 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.7305, allocations: 0 / 1.124 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.7306, allocations: 0 / 1.124 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7306, allocations: 3.938 kB / 1.124 GB, free: 29.77 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002627/0.7308, allocations: 138.9 kB / 1.124 GB, free: 29.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.7309, allocations: 95.39 kB / 1.124 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.7309, allocations: 10.84 kB / 1.124 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.38e-05/0.731, allocations: 13 kB / 1.124 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.751e-05/0.7311, allocations: 10.44 kB / 1.124 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.7311, allocations: 3.812 kB / 1.124 GB, free: 29.59 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001372/0.7312, allocations: 188.2 kB / 1.124 GB, free: 29.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7312, allocations: 0 / 1.124 GB, free: 29.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002135/0.7315, allocations: 23.31 kB / 1.124 GB, free: 29.49 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.0002841/0.7317, allocations: 123.8 kB / 1.124 GB, free: 29.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002871/0.732, allocations: 71.58 kB / 1.125 GB, free: 29.39 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.7321, allocations: 0 / 1.125 GB, free: 29.39 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.7322, allocations: 42.59 kB / 1.125 GB, free: 29.39 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.7325, allocations: 36.27 kB / 1.125 GB, free: 29.39 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006382/0.7332, allocations: 318.3 kB / 1.125 GB, free: 29.18 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.7335, allocations: 0.722 MB / 1.126 GB, free: 28.48 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.657e-05/0.7336, allocations: 22.61 kB / 1.126 GB, free: 28.47 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.988e-05/0.7336, allocations: 15.16 kB / 1.126 GB, free: 28.46 MB / 0.698 GB Notification: Performance of SimCode: time 2.4e-07/0.7337, allocations: 0 / 1.126 GB, free: 28.46 MB / 0.698 GB Notification: Performance of Templates: time 0.004098/0.7378, allocations: 1.611 MB / 1.127 GB, free: 28.3 MB / 0.698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (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 & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)