Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.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: "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) [: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.07408/0.07408, allocations: 15.27 MB / 22.55 MB, free: 1.098 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.0009217/0.0009218, allocations: 183.5 kB / 27.31 MB, free: 6.188 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.154/1.154, 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.0008496/0.0008496, allocations: 100.5 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2136/0.2145, allocations: 60.73 MB / 369.1 MB, free: 54.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07143/0.2859, allocations: 54.64 MB / 423.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2499/0.5359, allocations: 99.42 MB / 0.5109 GB, free: 8.207 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001773/0.5361, allocations: 66.42 kB / 0.511 GB, free: 8.207 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H3PO4.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H3PO4. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2PO4.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2PO4. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System HPO4.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$HPO4. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System PO4.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$PO4. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System OH.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$OH. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.2068/0.7429, allocations: 85.24 MB / 0.5942 GB, free: 7.883 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.7429, allocations: 8 kB / 0.5942 GB, free: 7.875 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00225/0.7452, allocations: 0.5819 MB / 0.5948 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003134/0.7483, allocations: 1.49 MB / 0.5963 GB, free: 5.773 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.7485, allocations: 190.5 kB / 0.5964 GB, free: 5.562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003608/0.7489, allocations: 115.9 kB / 0.5965 GB, free: 5.449 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006359/0.7552, allocations: 5.013 MB / 0.6014 GB, free: 440 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004137/0.7594, allocations: 2.751 MB / 0.6041 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.7594, allocations: 4 kB / 0.6041 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.7596, allocations: 0 / 0.6041 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.7596, allocations: 44 kB / 0.6042 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.7762, allocations: 10.87 MB / 0.6148 GB, free: 2.551 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004312/0.7806, allocations: 3.902 MB / 0.6186 GB, free: 14.67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002016/0.7826, allocations: 1.897 MB / 0.6205 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007458/0.7833, allocations: 0.5798 MB / 0.621 GB, free: 12.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.7834, allocations: 60.5 kB / 0.6211 GB, free: 12.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 3.917e-06/0.7834, allocations: 0 / 0.6211 GB, free: 12.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=304): time 0.05126/0.8347, allocations: 16.33 MB / 0.637 GB, free: 11.82 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.8348, allocations: 81.69 kB / 0.6371 GB, free: 11.73 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.8362, allocations: 0.9686 MB / 0.638 GB, free: 10.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004487/0.8367, allocations: 25.7 kB / 0.6381 GB, free: 10.72 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002995/0.837, allocations: 0.5188 MB / 0.6386 GB, free: 10.19 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/0.838, allocations: 0.9697 MB / 0.6395 GB, free: 9.207 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.8383, allocations: 4 kB / 0.6395 GB, free: 9.203 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.8385, allocations: 407.5 kB / 0.6399 GB, free: 8.801 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002784/0.8413, allocations: 2.165 MB / 0.642 GB, free: 6.633 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002906/0.8442, allocations: 2.43 MB / 0.6444 GB, free: 4.129 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005936/0.8501, allocations: 2.846 MB / 0.6472 GB, free: 1.262 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.8502, allocations: 4 kB / 0.6472 GB, free: 1.258 MB / 458.7 MB Notification: Performance of matching and sorting (n=345) (initialization): time 0.01902/0.8692, allocations: 6.798 MB / 0.6538 GB, free: 10.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.8693, allocations: 8 kB / 0.6538 GB, free: 10.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.8693, allocations: 4 kB / 0.6538 GB, free: 10.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00494/0.8742, allocations: 1.101 MB / 0.6549 GB, free: 9.281 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003149/0.8774, allocations: 0.5967 MB / 0.6555 GB, free: 8.684 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006383/0.8838, allocations: 4.491 MB / 0.6599 GB, free: 3.938 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004029/0.8878, allocations: 227.7 kB / 0.6601 GB, free: 3.715 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005637/0.8884, allocations: 151.8 kB / 0.6602 GB, free: 3.566 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H.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: H.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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 302 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 14,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006533/0.8891, allocations: 148.5 kB / 0.6604 GB, free: 3.414 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/0.8896, allocations: 193.6 kB / 0.6606 GB, free: 3.223 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.15/1.04, allocations: 8.052 MB / 0.6684 GB, free: 140.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02119/1.061, allocations: 7.298 MB / 0.6756 GB, free: 140.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.995e-05/1.061, allocations: 1.75 kB / 0.6756 GB, free: 140.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.44e-05/1.061, allocations: 17.69 kB / 0.6756 GB, free: 140.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03147/1.092, allocations: 16.72 MB / 0.6919 GB, free: 139.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/1.093, allocations: 17.09 kB / 0.6919 GB, free: 139.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002408/1.095, allocations: 0.5521 MB / 0.6925 GB, free: 139.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009443/1.104, allocations: 2.249 MB / 0.6947 GB, free: 139.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003867/1.105, allocations: 79.25 kB / 0.6947 GB, free: 139.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/1.119, allocations: 9.404 MB / 0.7039 GB, free: 136.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00591/1.125, allocations: 2.551 MB / 0.7064 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02532/1.151, allocations: 11.89 MB / 0.718 GB, free: 133.3 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02946/1.18, allocations: 15.62 MB / 0.7333 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007927/1.181, allocations: 306.8 kB / 0.7336 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004355/1.181, allocations: 29.91 kB / 0.7336 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002534/1.184, allocations: 126.5 kB / 0.7337 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004336/1.184, allocations: 236.7 kB / 0.734 GB, free: 126.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003175/1.185, allocations: 137.1 kB / 0.7341 GB, free: 126.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.00104/1.186, allocations: 0.7469 MB / 0.7348 GB, free: 126.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005906/1.192, allocations: 2.053 MB / 0.7368 GB, free: 126.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 53 * Number of states: 8 ($STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$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 (297): * Single equations (assignments): 293 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 14,9 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002372/1.194, allocations: 1.484 MB / 0.7383 GB, free: 126 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007875/1.202, allocations: 5.541 MB / 0.7437 GB, free: 123.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.202, allocations: 2.844 kB / 0.7437 GB, free: 123.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005615/1.208, allocations: 3.525 MB / 0.7471 GB, free: 122.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/1.211, allocations: 0.5248 MB / 0.7476 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009114/1.22, allocations: 5.057 MB / 0.7526 GB, free: 120.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00198/1.222, allocations: 1.965 MB / 0.7545 GB, free: 118.7 MB / 474.7 MB Notification: Performance of SimCode: time 4.81e-07/1.222, allocations: 4 kB / 0.7545 GB, free: 118.7 MB / 474.7 MB (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)