Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.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.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation") [: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.7193/0.7193, allocations: 141.8 MB / 149.1 MB, free: 2.094 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.001036/0.001036, allocations: 175.8 kB / 181.9 MB, free: 14.12 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 221.3 MB / 436 MB, free: 7.066 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.0009952/0.0009952, allocations: 98.02 kB / 0.507 GB, free: 24.42 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001781/0.001782, allocations: 281.8 kB / 0.5884 GB, free: 10.32 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.247e-06/9.287e-06, allocations: 3.938 kB / 0.6759 GB, free: 0.6719 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4162/0.4162, allocations: 82.75 MB / 0.7567 GB, free: 110.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.295/3.711, allocations: 1.692 GB / 2.448 GB, free: 103.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/3.711, allocations: 104.7 kB / 2.448 GB, free: 103.2 MB / 0.6982 GB Notification: Performance of FrontEnd: time 0.14/3.852, allocations: 64.46 MB / 2.511 GB, free: 38.59 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001455/3.852, allocations: 31.94 kB / 2.511 GB, free: 38.56 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.002756/3.854, allocations: 1.273 MB / 2.513 GB, free: 37.24 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/3.855, allocations: 8.031 kB / 2.513 GB, free: 37.23 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001318/3.856, allocations: 230.1 kB / 2.513 GB, free: 37 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/3.858, allocations: 0.7834 MB / 2.514 GB, free: 36.18 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.059e-05/3.858, allocations: 32 kB / 2.514 GB, free: 36.14 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/3.858, allocations: 56 kB / 2.514 GB, free: 36.09 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001766/3.86, allocations: 1.019 MB / 2.515 GB, free: 35.07 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/3.861, allocations: 0.8014 MB / 2.515 GB, free: 34.23 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.519e-05/3.861, allocations: 0 / 2.515 GB, free: 34.23 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.54e-05/3.861, allocations: 3.984 kB / 2.515 GB, free: 34.23 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/3.861, allocations: 24 kB / 2.515 GB, free: 34.2 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003964/3.865, allocations: 2.554 MB / 2.518 GB, free: 31.59 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008655/3.866, allocations: 0.6333 MB / 2.519 GB, free: 30.95 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/3.867, allocations: 234.8 kB / 2.519 GB, free: 30.72 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 8.853e-05/3.867, allocations: 32.67 kB / 2.519 GB, free: 30.69 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005122/3.867, allocations: 366.1 kB / 2.519 GB, free: 30.31 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=69): time 2.826e-06/3.867, allocations: 0 / 2.519 GB, free: 30.31 MB / 0.6982 GB Notification: Performance of matching and sorting (n=69): time 0.001596/3.869, allocations: 0.6441 MB / 2.52 GB, free: 29.66 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.711e-05/3.869, allocations: 240 kB / 2.52 GB, free: 29.37 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007671/3.87, allocations: 0.6136 MB / 2.521 GB, free: 28.75 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/3.87, allocations: 29.69 kB / 2.521 GB, free: 28.71 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/3.87, allocations: 367.6 kB / 2.521 GB, free: 28.34 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/3.87, allocations: 220.8 kB / 2.521 GB, free: 28.12 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/3.87, allocations: 4 kB / 2.521 GB, free: 28.12 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.856e-05/3.87, allocations: 329.9 kB / 2.522 GB, free: 27.79 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/3.871, allocations: 193.3 kB / 2.522 GB, free: 27.6 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/3.871, allocations: 282.4 kB / 2.522 GB, free: 27.3 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003697/3.871, allocations: 231 kB / 2.522 GB, free: 27.07 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/3.871, allocations: 4 kB / 2.522 GB, free: 27.07 MB / 0.6982 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001341/3.873, allocations: 0.6441 MB / 2.523 GB, free: 26.41 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/3.873, allocations: 8.062 kB / 2.523 GB, free: 26.41 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/3.873, allocations: 0 / 2.523 GB, free: 26.41 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006632/3.873, allocations: 88.72 kB / 2.523 GB, free: 26.32 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005567/3.874, allocations: 127.9 kB / 2.523 GB, free: 26.19 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/3.876, allocations: 1.466 MB / 2.524 GB, free: 24.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/3.876, allocations: 63.61 kB / 2.525 GB, free: 24.54 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/3.876, allocations: 27.98 kB / 2.525 GB, free: 24.51 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001505/3.877, allocations: 124.8 kB / 2.525 GB, free: 24.38 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/3.877, allocations: 90.88 kB / 2.525 GB, free: 24.29 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/3.879, allocations: 0.897 MB / 2.526 GB, free: 23.4 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/3.879, allocations: 11.94 kB / 2.526 GB, free: 23.39 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/3.879, allocations: 3.906 kB / 2.526 GB, free: 23.39 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/3.879, allocations: 7.922 kB / 2.526 GB, free: 23.38 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009539/3.88, allocations: 0.8191 MB / 2.526 GB, free: 22.52 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/3.88, allocations: 0 / 2.526 GB, free: 22.52 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005283/3.88, allocations: 131.9 kB / 2.527 GB, free: 22.39 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005156/3.881, allocations: 92.7 kB / 2.527 GB, free: 22.3 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.857e-05/3.881, allocations: 15.89 kB / 2.527 GB, free: 22.29 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/3.882, allocations: 1.484 MB / 2.528 GB, free: 20.68 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/3.882, allocations: 0 / 2.528 GB, free: 20.68 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001351/3.884, allocations: 0.7531 MB / 2.529 GB, free: 19.91 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003934/3.884, allocations: 299.6 kB / 2.529 GB, free: 19.59 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/3.884, allocations: 4.062 kB / 2.529 GB, free: 19.59 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005396/3.885, allocations: 51.95 kB / 2.529 GB, free: 19.54 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/3.885, allocations: 48.7 kB / 2.529 GB, free: 19.49 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/3.885, allocations: 31.97 kB / 2.529 GB, free: 19.46 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0005759/3.885, allocations: 495.1 kB / 2.53 GB, free: 18.98 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001193/3.887, allocations: 362.8 kB / 2.53 GB, free: 18.62 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001788/3.888, allocations: 1.048 MB / 2.531 GB, free: 17.66 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001166/3.89, allocations: 0.6316 MB / 2.532 GB, free: 17.02 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/3.89, allocations: 3.984 kB / 2.532 GB, free: 17.02 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005897/3.89, allocations: 432.7 kB / 2.532 GB, free: 16.59 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/3.892, allocations: 343.3 kB / 2.533 GB, free: 16.26 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003847/3.896, allocations: 1.515 MB / 2.534 GB, free: 14.71 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007357/3.896, allocations: 1.205 MB / 2.535 GB, free: 13.48 MB / 0.6982 GB Notification: Performance of SimCode: time 8.91e-07/3.896, allocations: 3.938 kB / 2.535 GB, free: 13.48 MB / 0.6982 GB Notification: Performance of Templates: time 0.3916/4.288, allocations: 18.49 MB / 2.553 GB, free: 265.3 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1)