Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 215.8 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1423/0.1423, allocations: 23.89 MB / 336.3 MB, free: 11.16 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 71.89 kB / 471.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3128, allocations: 59.87 MB / 0.5191 GB, free: 9.781 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.Obsolete.Examples.H2O_ElectrochemicalCell): time 0.04009/0.3529, allocations: 29.13 MB / 0.5476 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02634/0.3792, allocations: 19.53 MB / 0.5666 GB, free: 8.863 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001804/0.381, allocations: 23.81 kB / 0.5667 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001684/0.3827, allocations: 0.5026 MB / 0.5672 GB, free: 8.445 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00379/0.3865, allocations: 1.24 MB / 0.5684 GB, free: 7.391 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008692/0.3952, allocations: 2.888 MB / 0.5712 GB, free: 4.727 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003693/0.3989, allocations: 2.109 MB / 0.5732 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001658/0.4006, allocations: 1.065 MB / 0.5743 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.4019, allocations: 0.9349 MB / 0.5752 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.4034, allocations: 1.066 MB / 0.5762 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002929/0.4037, allocations: 200 kB / 0.5764 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0069/0.4106, allocations: 2.083 MB / 0.5785 GB, free: 13.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006133/0.4112, allocations: 478.6 kB / 0.5789 GB, free: 12.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001179/0.4124, allocations: 0.9761 MB / 0.5799 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.4225, allocations: 4.362 MB / 0.5841 GB, free: 7.375 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4225, allocations: 4 kB / 0.5841 GB, free: 7.371 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4225, allocations: 0 / 0.5841 GB, free: 7.371 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.567e-05/0.4226, allocations: 0 / 0.5841 GB, free: 7.371 MB / 430.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.004679/0.4272, allocations: 2.335 MB / 0.5864 GB, free: 4.992 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.4273, allocations: 8.031 kB / 0.5864 GB, free: 4.984 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001712/0.429, allocations: 454.8 kB / 0.5869 GB, free: 4.539 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.4309, allocations: 1.015 MB / 0.5879 GB, free: 3.492 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/0.4312, allocations: 238.4 kB / 0.5881 GB, free: 3.234 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000267/0.4314, allocations: 167.9 kB / 0.5882 GB, free: 3.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003718/0.4352, allocations: 2.241 MB / 0.5904 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.581e-05/0.4352, allocations: 4 kB / 0.5904 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.4354, allocations: 64 kB / 0.5905 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.935e-05/0.4354, allocations: 44 kB / 0.5905 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004315/0.4397, allocations: 2.719 MB / 0.5932 GB, free: 13.93 MB / 446.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.01169/0.4514, allocations: 7.215 MB / 0.6002 GB, free: 6.438 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/0.4532, allocations: 0.9867 MB / 0.6012 GB, free: 5.426 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008847/0.4541, allocations: 0.5135 MB / 0.6017 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007315/0.4614, allocations: 3.149 MB / 0.6048 GB, free: 1.727 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.4615, allocations: 47.19 kB / 0.6048 GB, free: 1.672 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004944/0.462, allocations: 123 kB / 0.6049 GB, free: 1.551 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.014e-06/0.462, allocations: 0 / 0.6049 GB, free: 1.551 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01998/0.4819, allocations: 4.562 MB / 0.6094 GB, free: 12.93 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.099e-05/0.482, allocations: 115.8 kB / 0.6095 GB, free: 12.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.484, allocations: 1.498 MB / 0.611 GB, free: 11.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/0.4841, allocations: 45.7 kB / 0.611 GB, free: 11.22 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007414/0.4849, allocations: 0.9239 MB / 0.6119 GB, free: 10.29 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003504/0.4852, allocations: 357.1 kB / 0.6123 GB, free: 9.934 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005383/0.4857, allocations: 363.2 kB / 0.6126 GB, free: 9.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4859, allocations: 301.1 kB / 0.6129 GB, free: 9.273 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.487, allocations: 0.6364 MB / 0.6135 GB, free: 8.637 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.4888, allocations: 1.345 MB / 0.6148 GB, free: 6.961 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00283/0.4916, allocations: 1.929 MB / 0.6167 GB, free: 4.703 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/0.4916, allocations: 8 kB / 0.6167 GB, free: 4.695 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.006072/0.4977, allocations: 2.39 MB / 0.619 GB, free: 2.281 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.4977, allocations: 16 kB / 0.6191 GB, free: 2.266 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-05/0.4978, allocations: 27.94 kB / 0.6191 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/0.5005, allocations: 371.1 kB / 0.6194 GB, free: 1.863 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002832/0.5034, allocations: 0.5617 MB / 0.62 GB, free: 1.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009787/0.5132, allocations: 7.505 MB / 0.6273 GB, free: 9.281 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.5147, allocations: 75.86 kB / 0.6274 GB, free: 9.207 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/0.5149, allocations: 108 kB / 0.6275 GB, free: 9.102 MB / 478.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.0006729/0.5155, allocations: 377.7 kB / 0.6279 GB, free: 8.723 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/0.5158, allocations: 127.2 kB / 0.628 GB, free: 8.598 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004966/0.5208, allocations: 1.527 MB / 0.6295 GB, free: 7.047 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.5208, allocations: 12 kB / 0.6295 GB, free: 7.035 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5208, allocations: 0 / 0.6295 GB, free: 7.035 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.5208, allocations: 7.984 kB / 0.6295 GB, free: 7.027 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007534/0.5284, allocations: 2.983 MB / 0.6324 GB, free: 3.895 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/0.5284, allocations: 8 kB / 0.6324 GB, free: 3.887 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009164/0.5293, allocations: 223.8 kB / 0.6326 GB, free: 3.668 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002944/0.5322, allocations: 404.4 kB / 0.633 GB, free: 3.254 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.5323, allocations: 43.98 kB / 0.633 GB, free: 3.211 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009452/0.5418, allocations: 7.306 MB / 0.6402 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/0.5418, allocations: 11.94 kB / 0.6402 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005709/0.5475, allocations: 2.16 MB / 0.6423 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003717/0.5479, allocations: 127.2 kB / 0.6424 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001907/0.5481, allocations: 28 kB / 0.6425 GB, free: 8.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000844/0.5489, allocations: 31.98 kB / 0.6425 GB, free: 8.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.5491, allocations: 112.2 kB / 0.6426 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.32e-05/0.5492, allocations: 51.98 kB / 0.6426 GB, free: 8.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001425/0.5507, allocations: 1.036 MB / 0.6437 GB, free: 7.707 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5507, allocations: 0 / 0.6437 GB, free: 7.707 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002958/0.5536, allocations: 0.826 MB / 0.6445 GB, free: 6.879 MB / 494.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.002164/0.5558, allocations: 0.8974 MB / 0.6453 GB, free: 5.969 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003721/0.5595, allocations: 1.702 MB / 0.647 GB, free: 4.238 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.5595, allocations: 4 kB / 0.647 GB, free: 4.234 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.561, allocations: 0.958 MB / 0.6479 GB, free: 3.227 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001867/0.5629, allocations: 245.3 kB / 0.6482 GB, free: 2.992 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00498/0.5679, allocations: 2.869 MB / 0.651 GB, free: 0 / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.569, allocations: 1.223 MB / 0.6522 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001144/0.5701, allocations: 330.5 kB / 0.6525 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.5705, allocations: 175.3 kB / 0.6526 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of SimCode: time 6.51e-07/0.5705, allocations: 0 / 0.6526 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of Templates: time 0.05079/0.6213, allocations: 29.79 MB / 0.6817 GB, free: 0.5469 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.237079523038119] Failed to read output from testmodel.py, exit status != 0: 0.6306677390821278 0.645180799 0.219490326 Calling exit ...