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.001276/0.001276, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001462/0.001462, allocations: 212.4 kB / 22.99 MB, free: 4.984 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.405/1.405, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1336/0.1336, allocations: 23.88 MB / 337.1 MB, free: 10.96 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.001961/0.001961, allocations: 67.02 kB / 472.4 MB, free: 7.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3243, allocations: 59.86 MB / 0.5197 GB, free: 9.832 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.07348/0.3978, allocations: 29.76 MB / 0.5488 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03377/0.4315, allocations: 25.31 MB / 0.5735 GB, free: 2.734 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001869/0.4334, allocations: 39.69 kB / 0.5736 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.4352, allocations: 0.5852 MB / 0.5741 GB, free: 2.105 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006415/0.4416, allocations: 2.169 MB / 0.5763 GB, free: 15.92 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0109/0.4525, allocations: 3.93 MB / 0.5801 GB, free: 11.97 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004678/0.4572, allocations: 2.848 MB / 0.5829 GB, free: 9.109 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001985/0.4592, allocations: 1.365 MB / 0.5842 GB, free: 7.695 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.461, allocations: 1.356 MB / 0.5855 GB, free: 6.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002201/0.4632, allocations: 1.499 MB / 0.587 GB, free: 4.832 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000433/0.4637, allocations: 264 kB / 0.5872 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008187/0.4719, allocations: 3.034 MB / 0.5902 GB, free: 1.535 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008479/0.4727, allocations: 0.6036 MB / 0.5908 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001604/0.4743, allocations: 1.097 MB / 0.5919 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.4876, allocations: 6.183 MB / 0.5979 GB, free: 9.621 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4876, allocations: 0 / 0.5979 GB, free: 9.621 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4876, allocations: 0 / 0.5979 GB, free: 9.621 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.403e-05/0.4877, allocations: 0 / 0.5979 GB, free: 9.621 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.00604/0.4937, allocations: 3.088 MB / 0.6009 GB, free: 6.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.4938, allocations: 12.03 kB / 0.6009 GB, free: 6.469 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00241/0.4962, allocations: 0.5609 MB / 0.6015 GB, free: 5.906 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002449/0.4986, allocations: 1.243 MB / 0.6027 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.4989, allocations: 279.5 kB / 0.603 GB, free: 4.324 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003787/0.4992, allocations: 220 kB / 0.6032 GB, free: 4.109 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004515/0.5038, allocations: 2.679 MB / 0.6058 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.23e-05/0.5038, allocations: 0 / 0.6058 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/0.504, allocations: 92 kB / 0.6059 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.684e-05/0.5041, allocations: 52 kB / 0.6059 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005194/0.5093, allocations: 3.302 MB / 0.6091 GB, free: 13.89 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.01376/0.523, allocations: 7.003 MB / 0.616 GB, free: 6.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/0.5257, allocations: 1.523 MB / 0.6175 GB, free: 5.223 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.5271, allocations: 0.8547 MB / 0.6183 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01043/0.5375, allocations: 4.277 MB / 0.6225 GB, free: 52 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.811e-05/0.5376, allocations: 47.81 kB / 0.6225 GB, free: 16 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.617e-06/0.5376, allocations: 4 kB / 0.6225 GB, free: 15.99 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03347/0.5711, allocations: 8.099 MB / 0.6304 GB, free: 7.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.154e-05/0.5711, allocations: 103 kB / 0.6305 GB, free: 7.719 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/0.5729, allocations: 1.317 MB / 0.6318 GB, free: 6.391 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002448/0.5732, allocations: 57.7 kB / 0.6319 GB, free: 6.328 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000874/0.574, allocations: 1.089 MB / 0.6329 GB, free: 5.227 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000701/0.5747, allocations: 0.6546 MB / 0.6336 GB, free: 4.566 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007628/0.5755, allocations: 493.1 kB / 0.6341 GB, free: 4.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5756, allocations: 301.1 kB / 0.6343 GB, free: 3.781 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/0.5771, allocations: 0.8132 MB / 0.6351 GB, free: 2.965 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002262/0.5794, allocations: 1.661 MB / 0.6368 GB, free: 0.918 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003894/0.5833, allocations: 2.61 MB / 0.6393 GB, free: 13.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.08e-05/0.5833, allocations: 12 kB / 0.6393 GB, free: 13.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007407/0.5907, allocations: 3.042 MB / 0.6423 GB, free: 10.85 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.273e-05/0.5907, allocations: 22.75 kB / 0.6423 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.808e-05/0.5908, allocations: 28 kB / 0.6423 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/0.5943, allocations: 0.5069 MB / 0.6428 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004153/0.5985, allocations: 0.8036 MB / 0.6436 GB, free: 9.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009847/0.6083, allocations: 7.519 MB / 0.651 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00214/0.6105, allocations: 91.91 kB / 0.6511 GB, free: 1.414 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002981/0.6108, allocations: 144 kB / 0.6512 GB, free: 1.273 MB / 494.1 MB 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.0009842/0.6118, allocations: 460.9 kB / 0.6516 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004079/0.6122, allocations: 170.8 kB / 0.6518 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007095/0.6193, allocations: 2.566 MB / 0.6543 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.6193, allocations: 19.94 kB / 0.6543 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.6193, allocations: 4 kB / 0.6543 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/0.6193, allocations: 11.97 kB / 0.6543 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.6294, allocations: 4.249 MB / 0.6585 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.6294, allocations: 15.94 kB / 0.6585 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/0.6312, allocations: 415.4 kB / 0.6589 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003639/0.6349, allocations: 0.5397 MB / 0.6594 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002267/0.6351, allocations: 79.91 kB / 0.6595 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008662/0.6438, allocations: 7.3 MB / 0.6666 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.278e-05/0.6438, allocations: 15.94 kB / 0.6666 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007476/0.6513, allocations: 3.454 MB / 0.67 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004766/0.6517, allocations: 174.9 kB / 0.6702 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.652, allocations: 52 kB / 0.6702 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.653, allocations: 51.98 kB / 0.6703 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003267/0.6533, allocations: 200.7 kB / 0.6705 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.6535, allocations: 95.97 kB / 0.6706 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001099/0.6546, allocations: 0.8274 MB / 0.6714 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6546, allocations: 4 kB / 0.6714 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004313/0.6589, allocations: 1.212 MB / 0.6726 GB, free: 10.46 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.003378/0.6623, allocations: 1.331 MB / 0.6739 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005339/0.6676, allocations: 2.362 MB / 0.6762 GB, free: 6.734 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.43e-05/0.6676, allocations: 4 kB / 0.6762 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00222/0.6698, allocations: 1.376 MB / 0.6775 GB, free: 5.305 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.6718, allocations: 338.5 kB / 0.6778 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/0.6786, allocations: 4.056 MB / 0.6818 GB, free: 0.7227 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.6797, allocations: 0.8537 MB / 0.6826 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001645/0.6813, allocations: 461.7 kB / 0.6831 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006633/0.682, allocations: 283.2 kB / 0.6833 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/0.682, allocations: 0 / 0.6833 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.0683/0.7503, allocations: 44.81 MB / 0.7271 GB, free: 2.539 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.843297573999735] Failed to read output from testmodel.py, exit status != 0: 0.7595804170123301 0.95306252 0.46282386499999995 Calling exit ...