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: translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1045/0.1045, allocations: 15.26 MB / 27.81 MB, free: 5.391 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.001028/0.001028, allocations: 188.4 kB / 32.7 MB, free: 0.5117 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.403/1.403, allocations: 221.4 MB / 258.8 MB, free: 15.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 88.28 kB / 314 MB, free: 15.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.801e-05/3.825e-05, allocations: 3.984 kB / 376.5 MB, free: 1.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3467, allocations: 54.6 MB / 431.1 MB, free: 49.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.4876, allocations: 100.2 MB / 0.5188 GB, free: 15.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.4879, allocations: 72.75 kB / 0.5189 GB, free: 15.06 MB / 394.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.4811/0.969, allocations: 83.6 MB / 0.6005 GB, free: 89.22 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.9691, allocations: 1.312 kB / 0.6005 GB, free: 89.22 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001005/0.9692, allocations: 42.72 kB / 0.6006 GB, free: 89.22 MB / 442.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.006221/0.9754, allocations: 2.456 MB / 0.603 GB, free: 88.02 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.9755, allocations: 10.59 kB / 0.603 GB, free: 88.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002649/0.9781, allocations: 0.5577 MB / 0.6035 GB, free: 87.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003921/0.9821, allocations: 1.475 MB / 0.605 GB, free: 87.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003017/0.9824, allocations: 255.3 kB / 0.6052 GB, free: 87.37 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007408/0.9832, allocations: 190.3 kB / 0.6054 GB, free: 87.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00657/0.9897, allocations: 3.578 MB / 0.6089 GB, free: 87.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.282e-05/0.9898, allocations: 3.75 kB / 0.6089 GB, free: 87.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002025/0.99, allocations: 74.53 kB / 0.6089 GB, free: 87.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.167e-05/0.9901, allocations: 46.72 kB / 0.609 GB, free: 87.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007282/0.9974, allocations: 5.101 MB / 0.614 GB, free: 87.2 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01829/1.016, allocations: 11.05 MB / 0.6248 GB, free: 83.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007238/1.023, allocations: 5.779 MB / 0.6304 GB, free: 80.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002032/1.025, allocations: 1.963 MB / 0.6323 GB, free: 79.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008637/1.026, allocations: 0.5701 MB / 0.6329 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/1.026, allocations: 56.41 kB / 0.6329 GB, free: 79.43 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002013/1.028, allocations: 323.1 kB / 0.6332 GB, free: 79.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 6.642e-06/1.028, allocations: 3.938 kB / 0.6332 GB, free: 79.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=312): time 0.04334/1.071, allocations: 16.2 MB / 0.6491 GB, free: 73.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007874/1.079, allocations: 4.613 MB / 0.6536 GB, free: 70.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/1.081, allocations: 1.083 MB / 0.6546 GB, free: 69.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006923/1.082, allocations: 73.58 kB / 0.6547 GB, free: 69.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004469/1.082, allocations: 0.7314 MB / 0.6554 GB, free: 69.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00132/1.084, allocations: 1.037 MB / 0.6564 GB, free: 68.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00044/1.084, allocations: 60.12 kB / 0.6565 GB, free: 68.39 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001942/1.084, allocations: 415.2 kB / 0.6569 GB, free: 68.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003322/1.088, allocations: 2.225 MB / 0.6591 GB, free: 65.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00325/1.091, allocations: 2.521 MB / 0.6615 GB, free: 63.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003306/1.094, allocations: 2.404 MB / 0.6639 GB, free: 61.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.799e-06/1.094, allocations: 4 kB / 0.6639 GB, free: 61.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=353) (initialization): time 0.01633/1.111, allocations: 6.466 MB / 0.6702 GB, free: 56.01 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/1.111, allocations: 8.688 kB / 0.6702 GB, free: 56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-05/1.111, allocations: 7.938 kB / 0.6702 GB, free: 55.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004798/1.116, allocations: 1.15 MB / 0.6713 GB, free: 55.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003329/1.119, allocations: 0.6002 MB / 0.6719 GB, free: 54.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006038/1.125, allocations: 4.638 MB / 0.6764 GB, free: 49.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/1.13, allocations: 378 kB / 0.6768 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008528/1.131, allocations: 156 kB / 0.6769 GB, free: 49.66 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (316): * Single equations (assignments): 310 * 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.001018/1.132, allocations: 237 kB / 0.6772 GB, free: 49.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008077/1.132, allocations: 209.4 kB / 0.6774 GB, free: 49.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/1.154, allocations: 7.83 MB / 0.685 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02035/1.174, allocations: 7.018 MB / 0.6919 GB, free: 35.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/1.175, allocations: 0 / 0.6919 GB, free: 35.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/1.175, allocations: 19.92 kB / 0.6919 GB, free: 35.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03492/1.21, allocations: 16.83 MB / 0.7083 GB, free: 18.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-05/1.21, allocations: 14.38 kB / 0.7083 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002746/1.212, allocations: 0.5578 MB / 0.7089 GB, free: 17.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009284/1.222, allocations: 2.345 MB / 0.7112 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007842/1.223, allocations: 131.7 kB / 0.7113 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.236, allocations: 9.261 MB / 0.7203 GB, free: 5.762 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005805/1.242, allocations: 2.729 MB / 0.723 GB, free: 2.902 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02782/1.27, allocations: 11.62 MB / 0.7344 GB, free: 6.551 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/1.271, allocations: 326.3 kB / 0.7347 GB, free: 6.211 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/1.272, allocations: 75.98 kB / 0.7347 GB, free: 6.137 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00385/1.276, allocations: 231.7 kB / 0.735 GB, free: 5.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/1.277, allocations: 337.5 kB / 0.7353 GB, free: 5.578 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007227/1.278, allocations: 139.9 kB / 0.7354 GB, free: 5.441 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00172/1.28, allocations: 0.8471 MB / 0.7362 GB, free: 4.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.28, allocations: 0 / 0.7362 GB, free: 4.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008047/1.288, allocations: 1.925 MB / 0.7381 GB, free: 2.664 MB / 458.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 (305): * Single equations (assignments): 301 * 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.00452/1.292, allocations: 1.508 MB / 0.7396 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01151/1.304, allocations: 5.647 MB / 0.7451 GB, free: 11.62 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/1.304, allocations: 4 kB / 0.7451 GB, free: 11.62 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008565/1.313, allocations: 3.762 MB / 0.7488 GB, free: 7.805 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004108/1.317, allocations: 0.6045 MB / 0.7494 GB, free: 7.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/1.327, allocations: 5.162 MB / 0.7544 GB, free: 1.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001919/1.329, allocations: 1.66 MB / 0.756 GB, free: 148 kB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.2678/1.597, allocations: 481.2 kB / 0.7565 GB, free: 109.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/1.598, allocations: 276.1 kB / 0.7568 GB, free: 109.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.122e-06/1.598, allocations: 3.562 kB / 0.7568 GB, free: 109.3 MB / 474.7 MB Notification: Performance of Templates: time 0.1009/1.699, allocations: 70.24 MB / 0.8254 GB, free: 91.64 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile (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 & ./Chemical_Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)