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: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.303/1.303, allocations: 252 MB / 267.9 MB, free: 10.91 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.0009059/0.0009063, allocations: 175 kB / 327.5 MB, free: 2.16 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.483/1.483, allocations: 205.4 MB / 0.5785 GB, free: 20.21 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.0007017/0.0007017, allocations: 82.42 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004206/0.0004206, allocations: 11.78 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1547, allocations: 106.3 MB / 0.9012 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1361/0.2908, allocations: 133.7 MB / 1.032 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.2911, allocations: 83.89 kB / 1.032 GB, free: 9.715 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008441/0.2995, allocations: 3.295 MB / 1.035 GB, free: 6.414 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.432e-06/0.2996, allocations: 0 / 1.035 GB, free: 6.414 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.468e-05/0.2996, allocations: 11.94 kB / 1.035 GB, free: 6.402 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.0004762/0.3001, allocations: 462.7 kB / 1.036 GB, free: 5.898 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.3001, allocations: 8.031 kB / 1.036 GB, free: 5.891 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.3002, allocations: 16.75 kB / 1.036 GB, free: 5.875 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.3004, allocations: 240.9 kB / 1.036 GB, free: 5.598 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.3004, allocations: 4.375 kB / 1.036 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.3004, allocations: 12.31 kB / 1.036 GB, free: 5.582 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.3007, allocations: 113.1 kB / 1.036 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3007, allocations: 192 / 1.036 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.3007, allocations: 7.938 kB / 1.036 GB, free: 5.461 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3007, allocations: 4 kB / 1.036 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.301, allocations: 75.94 kB / 1.036 GB, free: 5.383 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000542/0.3015, allocations: 396.4 kB / 1.036 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.3017, allocations: 42.56 kB / 1.036 GB, free: 4.895 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.3018, allocations: 40.89 kB / 1.036 GB, free: 4.852 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.3018, allocations: 0 / 1.036 GB, free: 4.852 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002072/0.302, allocations: 117 kB / 1.037 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.302, allocations: 0 / 1.037 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0003895/0.3024, allocations: 141.4 kB / 1.037 GB, free: 4.574 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.3025, allocations: 81.05 kB / 1.037 GB, free: 4.477 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.3027, allocations: 245 kB / 1.037 GB, free: 4.223 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.3027, allocations: 25.7 kB / 1.037 GB, free: 4.191 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.484e-05/0.3028, allocations: 128 kB / 1.037 GB, free: 4.062 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.3028, allocations: 11.91 kB / 1.037 GB, free: 4.051 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/0.3028, allocations: 0 / 1.037 GB, free: 4.051 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3029, allocations: 330.8 kB / 1.038 GB, free: 3.719 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.303, allocations: 27.97 kB / 1.038 GB, free: 3.691 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.3032, allocations: 59.34 kB / 1.038 GB, free: 3.621 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.3034, allocations: 86.5 kB / 1.038 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3034, allocations: 0 / 1.038 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002557/0.3037, allocations: 117.4 kB / 1.038 GB, free: 3.406 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.3037, allocations: 10.97 kB / 1.038 GB, free: 3.398 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3037, allocations: 0 / 1.038 GB, free: 3.398 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.3037, allocations: 3.984 kB / 1.038 GB, free: 3.395 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.923e-05/0.3038, allocations: 19.92 kB / 1.038 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.3038, allocations: 8.031 kB / 1.038 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.482e-05/0.3039, allocations: 19.92 kB / 1.038 GB, free: 3.348 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.3039, allocations: 0 / 1.038 GB, free: 3.348 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 9.877e-05/0.304, allocations: 129.8 kB / 1.038 GB, free: 3.211 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.72e-05/0.3041, allocations: 19.72 kB / 1.038 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.184e-05/0.3041, allocations: 21.19 kB / 1.038 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3041, allocations: 0 / 1.038 GB, free: 3.168 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3041, allocations: 7.938 kB / 1.038 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3041, allocations: 3.984 kB / 1.038 GB, free: 3.156 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.3043, allocations: 213.6 kB / 1.038 GB, free: 2.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3043, allocations: 4 kB / 1.038 GB, free: 2.895 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.729e-05/0.3044, allocations: 11.98 kB / 1.038 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3044, allocations: 0 / 1.038 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.3044, allocations: 4 kB / 1.038 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3044, allocations: 0 / 1.038 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.3044, allocations: 3.938 kB / 1.038 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.3047, allocations: 144.8 kB / 1.038 GB, free: 2.715 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.284e-05/0.3048, allocations: 104.9 kB / 1.038 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.3048, allocations: 0 / 1.038 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.834e-05/0.3049, allocations: 11.98 kB / 1.038 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.3049, allocations: 7.938 kB / 1.039 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.3049, allocations: 4 kB / 1.039 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001487/0.3051, allocations: 184.5 kB / 1.039 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3051, allocations: 0 / 1.039 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002077/0.3053, allocations: 23.94 kB / 1.039 GB, free: 2.371 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.0001753/0.3055, allocations: 124.2 kB / 1.039 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002499/0.3058, allocations: 75.86 kB / 1.039 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3058, allocations: 4 kB / 1.039 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.3059, allocations: 32.16 kB / 1.039 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002494/0.3061, allocations: 41.06 kB / 1.039 GB, free: 2.098 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.3066, allocations: 322.2 kB / 1.039 GB, free: 1.754 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.3069, allocations: 0.7199 MB / 1.04 GB, free: 1.008 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.288e-05/0.3069, allocations: 20.53 kB / 1.04 GB, free: 0.9883 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.307, allocations: 19.42 kB / 1.04 GB, free: 0.9688 MB / 0.6823 GB Notification: Performance of SimCode: time 2.244e-06/0.307, allocations: 4 kB / 1.04 GB, free: 0.9648 MB / 0.6823 GB Notification: Performance of Templates: time 0.003846/0.3109, allocations: 1.623 MB / 1.042 GB, free: 15.36 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)