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.001277/0.001277, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001399/0.001399, allocations: 218.2 kB / 22.25 MB, free: 5.258 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.358/1.358, allocations: 230.6 MB / 256 MB, free: 7.773 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.129/0.129, allocations: 23.88 MB / 336.3 MB, free: 10.94 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.001955/0.001955, allocations: 67.89 kB / 471.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2725, allocations: 59.85 MB / 0.519 GB, free: 9.746 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.07371/0.3462, allocations: 29.83 MB / 0.5481 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0335/0.3797, allocations: 25.29 MB / 0.5728 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.3815, allocations: 35.69 kB / 0.5729 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.3832, allocations: 0.6047 MB / 0.5735 GB, free: 2.086 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005571/0.3887, allocations: 2.161 MB / 0.5756 GB, free: 15.91 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009826/0.3985, allocations: 3.922 MB / 0.5794 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.4023, allocations: 2.856 MB / 0.5822 GB, free: 9.098 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.4039, allocations: 1.373 MB / 0.5835 GB, free: 7.676 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.4053, allocations: 1.348 MB / 0.5848 GB, free: 6.324 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001973/0.4073, allocations: 1.503 MB / 0.5863 GB, free: 4.816 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003589/0.4076, allocations: 260 kB / 0.5866 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007265/0.4149, allocations: 3.034 MB / 0.5895 GB, free: 1.523 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006378/0.4155, allocations: 0.6075 MB / 0.5901 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001252/0.4168, allocations: 1.093 MB / 0.5912 GB, free: 15.81 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.4291, allocations: 6.183 MB / 0.5972 GB, free: 9.609 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4291, allocations: 0 / 0.5972 GB, free: 9.609 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.4291, allocations: 0 / 0.5972 GB, free: 9.609 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.622e-05/0.4291, allocations: 4 kB / 0.5972 GB, free: 9.605 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.005681/0.4348, allocations: 3.088 MB / 0.6002 GB, free: 6.465 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.4349, allocations: 8.031 kB / 0.6003 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002301/0.4372, allocations: 0.5609 MB / 0.6008 GB, free: 5.895 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002419/0.4396, allocations: 1.243 MB / 0.602 GB, free: 4.613 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/0.4398, allocations: 275.5 kB / 0.6023 GB, free: 4.316 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003835/0.4402, allocations: 223.9 kB / 0.6025 GB, free: 4.098 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004451/0.4446, allocations: 2.683 MB / 0.6051 GB, free: 1.324 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/0.4447, allocations: 4 kB / 0.6051 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/0.4449, allocations: 84 kB / 0.6052 GB, free: 1.238 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.483e-05/0.445, allocations: 56 kB / 0.6052 GB, free: 1.184 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005241/0.4502, allocations: 3.298 MB / 0.6085 GB, free: 13.88 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.01277/0.463, allocations: 6.995 MB / 0.6153 GB, free: 6.746 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002575/0.4655, allocations: 1.531 MB / 0.6168 GB, free: 5.211 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/0.4669, allocations: 0.8547 MB / 0.6176 GB, free: 4.344 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009952/0.4769, allocations: 4.273 MB / 0.6218 GB, free: 44 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.028e-05/0.4769, allocations: 47.92 kB / 0.6218 GB, free: 15.98 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.056e-06/0.4769, allocations: 0 / 0.6218 GB, free: 15.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03238/0.5093, allocations: 8.099 MB / 0.6298 GB, free: 7.836 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.21e-05/0.5094, allocations: 99.09 kB / 0.6299 GB, free: 7.719 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.511, allocations: 1.325 MB / 0.6311 GB, free: 6.383 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.5111, allocations: 57.69 kB / 0.6312 GB, free: 6.32 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007725/0.5119, allocations: 1.089 MB / 0.6323 GB, free: 5.219 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006027/0.5125, allocations: 0.6546 MB / 0.6329 GB, free: 4.559 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007211/0.5132, allocations: 485 kB / 0.6334 GB, free: 4.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.5133, allocations: 305.1 kB / 0.6337 GB, free: 3.777 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.5148, allocations: 0.8171 MB / 0.6345 GB, free: 2.957 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002191/0.517, allocations: 1.658 MB / 0.6361 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003847/0.5208, allocations: 2.618 MB / 0.6386 GB, free: 13.92 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-05/0.5208, allocations: 8 kB / 0.6386 GB, free: 13.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007153/0.528, allocations: 3.039 MB / 0.6416 GB, free: 10.85 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.461e-05/0.528, allocations: 19.94 kB / 0.6416 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.79e-05/0.5281, allocations: 28 kB / 0.6417 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003453/0.5315, allocations: 0.5186 MB / 0.6422 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003778/0.5353, allocations: 0.8036 MB / 0.6429 GB, free: 9.469 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009302/0.5446, allocations: 7.504 MB / 0.6503 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.5463, allocations: 96.11 kB / 0.6504 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002409/0.5465, allocations: 144 kB / 0.6505 GB, free: 1.27 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.0008286/0.5473, allocations: 461 kB / 0.6509 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003402/0.5477, allocations: 170.8 kB / 0.6511 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007091/0.5548, allocations: 2.569 MB / 0.6536 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-05/0.5548, allocations: 23.94 kB / 0.6536 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5548, allocations: 0 / 0.6536 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.5548, allocations: 7.969 kB / 0.6536 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00972/0.5645, allocations: 4.248 MB / 0.6578 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/0.5646, allocations: 15.94 kB / 0.6578 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/0.5663, allocations: 424.2 kB / 0.6582 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003594/0.5699, allocations: 0.5394 MB / 0.6587 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001682/0.5701, allocations: 79.91 kB / 0.6588 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008622/0.5787, allocations: 7.3 MB / 0.6659 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/0.5787, allocations: 19.94 kB / 0.666 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007306/0.586, allocations: 3.446 MB / 0.6693 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.5864, allocations: 170.7 kB / 0.6695 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002686/0.5867, allocations: 55.98 kB / 0.6695 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.5877, allocations: 52 kB / 0.6696 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003294/0.5881, allocations: 204.7 kB / 0.6698 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/0.5882, allocations: 91.97 kB / 0.6699 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001219/0.5895, allocations: 0.8274 MB / 0.6707 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.5895, allocations: 0 / 0.6707 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003912/0.5934, allocations: 1.204 MB / 0.6719 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.002617/0.596, allocations: 1.347 MB / 0.6732 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004925/0.6009, allocations: 2.362 MB / 0.6755 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.6009, allocations: 0 / 0.6755 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002093/0.603, allocations: 1.371 MB / 0.6768 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.001709/0.6047, allocations: 338.9 kB / 0.6771 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006133/0.6109, allocations: 4.066 MB / 0.6811 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009343/0.6118, allocations: 0.8615 MB / 0.682 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001468/0.6133, allocations: 449.7 kB / 0.6824 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006595/0.6139, allocations: 287.2 kB / 0.6827 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of SimCode: time 7.41e-07/0.6139, allocations: 4 kB / 0.6827 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of Templates: time 0.06633/0.6802, allocations: 44.83 MB / 0.7264 GB, free: 2.52 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.524773197248578] Failed to read output from testmodel.py, exit status != 0: 0.6889337501488626 0.859186627 0.42757218199999997 Calling exit ...