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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1028/0.1028, allocations: 15.26 MB / 30.21 MB, free: 3.297 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 181.2 kB / 35.29 MB, free: 2.375 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.5/1.5, allocations: 223.2 MB / 263.4 MB, free: 6.887 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.001166/0.001166, allocations: 90.39 kB / 318.8 MB, free: 3.832 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003273/0.0003274, allocations: 8.656 kB / 384 MB, free: 50.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1149, allocations: 54.65 MB / 438.7 MB, free: 360 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/0.5152, allocations: 100.2 MB / 0.5262 GB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.5155, allocations: 71.88 kB / 0.5263 GB, free: 15.56 MB / 378.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: Performance of FrontEnd - DAE generated: time 0.2035/0.719, allocations: 83.85 MB / 0.6082 GB, free: 12.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.7191, allocations: 0 / 0.6082 GB, free: 12.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000111/0.7192, allocations: 40 kB / 0.6082 GB, free: 12.35 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.007737/0.7269, allocations: 2.68 MB / 0.6109 GB, free: 9.609 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.727, allocations: 12.03 kB / 0.6109 GB, free: 9.598 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007009/0.7277, allocations: 257.8 kB / 0.6111 GB, free: 9.336 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002368/0.7301, allocations: 0.5625 MB / 0.6117 GB, free: 8.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003741/0.7338, allocations: 1.484 MB / 0.6131 GB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002158/0.7341, allocations: 250.5 kB / 0.6133 GB, free: 6.961 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004064/0.7345, allocations: 199.8 kB / 0.6135 GB, free: 6.766 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0054/0.7399, allocations: 3.617 MB / 0.6171 GB, free: 3.113 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.098e-05/0.7399, allocations: 0 / 0.6171 GB, free: 3.113 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002035/0.7402, allocations: 72 kB / 0.6171 GB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.7402, allocations: 47.94 kB / 0.6172 GB, free: 2.996 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007218/0.7474, allocations: 5.171 MB / 0.6222 GB, free: 13.82 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01942/0.7669, allocations: 11.06 MB / 0.633 GB, free: 2.469 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008616/0.7755, allocations: 5.805 MB / 0.6387 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001044/0.7766, allocations: 0.5747 MB / 0.6393 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/0.7767, allocations: 56.56 kB / 0.6393 GB, free: 11.9 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002351/0.779, allocations: 330.1 kB / 0.6396 GB, free: 11.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 6.281e-06/0.779, allocations: 0 / 0.6396 GB, free: 11.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=296): time 0.05475/0.8338, allocations: 15.44 MB / 0.6547 GB, free: 11.99 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.8339, allocations: 85.67 kB / 0.6548 GB, free: 11.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.8369, allocations: 1.097 MB / 0.6559 GB, free: 10.78 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008696/0.8378, allocations: 73.7 kB / 0.6559 GB, free: 10.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009192/0.8387, allocations: 0.738 MB / 0.6567 GB, free: 9.961 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001933/0.8406, allocations: 0.9778 MB / 0.6576 GB, free: 8.969 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000259/0.8409, allocations: 52 kB / 0.6577 GB, free: 8.918 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002999/0.8412, allocations: 403.2 kB / 0.658 GB, free: 8.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004881/0.8461, allocations: 1.828 MB / 0.6598 GB, free: 6.688 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005635/0.8518, allocations: 2.102 MB / 0.6619 GB, free: 4.508 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006503/0.8584, allocations: 1.99 MB / 0.6638 GB, free: 2.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-05/0.8585, allocations: 0 / 0.6638 GB, free: 2.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=329) (initialization): time 0.03094/0.8894, allocations: 5.618 MB / 0.6693 GB, free: 12.82 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.8895, allocations: 4 kB / 0.6693 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.8895, allocations: 8 kB / 0.6693 GB, free: 12.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008661/0.8982, allocations: 1.195 MB / 0.6705 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003941/0.9022, allocations: 0.5539 MB / 0.671 GB, free: 11.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008799/0.911, allocations: 4.708 MB / 0.6756 GB, free: 6.051 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/0.914, allocations: 107.9 kB / 0.6757 GB, free: 5.945 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003614/0.9144, allocations: 119.9 kB / 0.6758 GB, free: 5.828 MB / 474.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * 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): 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.001221/0.9156, allocations: 441.7 kB / 0.6763 GB, free: 5.387 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004822/0.9161, allocations: 205.5 kB / 0.6765 GB, free: 5.184 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.291/1.207, allocations: 5.982 MB / 0.6823 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.665e-05/1.207, allocations: 31.75 kB / 0.6823 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/1.207, allocations: 10.66 kB / 0.6823 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001181/1.207, allocations: 15.19 kB / 0.6824 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02889/1.236, allocations: 12.74 MB / 0.6948 GB, free: 91.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.806e-05/1.236, allocations: 12.72 kB / 0.6948 GB, free: 91.99 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002618/1.239, allocations: 0.5353 MB / 0.6953 GB, free: 91.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005589/1.245, allocations: 1.211 MB / 0.6965 GB, free: 91.96 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005591/1.245, allocations: 97.59 kB / 0.6966 GB, free: 91.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006011/1.251, allocations: 4.658 MB / 0.7012 GB, free: 88.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/1.251, allocations: 17.12 kB / 0.7012 GB, free: 88.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02072/1.272, allocations: 9.283 MB / 0.7102 GB, free: 87.14 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006239/1.273, allocations: 280 kB / 0.7105 GB, free: 87.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000469/1.273, allocations: 67.92 kB / 0.7106 GB, free: 87.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001554/1.275, allocations: 107.3 kB / 0.7107 GB, free: 87.01 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004995/1.275, allocations: 287.9 kB / 0.711 GB, free: 87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/1.275, allocations: 121.3 kB / 0.7111 GB, free: 87 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009947/1.276, allocations: 0.8524 MB / 0.7119 GB, free: 86.89 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.276, allocations: 3.188 kB / 0.7119 GB, free: 86.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003544/1.28, allocations: 1.395 MB / 0.7133 GB, free: 86.89 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * 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): 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 3,1 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.02153/1.302, allocations: 14.01 MB / 0.7269 GB, free: 81.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006719/1.308, allocations: 4.753 MB / 0.7316 GB, free: 81.25 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/1.308, allocations: 5.094 kB / 0.7316 GB, free: 81.25 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003848/1.312, allocations: 2.764 MB / 0.7343 GB, free: 80.05 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/1.315, allocations: 0.5889 MB / 0.7349 GB, free: 79.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/1.327, allocations: 12.08 MB / 0.7467 GB, free: 70.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/1.328, allocations: 1.559 MB / 0.7482 GB, free: 69.75 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002204/1.33, allocations: 433.6 kB / 0.7486 GB, free: 69.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/1.332, allocations: 0.9469 MB / 0.7495 GB, free: 69 MB / 474.7 MB Notification: Performance of SimCode: time 2.585e-06/1.332, allocations: 1.5 kB / 0.7495 GB, free: 69 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.116/1.448, allocations: 77.92 MB / 0.8256 GB, free: 22.04 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/1.448, allocations: 181 kB / 0.8258 GB, free: 21.81 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.626/6.074, allocations: 7.875 kB / 0.8258 GB, free: 21.8 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)