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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001206/0.001206, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001353/0.001353, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2357/0.2357, allocations: 15.26 MB / 306.2 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.000385, allocations: 16 kB / 371.4 MB, free: 4.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3209, allocations: 54.62 MB / 426 MB, free: 40.21 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65: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.0-master/package.mo:3011:6-3011:65: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.006809/0.3277, allocations: 7.663 MB / 433.6 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.3436, allocations: 16.56 MB / 450.2 MB, free: 26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001395/0.3451, allocations: 31.69 kB / 450.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.3462, allocations: 479.4 kB / 450.7 MB, free: 25.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003035/0.3493, allocations: 1.386 MB / 452.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006361/0.3556, allocations: 2.531 MB / 454.6 MB, free: 23.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002021/0.3577, allocations: 1.411 MB / 456 MB, free: 22.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009401/0.3586, allocations: 1.019 MB / 457 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006729/0.3593, allocations: 0.706 MB / 457.8 MB, free: 21.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000791/0.3601, allocations: 0.897 MB / 458.6 MB, free: 21.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.3603, allocations: 108.4 kB / 458.8 MB, free: 21.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006252/0.3665, allocations: 2.265 MB / 461 MB, free: 21.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003436/0.3669, allocations: 359.8 kB / 461.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004341/0.3673, allocations: 351.1 kB / 461.7 MB, free: 20.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004625/0.372, allocations: 2.578 MB / 464.3 MB, free: 19.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.372, allocations: 0 / 464.3 MB, free: 19.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.372, allocations: 0 / 464.3 MB, free: 19.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.239e-05/0.372, allocations: 0 / 464.3 MB, free: 19.85 MB / 350.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.003788/0.3758, allocations: 2.01 MB / 466.3 MB, free: 18.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3759, allocations: 10.41 kB / 466.3 MB, free: 18.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/0.3774, allocations: 443.2 kB / 466.7 MB, free: 18.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001679/0.3791, allocations: 1.009 MB / 467.8 MB, free: 17.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.3793, allocations: 178.8 kB / 467.9 MB, free: 17.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/0.3796, allocations: 166.4 kB / 468.1 MB, free: 17.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003312/0.3829, allocations: 2.195 MB / 470.3 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.383, allocations: 1.375 kB / 470.3 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/0.3831, allocations: 67.83 kB / 470.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.574e-05/0.3832, allocations: 53.17 kB / 470.4 MB, free: 16.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003974/0.3871, allocations: 2.659 MB / 473.1 MB, free: 15.85 MB / 350.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.0105/0.3977, allocations: 7.231 MB / 480.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.3994, allocations: 1.185 MB / 481.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007798/0.4072, allocations: 4.996 MB / 486.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.4073, allocations: 38.5 kB / 486.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005046/0.4078, allocations: 104.5 kB / 486.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 3.126e-06/0.4078, allocations: 1.031 kB / 486.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=87): time 0.01768/0.4255, allocations: 4.621 MB / 491.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.4256, allocations: 111.8 kB / 491.3 MB, free: 3.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.427, allocations: 1.483 MB / 492.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.454e-05/0.427, allocations: 45.64 kB / 492.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003887/0.4274, allocations: 0.9047 MB / 493.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.4276, allocations: 315.6 kB / 494.1 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-05/0.4277, allocations: 36 kB / 494.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.725e-05/0.4278, allocations: 369.9 kB / 494.5 MB, free: 416 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007872/0.4286, allocations: 0.5974 MB / 495.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/0.4299, allocations: 1.31 MB / 496.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.431, allocations: 0.7836 MB / 497.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.431, allocations: 8 kB / 497.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005219/0.4363, allocations: 2.323 MB / 499.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.4363, allocations: 16 kB / 499.5 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.79e-05/0.4364, allocations: 27.98 kB / 499.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002637/0.439, allocations: 395.2 kB / 499.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/0.4411, allocations: 0.5461 MB / 0.4887 GB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008213/0.4494, allocations: 7.39 MB / 0.496 GB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.4512, allocations: 111.8 kB / 0.4961 GB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001992/0.4514, allocations: 112 kB / 0.4962 GB, free: 1.832 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * 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 (216): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 3 {1 1,1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007531/0.4522, allocations: 361.1 kB / 0.4965 GB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/0.4524, allocations: 130.4 kB / 0.4966 GB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/0.457, allocations: 1.464 MB / 0.4981 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.457, allocations: 8 kB / 0.4981 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.457, allocations: 4 kB / 0.4981 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.4571, allocations: 7.984 kB / 0.4981 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006697/0.4638, allocations: 2.834 MB / 0.5009 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.4638, allocations: 8 kB / 0.5009 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008006/0.4646, allocations: 203.7 kB / 0.5011 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002817/0.4674, allocations: 432.9 kB / 0.5015 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-05/0.4676, allocations: 43.92 kB / 0.5015 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007467/0.475, allocations: 7.192 MB / 0.5085 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.4751, allocations: 15.88 kB / 0.5086 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005044/0.4801, allocations: 2.356 MB / 0.5109 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006226/0.4808, allocations: 227.3 kB / 0.5111 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003663/0.4811, allocations: 27.95 kB / 0.5111 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007757/0.4819, allocations: 39.98 kB / 0.5111 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.4821, allocations: 104.4 kB / 0.5112 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.578e-05/0.4822, allocations: 43.98 kB / 0.5113 GB, free: 1.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.4834, allocations: 1.017 MB / 0.5123 GB, free: 320 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4835, allocations: 4 kB / 0.5123 GB, free: 316 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.003375/0.4868, allocations: 0.7963 MB / 0.5131 GB, free: 15.51 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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 (94): * Single equations (assignments): 88 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 5 {1 1,1 1,1 3,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00188/0.4887, allocations: 0.8391 MB / 0.5139 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003283/0.492, allocations: 1.688 MB / 0.5155 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.492, allocations: 0 / 0.5155 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.4934, allocations: 0.968 MB / 0.5165 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.4946, allocations: 202.4 kB / 0.5167 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004908/0.4995, allocations: 3.389 MB / 0.52 GB, free: 8.246 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.5006, allocations: 1.247 MB / 0.5212 GB, free: 6.965 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001325/0.5019, allocations: 318.5 kB / 0.5215 GB, free: 6.648 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.5023, allocations: 187.3 kB / 0.5217 GB, free: 6.465 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5023, allocations: 0 / 0.5217 GB, free: 6.465 MB / 398.1 MB Notification: Performance of Templates: time 0.04006/0.5424, allocations: 25.12 MB / 0.5462 GB, free: 13.44 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.H2O_ElectrochemicalCell.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1) Environment - environmentSimulation: