Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.493/3.493, allocations: 251.1 MB / 266.7 MB, free: 11.54 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.002153/0.002152, allocations: 182.9 kB / 326.2 MB, free: 2.848 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.024/4.024, allocations: 205.4 MB / 0.5772 GB, free: 20.76 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.001599/0.001599, allocations: 97.98 kB / 0.6817 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007761/0.0007765, allocations: 11.62 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3162, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.6535, allocations: 133.5 MB / 1.03 GB, free: 11.84 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000481/0.6541, allocations: 83.89 kB / 1.03 GB, free: 11.76 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 0.0231/0.6772, allocations: 3.295 MB / 1.033 GB, free: 8.461 MB / 0.6824 GB Notification: Performance of FrontEnd: time 3.807e-06/0.6773, allocations: 0 / 1.033 GB, free: 8.461 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 3.493e-05/0.6773, allocations: 8 kB / 1.033 GB, free: 8.453 MB / 0.6824 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.001167/0.6785, allocations: 470.6 kB / 1.034 GB, free: 7.941 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.6786, allocations: 8.031 kB / 1.034 GB, free: 7.934 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.6787, allocations: 16.75 kB / 1.034 GB, free: 7.918 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005889/0.6793, allocations: 233 kB / 1.034 GB, free: 7.648 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.6794, allocations: 4.375 kB / 1.034 GB, free: 7.645 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.6795, allocations: 8.375 kB / 1.034 GB, free: 7.637 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006709/0.6802, allocations: 110.5 kB / 1.034 GB, free: 7.523 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.6802, allocations: 192 / 1.034 GB, free: 7.523 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.193e-05/0.6803, allocations: 7.938 kB / 1.034 GB, free: 7.516 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.6803, allocations: 7.984 kB / 1.034 GB, free: 7.508 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006771/0.681, allocations: 79.92 kB / 1.034 GB, free: 7.43 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.6824, allocations: 392.4 kB / 1.034 GB, free: 6.996 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.6828, allocations: 46.55 kB / 1.034 GB, free: 6.941 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003154/0.6831, allocations: 36.91 kB / 1.035 GB, free: 6.902 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.6832, allocations: 4 kB / 1.035 GB, free: 6.898 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005783/0.6838, allocations: 109 kB / 1.035 GB, free: 6.773 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=3): time 3.737e-06/0.6838, allocations: 0 / 1.035 GB, free: 6.773 MB / 0.6824 GB Notification: Performance of matching and sorting (n=3): time 0.00114/0.6849, allocations: 141.4 kB / 1.035 GB, free: 6.629 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.444e-05/0.6851, allocations: 85.05 kB / 1.035 GB, free: 6.527 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006166/0.6857, allocations: 248.9 kB / 1.035 GB, free: 6.27 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.6858, allocations: 29.7 kB / 1.035 GB, free: 6.234 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.6859, allocations: 124 kB / 1.035 GB, free: 6.109 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.686, allocations: 3.906 kB / 1.035 GB, free: 6.105 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/0.686, allocations: 0 / 1.035 GB, free: 6.105 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0002166/0.6862, allocations: 338.8 kB / 1.036 GB, free: 5.766 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.6866, allocations: 27.98 kB / 1.036 GB, free: 5.738 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003357/0.6869, allocations: 63.34 kB / 1.036 GB, free: 5.664 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/0.6873, allocations: 32 kB / 1.036 GB, free: 5.633 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.375e-06/0.6873, allocations: 4 kB / 1.036 GB, free: 5.629 MB / 0.6824 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008517/0.6882, allocations: 117.4 kB / 1.036 GB, free: 5.508 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.6883, allocations: 4 kB / 1.036 GB, free: 5.504 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.6883, allocations: 4 kB / 1.036 GB, free: 5.5 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.6883, allocations: 0 / 1.036 GB, free: 5.5 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.6886, allocations: 20.08 kB / 1.036 GB, free: 5.48 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.6886, allocations: 3.938 kB / 1.036 GB, free: 5.477 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.6889, allocations: 23.83 kB / 1.036 GB, free: 5.453 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.689, allocations: 7.984 kB / 1.036 GB, free: 5.445 MB / 0.6824 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.0002647/0.6893, allocations: 125.8 kB / 1.036 GB, free: 5.312 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.23e-05/0.6894, allocations: 15.81 kB / 1.036 GB, free: 5.297 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.769e-05/0.6895, allocations: 25.17 kB / 1.036 GB, free: 5.27 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.6895, allocations: 4 kB / 1.036 GB, free: 5.266 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.6895, allocations: 7.938 kB / 1.036 GB, free: 5.258 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.6895, allocations: 0 / 1.036 GB, free: 5.258 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003781/0.6899, allocations: 213.6 kB / 1.036 GB, free: 5 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.69, allocations: 288 / 1.036 GB, free: 5 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.6902, allocations: 19.92 kB / 1.036 GB, free: 4.98 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.6902, allocations: 0 / 1.036 GB, free: 4.98 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.6903, allocations: 0 / 1.036 GB, free: 4.98 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.6903, allocations: 0 / 1.036 GB, free: 4.98 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.6903, allocations: 7.938 kB / 1.036 GB, free: 4.973 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008307/0.6911, allocations: 140.9 kB / 1.036 GB, free: 4.816 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.6913, allocations: 96.91 kB / 1.036 GB, free: 4.703 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.621e-05/0.6914, allocations: 0 / 1.036 GB, free: 4.703 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.6917, allocations: 15.98 kB / 1.037 GB, free: 4.688 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.436e-05/0.6918, allocations: 11.92 kB / 1.037 GB, free: 4.676 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.626e-05/0.6919, allocations: 8 kB / 1.037 GB, free: 4.668 MB / 0.6824 GB Notification: Performance of sorting global known variables: time 0.000433/0.6924, allocations: 180.4 kB / 1.037 GB, free: 4.496 MB / 0.6824 GB Notification: Performance of sort global known variables: time 6.72e-07/0.6924, allocations: 4 kB / 1.037 GB, free: 4.492 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.0005868/0.693, allocations: 31.84 kB / 1.037 GB, free: 4.461 MB / 0.6824 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.0004273/0.6934, allocations: 121.4 kB / 1.037 GB, free: 4.336 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.0007725/0.6942, allocations: 71.94 kB / 1.037 GB, free: 4.266 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 5.902e-06/0.6943, allocations: 0 / 1.037 GB, free: 4.266 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.6946, allocations: 36.11 kB / 1.037 GB, free: 4.23 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007478/0.6954, allocations: 39.05 kB / 1.037 GB, free: 4.195 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.6967, allocations: 318.4 kB / 1.037 GB, free: 3.855 MB / 0.6824 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/0.6972, allocations: 0.7199 MB / 1.038 GB, free: 3.109 MB / 0.6824 GB Notification: Performance of simCode: alias equations: time 0.0002034/0.6975, allocations: 16.55 kB / 1.038 GB, free: 3.094 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.6976, allocations: 23.36 kB / 1.038 GB, free: 3.07 MB / 0.6824 GB Notification: Performance of SimCode: time 1.372e-06/0.6976, allocations: 0 / 1.038 GB, free: 3.07 MB / 0.6824 GB Notification: Performance of Templates: time 0.01054/0.7082, allocations: 1.606 MB / 1.04 GB, free: 1.477 MB / 0.6824 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)