Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.Carnot,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot") translateModel(Buildings.Fluid.Chillers.Examples.Carnot,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot") [: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/Buildings 1.6.0+build.1/package.mo): time 0.4991/0.4991, allocations: 94.73 MB / 102 MB, free: 10.36 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001196/0.001196, allocations: 179.7 kB / 125.3 MB, free: 11.99 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.266/1.266, allocations: 170.5 MB / 319 MB, free: 9.359 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001687/0.001687, allocations: 105.2 kB / 381 MB, free: 18.17 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.362e-06/6.412e-06, allocations: 0 / 448.6 MB, free: 2.137 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1455, allocations: 61.52 MB / 0.4981 GB, free: 4.527 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.127/1.272, allocations: 421.3 MB / 0.9096 GB, free: 189.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/1.273, allocations: 88 kB / 0.9096 GB, free: 189.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 0.9725/2.245, allocations: 361 MB / 1.262 GB, free: 57.53 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002154/2.245, allocations: 38.77 kB / 1.262 GB, free: 57.5 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.00516/2.251, allocations: 1.606 MB / 1.264 GB, free: 55.85 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/2.251, allocations: 8.031 kB / 1.264 GB, free: 55.84 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/2.252, allocations: 186 kB / 1.264 GB, free: 55.66 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003702/2.256, allocations: 1.386 MB / 1.265 GB, free: 54.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.169e-05/2.256, allocations: 32 kB / 1.265 GB, free: 54.22 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002817/2.256, allocations: 56 kB / 1.265 GB, free: 54.17 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001618/2.258, allocations: 0.6717 MB / 1.266 GB, free: 53.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/2.259, allocations: 0.9427 MB / 1.267 GB, free: 52.49 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/2.259, allocations: 0 / 1.267 GB, free: 52.49 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.031e-05/2.259, allocations: 4 kB / 1.267 GB, free: 52.48 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/2.259, allocations: 24 kB / 1.267 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005867/2.265, allocations: 5.412 MB / 1.272 GB, free: 46.78 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003615/2.266, allocations: 287 kB / 1.273 GB, free: 46.49 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002501/2.266, allocations: 203.6 kB / 1.273 GB, free: 46.29 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004008/2.266, allocations: 0.6608 MB / 1.273 GB, free: 45.48 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/2.266, allocations: 43 kB / 1.273 GB, free: 45.43 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=50): time 2.164e-06/2.266, allocations: 0 / 1.273 GB, free: 45.43 MB / 0.5261 GB Notification: Performance of matching and sorting (n=56): time 0.003245/2.27, allocations: 1.395 MB / 1.275 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/2.27, allocations: 166.7 kB / 1.275 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008181/2.27, allocations: 0.7538 MB / 1.276 GB, free: 43.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.158e-05/2.27, allocations: 29.7 kB / 1.276 GB, free: 42.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/2.271, allocations: 497.8 kB / 1.276 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/2.271, allocations: 189.2 kB / 1.276 GB, free: 42.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/2.271, allocations: 0 / 1.276 GB, free: 42.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.422e-05/2.271, allocations: 337.9 kB / 1.277 GB, free: 41.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/2.271, allocations: 218 kB / 1.277 GB, free: 41.75 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/2.272, allocations: 0.5661 MB / 1.277 GB, free: 41.01 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/2.272, allocations: 361.6 kB / 1.278 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/2.272, allocations: 0 / 1.278 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001398/2.274, allocations: 0.8486 MB / 1.279 GB, free: 39.81 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006283/2.274, allocations: 3.49 MB / 1.282 GB, free: 36.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/2.275, allocations: 8 kB / 1.282 GB, free: 36.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/2.275, allocations: 16 kB / 1.282 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007955/2.275, allocations: 227.7 kB / 1.282 GB, free: 35.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/2.275, allocations: 15.94 kB / 1.282 GB, free: 35.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008942/2.276, allocations: 87.77 kB / 1.282 GB, free: 35.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.588e-05/2.276, allocations: 43.98 kB / 1.282 GB, free: 35.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.971e-06/2.276, allocations: 7.938 kB / 1.282 GB, free: 35.65 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/2.277, allocations: 0.6506 MB / 1.283 GB, free: 35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/2.277, allocations: 8 kB / 1.283 GB, free: 34.99 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/2.277, allocations: 23.7 kB / 1.283 GB, free: 34.97 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007315/2.278, allocations: 224.1 kB / 1.283 GB, free: 34.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/2.278, allocations: 19.94 kB / 1.283 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006636/2.279, allocations: 79.78 kB / 1.283 GB, free: 34.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.704e-05/2.279, allocations: 36 kB / 1.283 GB, free: 34.62 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0001482/2.279, allocations: 146.5 kB / 1.284 GB, free: 34.47 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/2.279, allocations: 106.7 kB / 1.284 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/2.28, allocations: 0.5655 MB / 1.284 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/2.28, allocations: 4 kB / 1.284 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/2.28, allocations: 0 / 1.284 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/2.28, allocations: 7.984 kB / 1.284 GB, free: 33.78 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/2.282, allocations: 1.499 MB / 1.286 GB, free: 32.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/2.282, allocations: 0 / 1.286 GB, free: 32.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005707/2.283, allocations: 147.8 kB / 1.286 GB, free: 32.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-06/2.283, allocations: 8 kB / 1.286 GB, free: 32.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/2.283, allocations: 11.98 kB / 1.286 GB, free: 32.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/2.283, allocations: 4 kB / 1.286 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/2.283, allocations: 7.938 kB / 1.286 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001197/2.284, allocations: 1.042 MB / 1.287 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/2.285, allocations: 191.7 kB / 1.287 GB, free: 30.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/2.285, allocations: 10.31 kB / 1.287 GB, free: 30.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000665/2.285, allocations: 59.92 kB / 1.287 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.479e-05/2.285, allocations: 40.38 kB / 1.287 GB, free: 30.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/2.286, allocations: 31.97 kB / 1.287 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005696/2.286, allocations: 0.5617 MB / 1.288 GB, free: 30 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001766/2.288, allocations: 0.6403 MB / 1.288 GB, free: 29.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (chi.vol1.dynBal.medium.T,chi.vol2.dynBal.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 60 * 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.001048/2.289, allocations: 0.6417 MB / 1.289 GB, free: 28.78 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001115/2.29, allocations: 0.9438 MB / 1.29 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/2.29, allocations: 3.75 kB / 1.29 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002893/2.29, allocations: 253.4 kB / 1.29 GB, free: 27.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/2.293, allocations: 0.5492 MB / 1.291 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003692/2.296, allocations: 1.903 MB / 1.293 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007635/2.297, allocations: 1.255 MB / 1.294 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of SimCode: time 7.32e-07/2.297, allocations: 0 / 1.294 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of Templates: time 0.2815/2.579, allocations: 27.43 MB / 1.321 GB, free: 128.3 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot.makefile (rm -f Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot.sim & ./Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Chillers.Examples.Carnot.pipe 2>&1)