Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.H2O_ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.H2O_ElectrochemicalCell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 112.6 kB / 16.37 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 196 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08768/0.08768, allocations: 15.29 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 63.08 kB / 371.7 MB, free: 50.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 53.61 MB / 425.4 MB, free: 13.31 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.H2O_ElectrochemicalCell): time 0.03493/0.1369, allocations: 27.59 MB / 452.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02193/0.1589, allocations: 19.39 MB / 472.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001559/0.1605, allocations: 23.88 kB / 472.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.162, allocations: 0.4924 MB / 472.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004225/0.1662, allocations: 1.23 MB / 474.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009062/0.1753, allocations: 2.823 MB / 476.9 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004211/0.1795, allocations: 2.101 MB / 479 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00178/0.1813, allocations: 1.349 MB / 480.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001283/0.1826, allocations: 0.9075 MB / 481.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/0.184, allocations: 1.055 MB / 482.3 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002549/0.1843, allocations: 200 kB / 482.5 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006211/0.1905, allocations: 2.056 MB / 484.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004714/0.191, allocations: 470.6 kB / 485 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.192, allocations: 0.9839 MB / 486 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008496/0.2005, allocations: 4.189 MB / 490.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.2006, allocations: 0 / 490.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2006, allocations: 0 / 490.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.879e-05/0.2007, allocations: 4 kB / 490.2 MB, free: 12.38 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004413/0.2051, allocations: 2.349 MB / 492.5 MB, free: 9.977 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.2051, allocations: 8.031 kB / 492.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001631/0.2068, allocations: 438 kB / 493 MB, free: 9.539 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001782/0.2086, allocations: 1.08 MB / 494.1 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.2087, allocations: 179 kB / 494.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/0.209, allocations: 171.9 kB / 494.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/0.2121, allocations: 2.206 MB / 496.6 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.079e-05/0.2121, allocations: 8 kB / 496.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.2123, allocations: 64 kB / 496.7 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.169e-05/0.2123, allocations: 44 kB / 496.7 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003762/0.2161, allocations: 2.684 MB / 499.4 MB, free: 2.984 MB / 366.1 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.01024/0.2263, allocations: 7.204 MB / 0.4947 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.2281, allocations: 1.184 MB / 0.4959 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008117/0.2289, allocations: 0.5573 MB / 0.4964 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007719/0.2366, allocations: 5.115 MB / 0.5014 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.2367, allocations: 39.12 kB / 0.5015 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004859/0.2372, allocations: 110.6 kB / 0.5016 GB, free: 3.891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 4.098e-06/0.2372, allocations: 0 / 0.5016 GB, free: 3.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=95): time 0.2055/0.4427, allocations: 4.806 MB / 0.5063 GB, free: 77.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.4428, allocations: 117.9 kB / 0.5064 GB, free: 77.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.4444, allocations: 1.471 MB / 0.5078 GB, free: 77.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001184/0.4445, allocations: 43.3 kB / 0.5079 GB, free: 77.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000578/0.4451, allocations: 0.898 MB / 0.5087 GB, free: 76.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/0.4454, allocations: 341.5 kB / 0.5091 GB, free: 76.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005805/0.4459, allocations: 358.5 kB / 0.5094 GB, free: 76.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.753e-05/0.446, allocations: 303.5 kB / 0.5097 GB, free: 76.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.4471, allocations: 0.6225 MB / 0.5103 GB, free: 76.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.4486, allocations: 1.338 MB / 0.5116 GB, free: 74.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001974/0.4506, allocations: 1.914 MB / 0.5135 GB, free: 73.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.4506, allocations: 7.875 kB / 0.5135 GB, free: 73.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006212/0.4568, allocations: 2.363 MB / 0.5158 GB, free: 72.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.445e-05/0.4569, allocations: 18.19 kB / 0.5158 GB, free: 72.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-05/0.457, allocations: 24.02 kB / 0.5158 GB, free: 72.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003137/0.4602, allocations: 375.8 kB / 0.5162 GB, free: 72.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002987/0.4632, allocations: 0.562 MB / 0.5167 GB, free: 72.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007525/0.4707, allocations: 7.895 MB / 0.5245 GB, free: 64.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.4725, allocations: 95.45 kB / 0.5245 GB, free: 64.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002147/0.4727, allocations: 100.1 kB / 0.5246 GB, free: 64.85 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007539/0.4735, allocations: 368.8 kB / 0.525 GB, free: 64.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000299/0.4738, allocations: 126 kB / 0.5251 GB, free: 64.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004588/0.4784, allocations: 1.54 MB / 0.5266 GB, free: 63.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.4784, allocations: 11.59 kB / 0.5266 GB, free: 63.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4784, allocations: 2.812 kB / 0.5266 GB, free: 63.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.4784, allocations: 7.719 kB / 0.5266 GB, free: 63.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006424/0.4849, allocations: 3.013 MB / 0.5296 GB, free: 62.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.699e-06/0.4849, allocations: 3.969 kB / 0.5296 GB, free: 62.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007835/0.4857, allocations: 215.7 kB / 0.5298 GB, free: 62.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002641/0.4884, allocations: 409.5 kB / 0.5302 GB, free: 62.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.851e-05/0.4885, allocations: 46 kB / 0.5302 GB, free: 62.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006408/0.4949, allocations: 7.704 MB / 0.5377 GB, free: 54.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.4949, allocations: 11.34 kB / 0.5378 GB, free: 54.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004607/0.4995, allocations: 2.157 MB / 0.5399 GB, free: 53.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004402/0.5, allocations: 205.8 kB / 0.5401 GB, free: 53.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.5002, allocations: 30.23 kB / 0.5401 GB, free: 53.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006942/0.5009, allocations: 26.59 kB / 0.5401 GB, free: 53.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.5011, allocations: 114.2 kB / 0.5402 GB, free: 53.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.5012, allocations: 52.58 kB / 0.5403 GB, free: 53.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001004/0.5022, allocations: 1.015 MB / 0.5413 GB, free: 52.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5022, allocations: 0 / 0.5413 GB, free: 52.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002479/0.5047, allocations: 0.8108 MB / 0.5421 GB, free: 52.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001416/0.5061, allocations: 0.8783 MB / 0.5429 GB, free: 51.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00297/0.5091, allocations: 1.767 MB / 0.5446 GB, free: 50.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.5091, allocations: 4 kB / 0.5446 GB, free: 50.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.5102, allocations: 0.9966 MB / 0.5456 GB, free: 49.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.5116, allocations: 242.6 kB / 0.5458 GB, free: 48.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003679/0.5153, allocations: 2.821 MB / 0.5486 GB, free: 46.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.5159, allocations: 1.224 MB / 0.5498 GB, free: 44.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009722/0.5169, allocations: 327.4 kB / 0.5501 GB, free: 44.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.5172, allocations: 178.3 kB / 0.5503 GB, free: 44.51 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5172, allocations: 0 / 0.5503 GB, free: 44.51 MB / 382.1 MB Notification: Performance of Templates: time 0.03446/0.5517, allocations: 27.68 MB / 0.5773 GB, free: 17.57 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile (rm -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)