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 3.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 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009847/0.0009849, allocations: 167.3 kB / 16.76 MB, free: 4.938 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.4701/0.4701, allocations: 86.27 MB / 103.8 MB, free: 14.55 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 223.2 MB / 348.4 MB, free: 5.008 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007644/0.0007643, allocations: 106.5 kB / 420.2 MB, free: 9.664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004179/0.0004179, allocations: 12 kB / 0.4901 GB, free: 8.02 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3383, allocations: 71.02 MB / 0.5595 GB, free: 43.84 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.4717, allocations: 102.1 MB / 0.6591 GB, free: 7.441 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.4719, allocations: 79.94 kB / 0.6592 GB, free: 7.363 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009071/0.481, allocations: 3.333 MB / 0.6625 GB, free: 4.035 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.287e-05/0.4811, allocations: 0 / 0.6625 GB, free: 4.035 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.4811, allocations: 7.938 kB / 0.6625 GB, free: 4.027 MB / 474.7 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.000539/0.4816, allocations: 458.8 kB / 0.6629 GB, free: 3.527 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.4817, allocations: 8.031 kB / 0.6629 GB, free: 3.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.06e-05/0.4817, allocations: 20.66 kB / 0.6629 GB, free: 3.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.482, allocations: 236.9 kB / 0.6632 GB, free: 3.227 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.482, allocations: 4.375 kB / 0.6632 GB, free: 3.223 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.482, allocations: 4.375 kB / 0.6632 GB, free: 3.219 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.4823, allocations: 114.2 kB / 0.6633 GB, free: 3.102 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.4823, allocations: 192 / 0.6633 GB, free: 3.102 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.4824, allocations: 7.922 kB / 0.6633 GB, free: 3.094 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.4824, allocations: 4 kB / 0.6633 GB, free: 3.09 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.4826, allocations: 83.94 kB / 0.6634 GB, free: 3.008 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000604/0.4832, allocations: 392.4 kB / 0.6638 GB, free: 2.574 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.4834, allocations: 54.42 kB / 0.6638 GB, free: 2.512 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.4835, allocations: 42.08 kB / 0.6638 GB, free: 2.469 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.4835, allocations: 0 / 0.6638 GB, free: 2.469 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.4837, allocations: 97.09 kB / 0.6639 GB, free: 2.355 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.4837, allocations: 0 / 0.6639 GB, free: 2.355 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.000413/0.4842, allocations: 149.4 kB / 0.6641 GB, free: 2.203 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4842, allocations: 84.98 kB / 0.6642 GB, free: 2.102 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.4845, allocations: 252.8 kB / 0.6644 GB, free: 1.836 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.4845, allocations: 25.7 kB / 0.6644 GB, free: 1.805 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.4846, allocations: 120.1 kB / 0.6645 GB, free: 1.684 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.4846, allocations: 7.844 kB / 0.6645 GB, free: 1.676 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.4846, allocations: 0 / 0.6645 GB, free: 1.676 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4847, allocations: 330.8 kB / 0.6649 GB, free: 1.344 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.4849, allocations: 35.97 kB / 0.6649 GB, free: 1.309 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.485, allocations: 55.41 kB / 0.665 GB, free: 1.242 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.4852, allocations: 90.5 kB / 0.665 GB, free: 1.145 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.4852, allocations: 0 / 0.665 GB, free: 1.145 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002563/0.4855, allocations: 121.4 kB / 0.6652 GB, free: 1.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.4855, allocations: 8 kB / 0.6652 GB, free: 1.012 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.4855, allocations: 0 / 0.6652 GB, free: 1.012 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.4855, allocations: 4 kB / 0.6652 GB, free: 1.008 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.4856, allocations: 15.98 kB / 0.6652 GB, free: 0.9922 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.4856, allocations: 3.938 kB / 0.6652 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.935e-05/0.4857, allocations: 15.98 kB / 0.6652 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.4858, allocations: 4.031 kB / 0.6652 GB, free: 0.9688 MB / 474.7 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 () * 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.975e-05/0.4859, allocations: 129.8 kB / 0.6653 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.428e-05/0.4859, allocations: 15.81 kB / 0.6653 GB, free: 0.8164 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.431e-05/0.4859, allocations: 21.23 kB / 0.6654 GB, free: 0.793 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4859, allocations: 0 / 0.6654 GB, free: 0.793 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.4859, allocations: 3.938 kB / 0.6654 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.4859, allocations: 288 / 0.6654 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.4861, allocations: 217.6 kB / 0.6656 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4861, allocations: 4 kB / 0.6656 GB, free: 0.5234 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.907e-05/0.4862, allocations: 19.92 kB / 0.6656 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4862, allocations: 3.984 kB / 0.6656 GB, free: 0.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.4862, allocations: 4 kB / 0.6656 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4863, allocations: 0 / 0.6656 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4863, allocations: 3.938 kB / 0.6656 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.4865, allocations: 140.8 kB / 0.6657 GB, free: 344 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.35e-05/0.4866, allocations: 96.91 kB / 0.6658 GB, free: 228 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.4866, allocations: 4 kB / 0.6658 GB, free: 224 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.16e-05/0.4867, allocations: 15.98 kB / 0.6659 GB, free: 208 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.4868, allocations: 19.8 kB / 0.6659 GB, free: 188 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.4868, allocations: 4 kB / 0.6659 GB, free: 184 kB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001576/0.4869, allocations: 184.5 kB / 0.6661 GB, free: 0 / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.487, allocations: 0 / 0.6661 GB, free: 0 / 474.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.4872, allocations: 23.98 kB / 0.6661 GB, free: 15.97 MB / 490.7 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 () * 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.0001881/0.4874, allocations: 125.8 kB / 0.6662 GB, free: 15.85 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002656/0.4877, allocations: 68.02 kB / 0.6663 GB, free: 15.78 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4877, allocations: 0 / 0.6663 GB, free: 15.78 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.4878, allocations: 35.97 kB / 0.6663 GB, free: 15.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.488, allocations: 34.8 kB / 0.6663 GB, free: 15.71 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004787/0.4885, allocations: 318.2 kB / 0.6666 GB, free: 15.38 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.4888, allocations: 0.7238 MB / 0.6673 GB, free: 14.62 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.419e-05/0.4889, allocations: 16.55 kB / 0.6674 GB, free: 14.61 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.4889, allocations: 11.44 kB / 0.6674 GB, free: 14.6 MB / 490.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4889, allocations: 3.938 kB / 0.6674 GB, free: 14.59 MB / 490.7 MB Notification: Performance of Templates: time 0.004941/0.4939, allocations: 1.626 MB / 0.669 GB, free: 13 MB / 490.7 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)