Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility.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.GasSolubility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility") translateModel(Chemical.Examples.GasSolubility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.GasSolubility") [: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.06404/0.06404, allocations: 15.27 MB / 22.55 MB, free: 1.09 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.0008841/0.0008842, allocations: 183.6 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.09/1.09, allocations: 221.4 MB / 253.3 MB, free: 11.26 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.0008432/0.0008432, allocations: 96.66 kB / 308.4 MB, free: 11.17 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.711e-06/5.741e-06, allocations: 1.281 kB / 369 MB, free: 54.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06984/0.06986, allocations: 54.63 MB / 423.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2291/0.299, allocations: 102.4 MB / 0.5137 GB, free: 8.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001237/0.2992, allocations: 64.47 kB / 0.5138 GB, free: 8.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2005/0.4996, allocations: 90.52 MB / 0.6022 GB, free: 1.008 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001042/0.4998, allocations: 44 kB / 0.6022 GB, free: 0.9648 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 539 * Number of variables: 539 Notification: Performance of Generate backend data structure: time 0.005838/0.5056, allocations: 2.539 MB / 0.6047 GB, free: 14.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.5057, allocations: 8.031 kB / 0.6047 GB, free: 14.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002592/0.5083, allocations: 0.6697 MB / 0.6054 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.5107, allocations: 1.278 MB / 0.6066 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.565e-05/0.5108, allocations: 68 kB / 0.6067 GB, free: 12.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002693/0.5111, allocations: 135.9 kB / 0.6068 GB, free: 12.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006627/0.5177, allocations: 5.627 MB / 0.6123 GB, free: 6.555 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003814/0.5215, allocations: 2.841 MB / 0.6151 GB, free: 3.637 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.861e-05/0.5216, allocations: 0 / 0.6151 GB, free: 3.637 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/0.5217, allocations: 4 kB / 0.6151 GB, free: 3.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.911e-05/0.5218, allocations: 48 kB / 0.6151 GB, free: 3.582 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01506/0.5368, allocations: 10.69 MB / 0.6256 GB, free: 8.719 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003784/0.5406, allocations: 3.483 MB / 0.629 GB, free: 5.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.5425, allocations: 1.628 MB / 0.6306 GB, free: 3.621 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00071/0.5432, allocations: 0.5775 MB / 0.6311 GB, free: 3.059 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.5432, allocations: 56.47 kB / 0.6312 GB, free: 2.996 MB / 442.7 MB Notification: Performance of pre-optimization done (n=233): time 3.657e-06/0.5432, allocations: 0 / 0.6312 GB, free: 2.996 MB / 442.7 MB Notification: Performance of matching and sorting (n=316): time 0.05358/0.5968, allocations: 15.19 MB / 0.646 GB, free: 3.836 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.5969, allocations: 81.78 kB / 0.6461 GB, free: 3.742 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/0.5986, allocations: 1.349 MB / 0.6474 GB, free: 2.375 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001876/0.5988, allocations: 25.7 kB / 0.6474 GB, free: 2.344 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/0.5991, allocations: 0.6335 MB / 0.648 GB, free: 1.699 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007978/0.5999, allocations: 1.012 MB / 0.649 GB, free: 0.6719 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.6001, allocations: 0 / 0.649 GB, free: 0.6719 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.6003, allocations: 424.3 kB / 0.6494 GB, free: 256 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002565/0.6028, allocations: 2.12 MB / 0.6515 GB, free: 14.13 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002777/0.6056, allocations: 2.491 MB / 0.6539 GB, free: 11.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006134/0.6118, allocations: 2.923 MB / 0.6568 GB, free: 8.582 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.6118, allocations: 4 kB / 0.6568 GB, free: 8.578 MB / 474.7 MB Notification: Performance of matching and sorting (n=393) (initialization): time 0.01476/0.6266, allocations: 6.388 MB / 0.663 GB, free: 2.141 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.6266, allocations: 4 kB / 0.663 GB, free: 2.137 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/0.6266, allocations: 11.91 kB / 0.6631 GB, free: 2.125 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005121/0.6317, allocations: 0.7584 MB / 0.6638 GB, free: 1.348 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002664/0.6344, allocations: 0.6591 MB / 0.6644 GB, free: 0.6875 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1173/0.7517, allocations: 8.203 MB / 0.6724 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002805/0.7545, allocations: 186.7 kB / 0.6726 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002672/0.7548, allocations: 148.5 kB / 0.6728 GB, free: 128.3 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_unbound_erythrocyte.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: CO2_unbound_erythrocyte.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_unbound_plasma.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: CO2_unbound_plasma.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: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (353): * Single equations (assignments): 343 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 8,1 3,1 6,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004348/0.7553, allocations: 178.9 kB / 0.6729 GB, free: 128.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.7556, allocations: 177.6 kB / 0.6731 GB, free: 128.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01719/0.7727, allocations: 6.68 MB / 0.6796 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01568/0.7884, allocations: 6.011 MB / 0.6855 GB, free: 127.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.7885, allocations: 3.781 kB / 0.6855 GB, free: 127.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.468e-05/0.7885, allocations: 17.72 kB / 0.6855 GB, free: 127.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02381/0.8123, allocations: 16.2 MB / 0.7013 GB, free: 126.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/0.8124, allocations: 19.09 kB / 0.7014 GB, free: 126.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/0.8143, allocations: 0.5584 MB / 0.7019 GB, free: 126.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009691/0.824, allocations: 1.596 MB / 0.7035 GB, free: 126.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002017/0.8242, allocations: 66.27 kB / 0.7035 GB, free: 126.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/0.8395, allocations: 11.85 MB / 0.7151 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01045/0.85, allocations: 4.596 MB / 0.7196 GB, free: 117.8 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01726/0.8672, allocations: 10.06 MB / 0.7294 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/0.8678, allocations: 318.6 kB / 0.7297 GB, free: 115.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002947/0.8681, allocations: 29.92 kB / 0.7297 GB, free: 115.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/0.8699, allocations: 118.3 kB / 0.7299 GB, free: 115.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002598/0.8702, allocations: 243.9 kB / 0.7301 GB, free: 115.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.8703, allocations: 128.8 kB / 0.7302 GB, free: 115.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0008616/0.8712, allocations: 1.051 MB / 0.7312 GB, free: 114.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003829/0.875, allocations: 1.825 MB / 0.733 GB, free: 114.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 74 * Number of states: 9 ($STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[4],$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 (308): * Single equations (assignments): 302 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {1 8,6 9,1 6,5 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002169/0.8772, allocations: 1.691 MB / 0.7347 GB, free: 114.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00649/0.8837, allocations: 5.196 MB / 0.7397 GB, free: 113.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.8837, allocations: 1.281 kB / 0.7397 GB, free: 113.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003841/0.8876, allocations: 2.956 MB / 0.7426 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.8892, allocations: 329.8 kB / 0.743 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006784/0.896, allocations: 4.781 MB / 0.7476 GB, free: 109.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/0.8978, allocations: 1.879 MB / 0.7495 GB, free: 108.9 MB / 474.7 MB Notification: Performance of SimCode: time 7.31e-07/0.8978, allocations: 0 / 0.7495 GB, free: 108.9 MB / 474.7 MB Notification: Performance of Templates: time 0.06816/0.966, allocations: 62.26 MB / 0.8103 GB, free: 74.43 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.GasSolubility.makefile (rm -f Chemical_Chemical.Examples.GasSolubility.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility.sim & ./Chemical_Chemical.Examples.GasSolubility -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.GasSolubility.pipe 2>&1)