Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 178 kB / 7.8 MB, free: 1.203 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4518/0.4518, allocations: 90.85 MB / 99.07 MB, free: 8.941 MB / 82.76 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.4 MB / 342.8 MB, free: 4.609 MB / 274.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 101.8 kB / 415.5 MB, free: 14.23 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 7.544e-06/7.584e-06, allocations: 0 / 493.9 MB, free: 7.547 MB / 386.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3959, allocations: 72.3 MB / 0.5529 GB, free: 61.7 MB / 450.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.5293, allocations: 102.7 MB / 0.6532 GB, free: 3.371 MB / 466.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.5297, allocations: 79.95 kB / 0.6532 GB, free: 3.293 MB / 466.8 MB Notification: Performance of FrontEnd: time 0.009479/0.5392, allocations: 3.011 MB / 0.6562 GB, free: 368 kB / 466.8 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.5392, allocations: 5.422 kB / 0.6562 GB, free: 364 kB / 466.8 MB 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.0006339/0.5399, allocations: 441.6 kB / 0.6566 GB, free: 15.89 MB / 482.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.5399, allocations: 8.031 kB / 0.6566 GB, free: 15.88 MB / 482.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.833e-05/0.54, allocations: 15.81 kB / 0.6566 GB, free: 15.86 MB / 482.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003195/0.5403, allocations: 241.1 kB / 0.6569 GB, free: 15.59 MB / 482.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.5403, allocations: 0 / 0.6569 GB, free: 15.59 MB / 482.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.5404, allocations: 7.906 kB / 0.6569 GB, free: 15.58 MB / 482.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001001/0.5405, allocations: 24 kB / 0.6569 GB, free: 15.55 MB / 482.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.5406, allocations: 83.53 kB / 0.657 GB, free: 15.47 MB / 482.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.5407, allocations: 3.75 kB / 0.657 GB, free: 15.47 MB / 482.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.5407, allocations: 4.625 kB / 0.657 GB, free: 15.46 MB / 482.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.5407, allocations: 0.7969 kB / 0.657 GB, free: 15.46 MB / 482.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006108/0.5413, allocations: 364.9 kB / 0.6573 GB, free: 15.08 MB / 482.8 MB Notification: Performance of preOpt comSubExp (simulation): time 4.923e-05/0.5414, allocations: 22.58 kB / 0.6573 GB, free: 15.05 MB / 482.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.548e-05/0.5414, allocations: 16.86 kB / 0.6574 GB, free: 15.03 MB / 482.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.5414, allocations: 4 kB / 0.6574 GB, free: 15.02 MB / 482.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001181/0.5416, allocations: 77.02 kB / 0.6574 GB, free: 14.93 MB / 482.8 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.5416, allocations: 6.344 kB / 0.6574 GB, free: 14.93 MB / 482.8 MB Notification: Performance of matching and sorting (n=3): time 0.0001686/0.5418, allocations: 61.5 kB / 0.6575 GB, free: 14.86 MB / 482.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.5418, allocations: 77.11 kB / 0.6576 GB, free: 14.77 MB / 482.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.542, allocations: 194.1 kB / 0.6578 GB, free: 14.57 MB / 482.8 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.5421, allocations: 29.7 kB / 0.6578 GB, free: 14.54 MB / 482.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.532e-05/0.5422, allocations: 108 kB / 0.6579 GB, free: 14.43 MB / 482.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.5422, allocations: 11.81 kB / 0.6579 GB, free: 14.41 MB / 482.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.5422, allocations: 0 / 0.6579 GB, free: 14.41 MB / 482.8 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.5423, allocations: 330.8 kB / 0.6582 GB, free: 14.08 MB / 482.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.515e-05/0.5424, allocations: 11.94 kB / 0.6582 GB, free: 14.07 MB / 482.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.737e-05/0.5424, allocations: 31.42 kB / 0.6583 GB, free: 14.03 MB / 482.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.843e-05/0.5425, allocations: 9.188 kB / 0.6583 GB, free: 14.02 MB / 482.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5425, allocations: 0 / 0.6583 GB, free: 14.02 MB / 482.8 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000119/0.5426, allocations: 73.47 kB / 0.6583 GB, free: 13.94 MB / 482.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.5426, allocations: 8 kB / 0.6583 GB, free: 13.93 MB / 482.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.5426, allocations: 3.938 kB / 0.6583 GB, free: 13.93 MB / 482.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.5426, allocations: 0 / 0.6583 GB, free: 13.93 MB / 482.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.5428, allocations: 15.98 kB / 0.6584 GB, free: 13.91 MB / 482.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.5428, allocations: 0 / 0.6584 GB, free: 13.91 MB / 482.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.5429, allocations: 20.08 kB / 0.6584 GB, free: 13.89 MB / 482.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.5429, allocations: 7.906 kB / 0.6584 GB, free: 13.89 MB / 482.8 MB 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 0.0002059/0.5431, allocations: 104.9 kB / 0.6585 GB, free: 13.78 MB / 482.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.5432, allocations: 15.81 kB / 0.6585 GB, free: 13.76 MB / 482.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.576e-05/0.5432, allocations: 17.02 kB / 0.6585 GB, free: 13.74 MB / 482.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.5432, allocations: 0 / 0.6585 GB, free: 13.74 MB / 482.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.5433, allocations: 9.688 kB / 0.6585 GB, free: 13.73 MB / 482.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.5433, allocations: 0 / 0.6585 GB, free: 13.73 MB / 482.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.5434, allocations: 194.1 kB / 0.6587 GB, free: 13.51 MB / 482.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.5434, allocations: 0 / 0.6587 GB, free: 13.51 MB / 482.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.44e-05/0.5435, allocations: 19.92 kB / 0.6587 GB, free: 13.49 MB / 482.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.5436, allocations: 0 / 0.6587 GB, free: 13.49 MB / 482.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.385e-06/0.5436, allocations: 0 / 0.6587 GB, free: 13.49 MB / 482.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.5436, allocations: 4 kB / 0.6587 GB, free: 13.48 MB / 482.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5436, allocations: 0 / 0.6587 GB, free: 13.48 MB / 482.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001294/0.5437, allocations: 95.92 kB / 0.6588 GB, free: 13.38 MB / 482.8 MB Notification: Performance of postOpt removeConstants (simulation): time 7.124e-05/0.5438, allocations: 92.92 kB / 0.6589 GB, free: 13.27 MB / 482.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.5438, allocations: 3.984 kB / 0.6589 GB, free: 13.26 MB / 482.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.5439, allocations: 19.98 kB / 0.6589 GB, free: 13.24 MB / 482.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.684e-05/0.544, allocations: 4 kB / 0.6589 GB, free: 13.24 MB / 482.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.544, allocations: 7.5 kB / 0.659 GB, free: 13.23 MB / 482.8 MB Notification: Performance of sort global known variables: time 0.0001455/0.5442, allocations: 157.4 kB / 0.6591 GB, free: 13.08 MB / 482.8 MB Notification: Performance of remove unused functions: time 0.0002186/0.5444, allocations: 23.91 kB / 0.6591 GB, free: 13.06 MB / 482.8 MB 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.000246/0.5447, allocations: 130.6 kB / 0.6592 GB, free: 12.93 MB / 482.8 MB Notification: Performance of simCode: created initialization part: time 0.0001089/0.5448, allocations: 16 kB / 0.6593 GB, free: 12.91 MB / 482.8 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.5448, allocations: 0 / 0.6593 GB, free: 12.91 MB / 482.8 MB Notification: Performance of simCode: created simulation system equations: time 3.255e-05/0.5448, allocations: 12 kB / 0.6593 GB, free: 12.9 MB / 482.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.5451, allocations: 33.95 kB / 0.6593 GB, free: 12.87 MB / 482.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004892/0.5456, allocations: 197.4 kB / 0.6595 GB, free: 12.66 MB / 482.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.546, allocations: 0.7396 MB / 0.6602 GB, free: 11.89 MB / 482.8 MB Notification: Performance of SimCode: time 3.01e-07/0.546, allocations: 1.125 kB / 0.6602 GB, free: 11.89 MB / 482.8 MB Notification: Performance of Templates: time 0.004446/0.5505, allocations: 1.546 MB / 0.6617 GB, free: 10.41 MB / 482.8 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)