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.006889/0.006889, allocations: 101.3 kB / 15.73 MB, free: 6.043 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.001435/0.001435, allocations: 197.2 kB / 16.68 MB, free: 5.961 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09748/0.09748, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.91 kB / 425.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1097, allocations: 53.61 MB / 478.8 MB, free: 5.777 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.03719/0.147, allocations: 27.8 MB / 0.4947 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2804/0.4274, allocations: 19.37 MB / 0.5136 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002768/0.4302, allocations: 20 kB / 0.5136 GB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003508/0.4338, allocations: 0.4945 MB / 0.5141 GB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009126/0.4429, allocations: 1.232 MB / 0.5153 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01384/0.4568, allocations: 2.833 MB / 0.5181 GB, free: 16.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004773/0.4616, allocations: 2.092 MB / 0.5201 GB, free: 16.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003513/0.4652, allocations: 1.347 MB / 0.5215 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002666/0.4679, allocations: 0.909 MB / 0.5223 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002994/0.4709, allocations: 1.055 MB / 0.5234 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.4721, allocations: 198.9 kB / 0.5236 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01233/0.4844, allocations: 2.06 MB / 0.5256 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001482/0.4859, allocations: 465.8 kB / 0.526 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002869/0.4888, allocations: 0.9846 MB / 0.527 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01563/0.5045, allocations: 4.201 MB / 0.5311 GB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.5045, allocations: 0 / 0.5311 GB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5046, allocations: 0 / 0.5311 GB, free: 12.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001564/0.5047, allocations: 2.812 kB / 0.5311 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.008476/0.5132, allocations: 2.353 MB / 0.5334 GB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.5133, allocations: 10.12 kB / 0.5334 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002399/0.5157, allocations: 438.4 kB / 0.5338 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002471/0.5182, allocations: 1.07 MB / 0.5349 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002079/0.5184, allocations: 186.8 kB / 0.535 GB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000518/0.5189, allocations: 168.6 kB / 0.5352 GB, free: 9.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004757/0.5237, allocations: 2.207 MB / 0.5373 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.663e-05/0.5238, allocations: 3.984 kB / 0.5374 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001601/0.5239, allocations: 71.94 kB / 0.5374 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.993e-05/0.524, allocations: 41.53 kB / 0.5375 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004243/0.5282, allocations: 2.673 MB / 0.5401 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.01075/0.539, allocations: 7.223 MB / 0.5471 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.5411, allocations: 1.183 MB / 0.5483 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009214/0.5421, allocations: 0.5521 MB / 0.5488 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009996/0.5521, allocations: 5.124 MB / 0.5538 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.5521, allocations: 45.78 kB / 0.5539 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008261/0.553, allocations: 106.6 kB / 0.554 GB, free: 8.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=71): time 4.809e-06/0.553, allocations: 0 / 0.554 GB, free: 8.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=95): time 0.02005/0.5731, allocations: 4.812 MB / 0.5587 GB, free: 3.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.5732, allocations: 111.8 kB / 0.5588 GB, free: 3.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/0.5755, allocations: 1.474 MB / 0.5602 GB, free: 1.598 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.5756, allocations: 41.7 kB / 0.5603 GB, free: 1.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006487/0.5763, allocations: 0.8951 MB / 0.5611 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/0.5767, allocations: 347.5 kB / 0.5615 GB, free: 324 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006543/0.5773, allocations: 363.9 kB / 0.5618 GB, free: 15.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5775, allocations: 305.1 kB / 0.5621 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.5787, allocations: 0.6208 MB / 0.5627 GB, free: 15.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.5804, allocations: 1.327 MB / 0.564 GB, free: 13.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002845/0.5833, allocations: 1.923 MB / 0.5659 GB, free: 11.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/0.5833, allocations: 7.938 kB / 0.5659 GB, free: 11.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005694/0.589, allocations: 2.366 MB / 0.5682 GB, free: 8.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.5891, allocations: 16 kB / 0.5682 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.926e-05/0.5891, allocations: 24 kB / 0.5682 GB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002471/0.5916, allocations: 377.7 kB / 0.5686 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002649/0.5943, allocations: 0.563 MB / 0.5691 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009011/0.6033, allocations: 7.902 MB / 0.5769 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.6052, allocations: 82.36 kB / 0.5769 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003936/0.6056, allocations: 104 kB / 0.577 GB, free: 15.2 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.001022/0.6066, allocations: 379.2 kB / 0.5774 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000452/0.6071, allocations: 122.4 kB / 0.5775 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004703/0.6118, allocations: 1.527 MB / 0.579 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.878e-05/0.6119, allocations: 19.92 kB / 0.579 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.6119, allocations: 0 / 0.579 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.6119, allocations: 7.984 kB / 0.579 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007691/0.6196, allocations: 3.005 MB / 0.582 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.6196, allocations: 4 kB / 0.582 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008477/0.6205, allocations: 215.7 kB / 0.5822 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002641/0.6232, allocations: 410 kB / 0.5826 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.6233, allocations: 43.98 kB / 0.5826 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00829/0.6316, allocations: 7.711 MB / 0.5901 GB, free: 1.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.369e-05/0.6316, allocations: 11.94 kB / 0.5902 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005297/0.6369, allocations: 2.167 MB / 0.5923 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006593/0.6376, allocations: 195.5 kB / 0.5925 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003822/0.638, allocations: 32 kB / 0.5925 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009506/0.639, allocations: 24 kB / 0.5925 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002395/0.6392, allocations: 114.9 kB / 0.5926 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.6394, allocations: 54.64 kB / 0.5927 GB, free: 14.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001432/0.6408, allocations: 1.009 MB / 0.5937 GB, free: 13.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6408, allocations: 0 / 0.5937 GB, free: 13.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004046/0.6449, allocations: 0.8236 MB / 0.5945 GB, free: 12.54 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.003091/0.648, allocations: 0.8779 MB / 0.5953 GB, free: 11.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004164/0.6522, allocations: 1.766 MB / 0.597 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/0.6522, allocations: 0 / 0.597 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001658/0.6539, allocations: 0.9978 MB / 0.598 GB, free: 8.973 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002216/0.6561, allocations: 232.8 kB / 0.5982 GB, free: 8.766 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006293/0.6624, allocations: 2.822 MB / 0.601 GB, free: 5.941 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.6638, allocations: 1.222 MB / 0.6022 GB, free: 4.711 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.665, allocations: 321.5 kB / 0.6025 GB, free: 4.469 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005592/0.6656, allocations: 188.7 kB / 0.6027 GB, free: 4.289 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/0.6656, allocations: 0 / 0.6027 GB, free: 4.289 MB / 446.1 MB Notification: Performance of Templates: time 0.05226/0.7179, allocations: 28.5 MB / 0.6305 GB, free: 8.078 MB / 478.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)