Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfAlcohol.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.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) 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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Chemical.Examples.HeatingOfAlcohol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfAlcohol") translateModel(Chemical.Examples.HeatingOfAlcohol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfAlcohol") [: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/Chemical 1.4.0-master/package.mo): time 0.06575/0.06575, allocations: 15.27 MB / 22.55 MB, free: 1.094 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008735/0.0008736, allocations: 187.7 kB / 27.31 MB, free: 6.18 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.1/1.1, allocations: 221.4 MB / 253.3 MB, free: 10.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009192/0.0009192, allocations: 100.6 kB / 308.4 MB, free: 10.68 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.591e-06/5.81e-06, allocations: 1.344 kB / 369 MB, free: 54.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07/0.07002, allocations: 54.62 MB / 423.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2239/0.294, allocations: 99.01 MB / 0.5104 GB, free: 8.324 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001448/0.2942, allocations: 65.06 kB / 0.5105 GB, free: 8.324 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.05075/0.3449, allocations: 25.01 MB / 0.5349 GB, free: 3.352 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.345, allocations: 11.56 kB / 0.5349 GB, free: 3.352 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001338/0.3463, allocations: 0.9592 MB / 0.5358 GB, free: 2.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.3464, allocations: 7.625 kB / 0.5359 GB, free: 2.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005494/0.3469, allocations: 189.3 kB / 0.536 GB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006779/0.3476, allocations: 497.6 kB / 0.5365 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.3476, allocations: 23.06 kB / 0.5365 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.64e-05/0.3477, allocations: 38.41 kB / 0.5366 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001349/0.3491, allocations: 1.402 MB / 0.5379 GB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008951/0.35, allocations: 0.8063 MB / 0.5387 GB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.35, allocations: 15.33 kB / 0.5387 GB, free: 1.891 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.3501, allocations: 3.906 kB / 0.5387 GB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.3501, allocations: 18.75 kB / 0.5388 GB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/0.3535, allocations: 2.971 MB / 0.5417 GB, free: 16.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009237/0.3544, allocations: 1.022 MB / 0.5427 GB, free: 16.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003869/0.3548, allocations: 478.7 kB / 0.5431 GB, free: 16.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001647/0.355, allocations: 166.4 kB / 0.5433 GB, free: 16.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.355, allocations: 42.5 kB / 0.5433 GB, free: 16.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 1.913e-06/0.355, allocations: 0 / 0.5433 GB, free: 16.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.02243/0.3774, allocations: 5.19 MB / 0.5484 GB, free: 14.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.3775, allocations: 65.98 kB / 0.5484 GB, free: 14.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.3778, allocations: 314 kB / 0.5487 GB, free: 14.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.137e-05/0.3778, allocations: 26.67 kB / 0.5488 GB, free: 14.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.3781, allocations: 254.6 kB / 0.549 GB, free: 14.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/0.3783, allocations: 315.4 kB / 0.5493 GB, free: 13.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.157e-05/0.3784, allocations: 0 / 0.5493 GB, free: 13.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3785, allocations: 368.5 kB / 0.5497 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006663/0.3792, allocations: 0.5806 MB / 0.5502 GB, free: 13.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008268/0.38, allocations: 0.6992 MB / 0.5509 GB, free: 13.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/0.3818, allocations: 0.7869 MB / 0.5517 GB, free: 13.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3818, allocations: 1.188 kB / 0.5517 GB, free: 13.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.007094/0.3889, allocations: 2.07 MB / 0.5537 GB, free: 12.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.389, allocations: 5 kB / 0.5537 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.389, allocations: 11.25 kB / 0.5537 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004733/0.3937, allocations: 0.6164 MB / 0.5543 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000697/0.3944, allocations: 176.6 kB / 0.5545 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007769/0.4022, allocations: 5.074 MB / 0.5594 GB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007912/0.403, allocations: 50 kB / 0.5595 GB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.692e-05/0.4031, allocations: 46.89 kB / 0.5595 GB, free: 7.574 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Ethanol.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Ethanol.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002067/0.4033, allocations: 134 kB / 0.5597 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.4035, allocations: 54.06 kB / 0.5597 GB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008484/0.412, allocations: 2.194 MB / 0.5619 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0082/0.4202, allocations: 2.009 MB / 0.5638 GB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.4202, allocations: 0 / 0.5638 GB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.4202, allocations: 3.984 kB / 0.5638 GB, free: 4.902 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.4315, allocations: 4.288 MB / 0.568 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.4315, allocations: 11.98 kB / 0.568 GB, free: 500 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005417/0.432, allocations: 147.8 kB / 0.5682 GB, free: 352 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006481/0.4385, allocations: 0.7715 MB / 0.5689 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.792e-05/0.4386, allocations: 27.92 kB / 0.5689 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009015/0.4477, allocations: 5.357 MB / 0.5742 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005646/0.4533, allocations: 2.174 MB / 0.5763 GB, free: 7.617 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009232/0.4626, allocations: 3.346 MB / 0.5796 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.4628, allocations: 144.4 kB / 0.5797 GB, free: 3.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.4629, allocations: 8 kB / 0.5797 GB, free: 3.832 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00064/0.4635, allocations: 47.8 kB / 0.5798 GB, free: 3.785 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.947e-05/0.4636, allocations: 64.47 kB / 0.5798 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.456e-05/0.4637, allocations: 43.98 kB / 0.5799 GB, free: 3.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002318/0.4639, allocations: 248.5 kB / 0.5801 GB, free: 3.434 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001451/0.4654, allocations: 0.5071 MB / 0.5806 GB, free: 2.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 3 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 80 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 2 {1 4,4 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000812/0.4662, allocations: 0.4963 MB / 0.5811 GB, free: 2.441 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00244/0.4687, allocations: 1.612 MB / 0.5827 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4687, allocations: 0 / 0.5827 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001309/0.47, allocations: 0.9591 MB / 0.5836 GB, free: 15.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006858/0.4707, allocations: 129 kB / 0.5837 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.4731, allocations: 1.531 MB / 0.5852 GB, free: 14.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006896/0.4738, allocations: 1.029 MB / 0.5862 GB, free: 13.02 MB / 410.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4738, allocations: 3.938 kB / 0.5862 GB, free: 13.02 MB / 410.7 MB Notification: Performance of Templates: time 0.02715/0.501, allocations: 20.03 MB / 0.6058 GB, free: 9.113 MB / 426.7 MB make -j1 -f Chemical_Chemical.Examples.HeatingOfAlcohol.makefile (rm -f Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfAlcohol.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfAlcohol.sim & ./Chemical_Chemical.Examples.HeatingOfAlcohol -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.HeatingOfAlcohol.pipe 2>&1)