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.001609/0.001609, allocations: 75.75 kB / 19.76 MB, free: 1.875 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.001637/0.001637, allocations: 157.8 kB / 23.01 MB, free: 4.602 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.363/1.363, allocations: 177.2 MB / 203.4 MB, free: 8.906 MB / 190.1 MB " [Timeout remaining time 179] 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.1214/0.1214, allocations: 17.36 MB / 277.1 MB, free: 15.27 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.00197/0.00197, allocations: 67.89 kB / 412.4 MB, free: 5.738 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.1003, allocations: 59.86 MB / 472.3 MB, free: 9.766 MB / 446.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.2356/0.3359, allocations: 29.9 MB / 0.4904 GB, free: 38.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02226/0.3581, allocations: 25.3 MB / 0.5151 GB, free: 24.33 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00144/0.3596, allocations: 32.5 kB / 0.5152 GB, free: 24.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.3611, allocations: 0.6045 MB / 0.5157 GB, free: 23.99 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.3662, allocations: 2.159 MB / 0.5179 GB, free: 22.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00854/0.3747, allocations: 3.924 MB / 0.5217 GB, free: 20.4 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00311/0.3778, allocations: 2.852 MB / 0.5245 GB, free: 19 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001328/0.3791, allocations: 1.332 MB / 0.5258 GB, free: 18.35 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001522/0.3807, allocations: 1.349 MB / 0.5271 GB, free: 17.83 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/0.3827, allocations: 1.339 MB / 0.5284 GB, free: 17.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004131/0.3831, allocations: 260.3 kB / 0.5286 GB, free: 17.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007682/0.3908, allocations: 2.956 MB / 0.5315 GB, free: 16.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005324/0.3913, allocations: 0.6069 MB / 0.5321 GB, free: 16.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.3926, allocations: 1.098 MB / 0.5332 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01102/0.4036, allocations: 6.185 MB / 0.5392 GB, free: 11.56 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4036, allocations: 0 / 0.5392 GB, free: 11.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4036, allocations: 0 / 0.5392 GB, free: 11.56 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.547e-05/0.4037, allocations: 3.938 kB / 0.5392 GB, free: 11.56 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.004751/0.4084, allocations: 3.088 MB / 0.5423 GB, free: 8.734 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.4084, allocations: 16.03 kB / 0.5423 GB, free: 8.719 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002069/0.4105, allocations: 0.5599 MB / 0.5428 GB, free: 8.242 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002254/0.4128, allocations: 1.239 MB / 0.544 GB, free: 7.191 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001711/0.4129, allocations: 276.9 kB / 0.5443 GB, free: 6.895 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003069/0.4132, allocations: 229.3 kB / 0.5445 GB, free: 6.672 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003676/0.4169, allocations: 2.68 MB / 0.5471 GB, free: 4.414 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/0.417, allocations: 0 / 0.5471 GB, free: 4.414 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001763/0.4171, allocations: 88 kB / 0.5472 GB, free: 4.328 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.4172, allocations: 55.98 kB / 0.5473 GB, free: 4.273 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004096/0.4213, allocations: 3.293 MB / 0.5505 GB, free: 1.441 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.01334/0.4346, allocations: 7.007 MB / 0.5573 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002618/0.4372, allocations: 1.521 MB / 0.5588 GB, free: 9.855 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.4386, allocations: 0.8509 MB / 0.5596 GB, free: 9.074 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0102/0.4488, allocations: 4.276 MB / 0.5638 GB, free: 5.445 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.4489, allocations: 47.81 kB / 0.5639 GB, free: 5.391 MB / 462.1 MB Notification: Performance of pre-optimization done (n=128): time 3.576e-06/0.4489, allocations: 0 / 0.5639 GB, free: 5.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03044/0.4793, allocations: 8.108 MB / 0.5718 GB, free: 13.73 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/0.4794, allocations: 99.11 kB / 0.5719 GB, free: 13.62 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.481, allocations: 1.313 MB / 0.5732 GB, free: 12.29 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.4812, allocations: 57.7 kB / 0.5732 GB, free: 12.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008114/0.482, allocations: 1.085 MB / 0.5743 GB, free: 11.14 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005962/0.4826, allocations: 0.6507 MB / 0.5749 GB, free: 10.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007013/0.4833, allocations: 489 kB / 0.5754 GB, free: 9.996 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4834, allocations: 301.1 kB / 0.5757 GB, free: 9.699 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.4849, allocations: 0.821 MB / 0.5765 GB, free: 8.875 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.4871, allocations: 1.661 MB / 0.5781 GB, free: 6.828 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00381/0.4909, allocations: 2.61 MB / 0.5806 GB, free: 3.84 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.437e-05/0.4909, allocations: 11.94 kB / 0.5806 GB, free: 3.828 MB / 478.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006844/0.4978, allocations: 3.039 MB / 0.5836 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.4978, allocations: 19.94 kB / 0.5836 GB, free: 0.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-05/0.4978, allocations: 28 kB / 0.5837 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00309/0.5009, allocations: 0.5222 MB / 0.5842 GB, free: 192 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003817/0.5047, allocations: 0.7958 MB / 0.5849 GB, free: 15.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009363/0.5141, allocations: 7.528 MB / 0.5923 GB, free: 7.391 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.5158, allocations: 96.12 kB / 0.5924 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002984/0.5161, allocations: 148 kB / 0.5925 GB, free: 7.152 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.001009/0.5172, allocations: 456.8 kB / 0.593 GB, free: 6.695 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004034/0.5176, allocations: 166.9 kB / 0.5931 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006801/0.5244, allocations: 2.554 MB / 0.5956 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.5244, allocations: 19.94 kB / 0.5956 GB, free: 3.922 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5244, allocations: 4 kB / 0.5956 GB, free: 3.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.186e-05/0.5244, allocations: 7.969 kB / 0.5956 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009715/0.5341, allocations: 4.257 MB / 0.5998 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/0.5341, allocations: 12.14 kB / 0.5998 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.5358, allocations: 415.4 kB / 0.6002 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003242/0.539, allocations: 0.5433 MB / 0.6007 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/0.5392, allocations: 87.91 kB / 0.6008 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008399/0.5476, allocations: 7.293 MB / 0.6079 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.199e-05/0.5476, allocations: 15.94 kB / 0.608 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007082/0.5547, allocations: 3.462 MB / 0.6113 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004166/0.5551, allocations: 166.8 kB / 0.6115 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/0.5553, allocations: 55.98 kB / 0.6116 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009369/0.5562, allocations: 51.98 kB / 0.6116 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003087/0.5565, allocations: 192.7 kB / 0.6118 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.5567, allocations: 99.91 kB / 0.6119 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001048/0.5577, allocations: 0.8313 MB / 0.6127 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.5577, allocations: 0 / 0.6127 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003394/0.5611, allocations: 1.212 MB / 0.6139 GB, free: 364 kB / 0.4981 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.002289/0.5634, allocations: 1.336 MB / 0.6152 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004746/0.5682, allocations: 2.372 MB / 0.6175 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.5682, allocations: 4 kB / 0.6175 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002086/0.5703, allocations: 1.361 MB / 0.6188 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.572, allocations: 343.7 kB / 0.6192 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006238/0.5783, allocations: 4.047 MB / 0.6231 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009782/0.5793, allocations: 0.8499 MB / 0.6239 GB, free: 5.75 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001531/0.5808, allocations: 457.7 kB / 0.6244 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006508/0.5814, allocations: 288.3 kB / 0.6247 GB, free: 5.012 MB / 0.5137 GB Notification: Performance of SimCode: time 7.51e-07/0.5814, allocations: 4 kB / 0.6247 GB, free: 5.008 MB / 0.5137 GB Notification: Performance of Templates: time 0.06607/0.6475, allocations: 41.21 MB / 0.6649 GB, free: 12 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 ida -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.340740896994248] Failed to read output from testmodel.py, exit status != 0: 0.656010931939818 0.670217288 0.263601195 Calling exit ...