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.001577/0.001577, allocations: 104.8 kB / 16.41 MB, free: 6.453 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.001986/0.001986, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.25/2.25, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1095/0.1095, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 59.91 kB / 425.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1652, allocations: 53.62 MB / 479.5 MB, free: 5.816 MB / 350.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.06818/0.2335, allocations: 27.8 MB / 0.4954 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4038/0.6373, allocations: 19.37 MB / 0.5143 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001511/0.6389, allocations: 19.41 kB / 0.5143 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.6404, allocations: 0.4938 MB / 0.5148 GB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003995/0.6445, allocations: 1.23 MB / 0.516 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008137/0.6526, allocations: 2.828 MB / 0.5188 GB, free: 16.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.6563, allocations: 2.096 MB / 0.5208 GB, free: 16.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002266/0.6586, allocations: 1.351 MB / 0.5221 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.6602, allocations: 0.9074 MB / 0.523 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001598/0.6618, allocations: 1.057 MB / 0.524 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003914/0.6622, allocations: 202.2 kB / 0.5242 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007697/0.6699, allocations: 2.054 MB / 0.5262 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007308/0.6707, allocations: 470.2 kB / 0.5267 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001389/0.6721, allocations: 0.9848 MB / 0.5276 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.6826, allocations: 4.2 MB / 0.5317 GB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.6826, allocations: 2.531 kB / 0.5317 GB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6826, allocations: 0 / 0.5317 GB, free: 12.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.068e-05/0.6827, allocations: 0 / 0.5317 GB, free: 12.23 MB / 382.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.00458/0.6873, allocations: 2.345 MB / 0.534 GB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.6873, allocations: 9.938 kB / 0.534 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001605/0.6889, allocations: 439.6 kB / 0.5345 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/0.6908, allocations: 1.074 MB / 0.5355 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.6909, allocations: 186.8 kB / 0.5357 GB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002744/0.6912, allocations: 171.2 kB / 0.5359 GB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003168/0.6944, allocations: 2.208 MB / 0.538 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.64e-05/0.6944, allocations: 2.688 kB / 0.538 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.6946, allocations: 66.88 kB / 0.5381 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3e-05/0.6946, allocations: 42.81 kB / 0.5381 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003274/0.6979, allocations: 2.675 MB / 0.5407 GB, free: 6.859 MB / 382.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.009284/0.7072, allocations: 7.222 MB / 0.5478 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/0.709, allocations: 1.185 MB / 0.5489 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009346/0.71, allocations: 0.5456 MB / 0.5495 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008873/0.7189, allocations: 5.137 MB / 0.5545 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.7189, allocations: 39.12 kB / 0.5545 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006503/0.7196, allocations: 106.6 kB / 0.5546 GB, free: 8.129 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 3.907e-06/0.7196, allocations: 0 / 0.5546 GB, free: 8.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=95): time 0.018/0.7376, allocations: 4.814 MB / 0.5593 GB, free: 3.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.7377, allocations: 114.5 kB / 0.5594 GB, free: 3.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.7395, allocations: 1.47 MB / 0.5609 GB, free: 1.617 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.7396, allocations: 45.7 kB / 0.5609 GB, free: 1.566 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005616/0.7401, allocations: 0.8894 MB / 0.5618 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003156/0.7405, allocations: 353.7 kB / 0.5621 GB, free: 336 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005288/0.741, allocations: 354.5 kB / 0.5625 GB, free: 15.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.982e-05/0.7411, allocations: 307.8 kB / 0.5628 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009629/0.7421, allocations: 0.6208 MB / 0.5634 GB, free: 15.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.7436, allocations: 1.331 MB / 0.5647 GB, free: 13.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.7462, allocations: 1.918 MB / 0.5665 GB, free: 11.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/0.7462, allocations: 4 kB / 0.5665 GB, free: 11.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005795/0.752, allocations: 2.368 MB / 0.5689 GB, free: 8.863 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.7521, allocations: 12 kB / 0.5689 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-05/0.7521, allocations: 24 kB / 0.5689 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/0.7546, allocations: 386.7 kB / 0.5693 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/0.7572, allocations: 0.5591 MB / 0.5698 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008518/0.7657, allocations: 7.9 MB / 0.5775 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.7674, allocations: 94.3 kB / 0.5776 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003108/0.7677, allocations: 102.6 kB / 0.5777 GB, free: 15.23 MB / 430.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.0008467/0.7686, allocations: 376.8 kB / 0.5781 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004006/0.769, allocations: 126.4 kB / 0.5782 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/0.7736, allocations: 1.529 MB / 0.5797 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.7737, allocations: 18.56 kB / 0.5797 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.7737, allocations: 0 / 0.5797 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.7737, allocations: 3.984 kB / 0.5797 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007356/0.7811, allocations: 3.009 MB / 0.5826 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/0.7812, allocations: 4 kB / 0.5826 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009589/0.7821, allocations: 215.7 kB / 0.5828 GB, free: 9.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002706/0.7849, allocations: 411.1 kB / 0.5832 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001429/0.785, allocations: 39.98 kB / 0.5833 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008162/0.7932, allocations: 7.713 MB / 0.5908 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.281e-05/0.7933, allocations: 15.66 kB / 0.5908 GB, free: 1.105 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005126/0.7984, allocations: 2.162 MB / 0.5929 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005765/0.799, allocations: 195.5 kB / 0.5931 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003474/0.7994, allocations: 32 kB / 0.5932 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009197/0.8003, allocations: 28 kB / 0.5932 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.8006, allocations: 113.6 kB / 0.5933 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.8007, allocations: 51.92 kB / 0.5933 GB, free: 14.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001425/0.8021, allocations: 1.021 MB / 0.5943 GB, free: 13.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8021, allocations: 0 / 0.5943 GB, free: 13.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003554/0.8057, allocations: 0.8159 MB / 0.5951 GB, free: 12.58 MB / 446.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.002448/0.8082, allocations: 0.8729 MB / 0.596 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003836/0.812, allocations: 1.762 MB / 0.5977 GB, free: 10.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.812, allocations: 0 / 0.5977 GB, free: 10.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.8136, allocations: 0.9979 MB / 0.5987 GB, free: 9.012 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.8157, allocations: 235.6 kB / 0.5989 GB, free: 8.801 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005244/0.8209, allocations: 2.868 MB / 0.6017 GB, free: 5.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.8221, allocations: 1.221 MB / 0.6029 GB, free: 4.703 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006126/0.8227, allocations: 220.1 kB / 0.6031 GB, free: 4.492 MB / 446.1 MB Notification: Performance of SimCode: time 6.72e-07/0.8227, allocations: 0 / 0.6031 GB, free: 4.492 MB / 446.1 MB Notification: Performance of Templates: time 0.06713/0.8898, allocations: 60.99 MB / 0.6627 GB, free: 7.777 MB / 0.4981 GB 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)