Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.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.001583/0.001583, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001807/0.001807, allocations: 219 kB / 22.25 MB, free: 5.125 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.388/1.388, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1292/0.1292, allocations: 23.86 MB / 336.3 MB, free: 11.19 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.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.002054/0.002054, allocations: 67.91 kB / 471.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2828, allocations: 59.85 MB / 0.519 GB, free: 9.84 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.ElectrochemicalCell): time 0.03877/0.3216, allocations: 31.07 MB / 0.5494 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03594/0.3575, allocations: 28.91 MB / 0.5776 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.359, allocations: 35.69 kB / 0.5777 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.3606, allocations: 0.6514 MB / 0.5783 GB, free: 13.4 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005272/0.3659, allocations: 2.227 MB / 0.5805 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01004/0.3759, allocations: 3.926 MB / 0.5843 GB, free: 7.207 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004182/0.3801, allocations: 2.848 MB / 0.5871 GB, free: 4.348 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.3818, allocations: 1.365 MB / 0.5884 GB, free: 2.934 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001516/0.3833, allocations: 1.34 MB / 0.5897 GB, free: 1.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001952/0.3853, allocations: 1.51 MB / 0.5912 GB, free: 76 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003568/0.3856, allocations: 260 kB / 0.5914 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008572/0.3942, allocations: 3.151 MB / 0.5945 GB, free: 12.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005926/0.3948, allocations: 0.6037 MB / 0.5951 GB, free: 12.06 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.3963, allocations: 1.299 MB / 0.5964 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.407, allocations: 6.202 MB / 0.6024 GB, free: 4.527 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.407, allocations: 4 kB / 0.6024 GB, free: 4.523 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.407, allocations: 0 / 0.6024 GB, free: 4.523 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.18e-05/0.407, allocations: 0 / 0.6024 GB, free: 4.523 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 556 * Number of variables: 556 Notification: Performance of Generate backend data structure: time 0.005443/0.4124, allocations: 3.088 MB / 0.6055 GB, free: 1.383 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.4125, allocations: 12.03 kB / 0.6055 GB, free: 1.371 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002091/0.4146, allocations: 0.5609 MB / 0.606 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.4168, allocations: 1.239 MB / 0.6072 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/0.417, allocations: 279.5 kB / 0.6075 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003444/0.4174, allocations: 227.9 kB / 0.6077 GB, free: 15.01 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004106/0.4215, allocations: 2.679 MB / 0.6103 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.931e-05/0.4215, allocations: 0 / 0.6103 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002098/0.4217, allocations: 92 kB / 0.6104 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.335e-05/0.4218, allocations: 52 kB / 0.6105 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005057/0.4268, allocations: 3.33 MB / 0.6137 GB, free: 8.762 MB / 462.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.01317/0.44, allocations: 8.595 MB / 0.6221 GB, free: 15.82 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002478/0.4425, allocations: 1.535 MB / 0.6236 GB, free: 14.29 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.4438, allocations: 0.8508 MB / 0.6244 GB, free: 13.42 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009662/0.4535, allocations: 4.534 MB / 0.6289 GB, free: 8.863 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.4535, allocations: 55.8 kB / 0.6289 GB, free: 8.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 2.394e-06/0.4535, allocations: 0 / 0.6289 GB, free: 8.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.02986/0.4834, allocations: 8.115 MB / 0.6368 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.595e-05/0.4835, allocations: 103 kB / 0.6369 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.4851, allocations: 1.366 MB / 0.6383 GB, free: 15.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.4852, allocations: 53.7 kB / 0.6383 GB, free: 15.06 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007863/0.486, allocations: 1.081 MB / 0.6394 GB, free: 13.97 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005544/0.4866, allocations: 0.6624 MB / 0.64 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006565/0.4872, allocations: 477.1 kB / 0.6405 GB, free: 12.83 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4873, allocations: 305.2 kB / 0.6408 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.4888, allocations: 0.8132 MB / 0.6416 GB, free: 11.71 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002304/0.4911, allocations: 1.665 MB / 0.6432 GB, free: 9.664 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003759/0.4948, allocations: 2.614 MB / 0.6457 GB, free: 6.672 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.4949, allocations: 12 kB / 0.6458 GB, free: 6.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00688/0.5017, allocations: 3.051 MB / 0.6487 GB, free: 3.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.5018, allocations: 24 kB / 0.6488 GB, free: 3.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.325e-05/0.5018, allocations: 24 kB / 0.6488 GB, free: 3.543 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003218/0.505, allocations: 0.5182 MB / 0.6493 GB, free: 3.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003584/0.5086, allocations: 0.7997 MB / 0.6501 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009068/0.5177, allocations: 7.639 MB / 0.6575 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.5192, allocations: 91.89 kB / 0.6576 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002277/0.5195, allocations: 147.9 kB / 0.6578 GB, free: 9.828 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (311): * Single equations (assignments): 305 * 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,6), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008131/0.5203, allocations: 457.5 kB / 0.6582 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.5206, allocations: 174.9 kB / 0.6584 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006641/0.5273, allocations: 2.574 MB / 0.6609 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.5273, allocations: 16 kB / 0.6609 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.5273, allocations: 4 kB / 0.6609 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.589e-05/0.5273, allocations: 11.95 kB / 0.6609 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009735/0.537, allocations: 4.73 MB / 0.6655 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.5371, allocations: 12 kB / 0.6655 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/0.5387, allocations: 415.4 kB / 0.6659 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003267/0.5419, allocations: 0.5437 MB / 0.6665 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/0.5421, allocations: 83.95 kB / 0.6665 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008409/0.5505, allocations: 7.431 MB / 0.6738 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.383e-05/0.5505, allocations: 19.92 kB / 0.6738 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007001/0.5575, allocations: 3.463 MB / 0.6772 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/0.5579, allocations: 182.7 kB / 0.6774 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.5581, allocations: 59.92 kB / 0.6774 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009536/0.5591, allocations: 51.98 kB / 0.6775 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.5594, allocations: 192.7 kB / 0.6777 GB, free: 4.449 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/0.5595, allocations: 91.97 kB / 0.6778 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001233/0.5607, allocations: 0.9006 MB / 0.6786 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5607, allocations: 4 kB / 0.6786 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003542/0.5643, allocations: 1.212 MB / 0.6798 GB, free: 2.238 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 8 (cathode.temperature,Ag.logn,anode.temperature,solution1.temperature,Cl.logn,AgCl.logn,H.logn,liquidWater.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 (198): * Single equations (assignments): 192 * 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,6), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002278/0.5666, allocations: 1.327 MB / 0.6811 GB, free: 0.8984 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004745/0.5713, allocations: 2.358 MB / 0.6834 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.5713, allocations: 4 kB / 0.6834 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002033/0.5733, allocations: 1.368 MB / 0.6848 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.575, allocations: 361.7 kB / 0.6851 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006171/0.5812, allocations: 4.06 MB / 0.6891 GB, free: 8.492 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.5823, allocations: 1.433 MB / 0.6905 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001409/0.5837, allocations: 462.4 kB / 0.6909 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006324/0.5843, allocations: 283.2 kB / 0.6912 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of SimCode: time 6.72e-07/0.5843, allocations: 0 / 0.6912 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of Templates: time 0.2618/0.8461, allocations: 44.21 MB / 0.7344 GB, free: 173.4 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & ./Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.664466709829867] Failed to read output from testmodel.py, exit status != 0: 0.8543908470310271 0.864966078 0.455556441 Calling exit ...