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.00159/0.00159, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001484/0.001484, allocations: 191.9 kB / 16.13 MB, free: 6.707 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.38/1.38, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.201/0.201, allocations: 15.31 MB / 305.3 MB, free: 15.36 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 369.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.09844, allocations: 53.62 MB / 423.2 MB, free: 14.8 MB / 366.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.361/0.4594, allocations: 28.09 MB / 451.3 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.4767, allocations: 19.41 MB / 470.8 MB, free: 30.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001983/0.4787, allocations: 41.53 kB / 470.8 MB, free: 30.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.4804, allocations: 441.3 kB / 471.2 MB, free: 30.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004219/0.4846, allocations: 1.106 MB / 472.3 MB, free: 29.65 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008041/0.4927, allocations: 2.489 MB / 474.8 MB, free: 28.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002727/0.4954, allocations: 2.024 MB / 476.8 MB, free: 27.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001326/0.4967, allocations: 1.157 MB / 478 MB, free: 26.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001146/0.4979, allocations: 0.866 MB / 478.9 MB, free: 26.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.4991, allocations: 1.024 MB / 479.9 MB, free: 25.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002679/0.4994, allocations: 130.4 kB / 480 MB, free: 25.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007912/0.5073, allocations: 1.994 MB / 482 MB, free: 25.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000403/0.5077, allocations: 405.7 kB / 482.4 MB, free: 25.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001554/0.5093, allocations: 0.9208 MB / 483.3 MB, free: 24.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008979/0.5183, allocations: 3.929 MB / 487.3 MB, free: 22.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.5183, allocations: 0 / 487.3 MB, free: 22.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.5183, allocations: 0 / 487.3 MB, free: 22.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001266/0.5184, allocations: 1.375 kB / 487.3 MB, free: 22.99 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.006251/0.5247, allocations: 2.348 MB / 489.6 MB, free: 21.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.5247, allocations: 9.312 kB / 489.6 MB, free: 21.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002116/0.5269, allocations: 426 kB / 490 MB, free: 21.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002186/0.5291, allocations: 1.053 MB / 491.1 MB, free: 20.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/0.5293, allocations: 191 kB / 491.3 MB, free: 20.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004506/0.5297, allocations: 165.9 kB / 491.4 MB, free: 20.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004434/0.5342, allocations: 2.21 MB / 493.6 MB, free: 19.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.243e-05/0.5342, allocations: 3.5 kB / 493.6 MB, free: 19.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/0.5344, allocations: 66.25 kB / 493.7 MB, free: 19.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/0.5345, allocations: 43.56 kB / 493.8 MB, free: 19.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00353/0.538, allocations: 2.675 MB / 496.4 MB, free: 18.78 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.01061/0.5486, allocations: 7.251 MB / 0.4919 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.5503, allocations: 1.186 MB / 0.493 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007081/0.551, allocations: 0.5531 MB / 0.4936 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0068/0.5578, allocations: 5.128 MB / 0.4986 GB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.5579, allocations: 47.78 kB / 0.4986 GB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004907/0.5583, allocations: 110.8 kB / 0.4987 GB, free: 7.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=71): time 2.324e-06/0.5584, allocations: 3.938 kB / 0.4987 GB, free: 7.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=95): time 0.01752/0.5759, allocations: 4.774 MB / 0.5034 GB, free: 3.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.576, allocations: 123.9 kB / 0.5035 GB, free: 3.223 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.5774, allocations: 1.466 MB / 0.5049 GB, free: 1.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.599e-05/0.5775, allocations: 49.64 kB / 0.505 GB, free: 1.688 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003715/0.5779, allocations: 0.8933 MB / 0.5059 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/0.5781, allocations: 339.2 kB / 0.5062 GB, free: 452 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003975/0.5785, allocations: 355.1 kB / 0.5065 GB, free: 92 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5786, allocations: 305.1 kB / 0.5068 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009275/0.5795, allocations: 0.6169 MB / 0.5074 GB, free: 15.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001538/0.5811, allocations: 1.329 MB / 0.5087 GB, free: 13.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002421/0.5835, allocations: 1.909 MB / 0.5106 GB, free: 11.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.5835, allocations: 8 kB / 0.5106 GB, free: 11.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005655/0.5892, allocations: 2.358 MB / 0.5129 GB, free: 8.883 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.5892, allocations: 12 kB / 0.5129 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.5e-05/0.5893, allocations: 27.94 kB / 0.5129 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002656/0.592, allocations: 375.5 kB / 0.5133 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002211/0.5942, allocations: 0.5539 MB / 0.5138 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008893/0.6031, allocations: 7.34 MB / 0.521 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/0.605, allocations: 103.7 kB / 0.5211 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002745/0.6053, allocations: 104 kB / 0.5212 GB, free: 15.77 MB / 398.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.0008976/0.6062, allocations: 377 kB / 0.5216 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005/0.6067, allocations: 118.5 kB / 0.5217 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005217/0.6119, allocations: 1.53 MB / 0.5232 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/0.6119, allocations: 11.98 kB / 0.5232 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.6119, allocations: 4 kB / 0.5232 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.612, allocations: 3.984 kB / 0.5232 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007396/0.6194, allocations: 3.007 MB / 0.5261 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.6194, allocations: 8 kB / 0.5261 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008695/0.6203, allocations: 212.5 kB / 0.5263 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002766/0.6231, allocations: 412.5 kB / 0.5267 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.6232, allocations: 43.98 kB / 0.5268 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007605/0.6308, allocations: 7.136 MB / 0.5337 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.777e-05/0.6308, allocations: 8 kB / 0.5337 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005173/0.636, allocations: 2.16 MB / 0.5359 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005665/0.6366, allocations: 207.5 kB / 0.5361 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003879/0.637, allocations: 32 kB / 0.5361 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009949/0.638, allocations: 43.97 kB / 0.5361 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.6382, allocations: 108.3 kB / 0.5362 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.707e-05/0.6383, allocations: 55.92 kB / 0.5363 GB, free: 15.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001528/0.6399, allocations: 1.017 MB / 0.5373 GB, free: 14.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.6399, allocations: 0 / 0.5373 GB, free: 14.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003774/0.6437, allocations: 0.8158 MB / 0.5381 GB, free: 13.53 MB / 414.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.002363/0.646, allocations: 0.8625 MB / 0.5389 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003831/0.6499, allocations: 1.738 MB / 0.5406 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.6499, allocations: 384 / 0.5406 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.6515, allocations: 0.9996 MB / 0.5416 GB, free: 9.848 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.6535, allocations: 218.5 kB / 0.5418 GB, free: 9.637 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.6591, allocations: 3.522 MB / 0.5452 GB, free: 5.992 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.6602, allocations: 1.227 MB / 0.5464 GB, free: 4.734 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001386/0.6616, allocations: 326.5 kB / 0.5467 GB, free: 4.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004602/0.6621, allocations: 183.3 kB / 0.5469 GB, free: 4.23 MB / 414.1 MB Notification: Performance of SimCode: time 6.82e-07/0.6621, allocations: 0 / 0.5469 GB, free: 4.23 MB / 414.1 MB Notification: Performance of Templates: time 0.04544/0.7076, allocations: 26.63 MB / 0.5729 GB, free: 9.668 MB / 446.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 -lv LOG_STATS > Chemical_Chemical.Examples.H2O_ElectrochemicalCell.pipe 2>&1)