Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.8128/0.8128, allocations: 141.8 MB / 149.1 MB, free: 4.465 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001115, allocations: 183.4 kB / 181.9 MB, free: 152 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 221.3 MB / 436 MB, free: 9.227 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008813/0.0008813, allocations: 88.52 kB / 0.507 GB, free: 24.32 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001805/0.001805, allocations: 277.6 kB / 0.5884 GB, free: 12.32 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 6.312e-06/6.342e-06, allocations: 0 / 0.6759 GB, free: 2.688 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4728/0.4728, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.5996, allocations: 109.8 MB / 0.8639 GB, free: 2.961 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.5999, allocations: 79.77 kB / 0.864 GB, free: 2.887 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.008474/0.6084, allocations: 3.005 MB / 0.8669 GB, free: 15.91 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.835e-05/0.6085, allocations: 7.938 kB / 0.8669 GB, free: 15.9 MB / 0.5419 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.000613/0.6091, allocations: 438.4 kB / 0.8674 GB, free: 15.43 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.6091, allocations: 16.91 kB / 0.8674 GB, free: 15.42 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.127e-05/0.6092, allocations: 24.91 kB / 0.8674 GB, free: 15.39 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.6096, allocations: 233.8 kB / 0.8676 GB, free: 15.12 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.6096, allocations: 4 kB / 0.8676 GB, free: 15.12 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.6096, allocations: 4.844 kB / 0.8676 GB, free: 15.12 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001142/0.6097, allocations: 35.98 kB / 0.8677 GB, free: 15.08 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.6099, allocations: 75.05 kB / 0.8677 GB, free: 15 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.6099, allocations: 0 / 0.8677 GB, free: 15 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.61, allocations: 0 / 0.8677 GB, free: 15 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.61, allocations: 4.703 kB / 0.8677 GB, free: 15 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006637/0.6106, allocations: 365 kB / 0.8681 GB, free: 14.6 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.026e-05/0.6107, allocations: 22.58 kB / 0.8681 GB, free: 14.57 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.584e-05/0.6108, allocations: 12.92 kB / 0.8681 GB, free: 14.55 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.6108, allocations: 3.938 kB / 0.8681 GB, free: 14.55 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001262/0.6109, allocations: 77.11 kB / 0.8682 GB, free: 14.46 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.6109, allocations: 8 kB / 0.8682 GB, free: 14.45 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3): time 0.0002003/0.6111, allocations: 57.5 kB / 0.8683 GB, free: 14.39 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.6112, allocations: 77.11 kB / 0.8683 GB, free: 14.29 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.6115, allocations: 202 kB / 0.8685 GB, free: 14.09 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.6115, allocations: 25.7 kB / 0.8685 GB, free: 14.05 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.6116, allocations: 108 kB / 0.8687 GB, free: 13.95 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.6116, allocations: 7.906 kB / 0.8687 GB, free: 13.94 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.6116, allocations: 0 / 0.8687 GB, free: 13.94 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0002093/0.6118, allocations: 326.8 kB / 0.869 GB, free: 13.61 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.237e-05/0.6119, allocations: 15.92 kB / 0.869 GB, free: 13.59 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.694e-05/0.6119, allocations: 32.75 kB / 0.869 GB, free: 13.55 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.54e-05/0.612, allocations: 9.188 kB / 0.869 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.612, allocations: 3.938 kB / 0.869 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000126/0.6121, allocations: 69.53 kB / 0.8691 GB, free: 13.46 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.6121, allocations: 8 kB / 0.8691 GB, free: 13.46 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.6121, allocations: 0 / 0.8691 GB, free: 13.46 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.6122, allocations: 3.906 kB / 0.8691 GB, free: 13.45 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.6123, allocations: 15.98 kB / 0.8691 GB, free: 13.44 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.6123, allocations: 0 / 0.8691 GB, free: 13.44 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.6124, allocations: 20.02 kB / 0.8691 GB, free: 13.42 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.6125, allocations: 4 kB / 0.8691 GB, free: 13.41 MB / 0.5419 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 () * 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 8.92e-05/0.6126, allocations: 108.9 kB / 0.8693 GB, free: 13.3 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.6126, allocations: 23.72 kB / 0.8693 GB, free: 13.28 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.6126, allocations: 13.03 kB / 0.8693 GB, free: 13.27 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.6127, allocations: 5.688 kB / 0.8693 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.6127, allocations: 4 kB / 0.8693 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.6127, allocations: 0 / 0.8693 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.6129, allocations: 190.1 kB / 0.8695 GB, free: 13.04 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.6129, allocations: 0 / 0.8695 GB, free: 13.04 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.675e-05/0.613, allocations: 19.92 kB / 0.8695 GB, free: 13.02 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.613, allocations: 0 / 0.8695 GB, free: 13.02 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.613, allocations: 0 / 0.8695 GB, free: 13.02 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.613, allocations: 7.906 kB / 0.8695 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.613, allocations: 0 / 0.8695 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001453/0.6132, allocations: 89.06 kB / 0.8696 GB, free: 12.9 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.051e-05/0.6133, allocations: 100.9 kB / 0.8697 GB, free: 12.79 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.6133, allocations: 0 / 0.8697 GB, free: 12.79 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.6134, allocations: 19.98 kB / 0.8697 GB, free: 12.77 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.6135, allocations: 0 / 0.8697 GB, free: 12.77 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.6135, allocations: 11.98 kB / 0.8697 GB, free: 12.75 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.000157/0.6137, allocations: 158.1 kB / 0.8699 GB, free: 12.6 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002784/0.6139, allocations: 23.91 kB / 0.8699 GB, free: 12.58 MB / 0.5419 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 () * 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.0003141/0.6143, allocations: 128 kB / 0.87 GB, free: 12.45 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001177/0.6144, allocations: 31.92 kB / 0.87 GB, free: 12.42 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.6144, allocations: 0 / 0.87 GB, free: 12.42 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 3.421e-05/0.6144, allocations: 12 kB / 0.8701 GB, free: 12.41 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.6147, allocations: 33.64 kB / 0.8701 GB, free: 12.38 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005164/0.6153, allocations: 191.4 kB / 0.8703 GB, free: 12.16 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.6157, allocations: 0.7383 MB / 0.871 GB, free: 11.4 MB / 0.5419 GB Notification: Performance of SimCode: time 5.21e-07/0.6157, allocations: 0 / 0.871 GB, free: 11.4 MB / 0.5419 GB Notification: Performance of Templates: time 0.004791/0.6205, allocations: 1.558 MB / 0.8725 GB, free: 9.871 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)