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.001771/0.001771, allocations: 106.3 kB / 16.45 MB, free: 6.508 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.002017/0.002017, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.505/1.505, allocations: 230.6 MB / 252.8 MB, free: 9.09 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.1488/0.1488, allocations: 23.85 MB / 332.7 MB, free: 12.34 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.002322/0.002322, allocations: 59.91 kB / 466.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.383, allocations: 59.82 MB / 0.5139 GB, free: 9.133 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.04466/0.4277, allocations: 30.8 MB / 0.544 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04226/0.4699, allocations: 28.84 MB / 0.5722 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003382/0.4733, allocations: 35.75 kB / 0.5722 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.4757, allocations: 0.6555 MB / 0.5729 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007615/0.4833, allocations: 2.2 MB / 0.575 GB, free: 12.68 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01289/0.4962, allocations: 3.879 MB / 0.5788 GB, free: 8.781 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005636/0.5018, allocations: 2.852 MB / 0.5816 GB, free: 5.914 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002113/0.5039, allocations: 1.384 MB / 0.5829 GB, free: 4.48 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001914/0.5058, allocations: 1.348 MB / 0.5842 GB, free: 3.129 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002554/0.5084, allocations: 1.503 MB / 0.5857 GB, free: 1.621 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004879/0.5089, allocations: 263.9 kB / 0.586 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01292/0.5218, allocations: 3.147 MB / 0.589 GB, free: 14.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.5229, allocations: 0.5998 MB / 0.5896 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001945/0.5249, allocations: 1.299 MB / 0.5909 GB, free: 12.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01657/0.5414, allocations: 6.21 MB / 0.597 GB, free: 6.07 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.5415, allocations: 0 / 0.597 GB, free: 6.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5415, allocations: 4 kB / 0.597 GB, free: 6.066 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.158e-05/0.5415, allocations: 0 / 0.597 GB, free: 6.066 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.006607/0.5481, allocations: 3.167 MB / 0.6001 GB, free: 2.828 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.5482, allocations: 8.031 kB / 0.6001 GB, free: 2.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002583/0.5508, allocations: 0.557 MB / 0.6006 GB, free: 2.262 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/0.5533, allocations: 1.319 MB / 0.6019 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.5536, allocations: 224.1 kB / 0.6021 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004424/0.554, allocations: 223.9 kB / 0.6023 GB, free: 452 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005318/0.5593, allocations: 2.667 MB / 0.6049 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.161e-05/0.5594, allocations: 7.938 kB / 0.6049 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000239/0.5596, allocations: 84 kB / 0.605 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.016e-05/0.5597, allocations: 59.98 kB / 0.6051 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00595/0.5656, allocations: 3.31 MB / 0.6083 GB, free: 10.22 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.01664/0.5823, allocations: 8.675 MB / 0.6168 GB, free: 1.199 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003274/0.5855, allocations: 1.9 MB / 0.6186 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.5871, allocations: 0.8585 MB / 0.6195 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01299/0.6001, allocations: 7.919 MB / 0.6272 GB, free: 5.559 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.6002, allocations: 43.88 kB / 0.6272 GB, free: 5.508 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 2.795e-06/0.6002, allocations: 0 / 0.6272 GB, free: 5.508 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03356/0.6337, allocations: 8.262 MB / 0.6353 GB, free: 13.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.151e-05/0.6338, allocations: 95.11 kB / 0.6354 GB, free: 13.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.6357, allocations: 1.358 MB / 0.6367 GB, free: 11.67 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.6359, allocations: 53.7 kB / 0.6368 GB, free: 11.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008169/0.6367, allocations: 1.081 MB / 0.6378 GB, free: 10.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006562/0.6374, allocations: 0.6624 MB / 0.6385 GB, free: 9.848 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000771/0.6381, allocations: 477.1 kB / 0.6389 GB, free: 9.375 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.6383, allocations: 305.2 kB / 0.6392 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/0.6398, allocations: 0.8132 MB / 0.64 GB, free: 8.258 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002354/0.6421, allocations: 1.661 MB / 0.6416 GB, free: 6.207 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004061/0.6462, allocations: 2.602 MB / 0.6442 GB, free: 3.227 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.756e-05/0.6462, allocations: 11.98 kB / 0.6442 GB, free: 3.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007377/0.6536, allocations: 3.047 MB / 0.6472 GB, free: 152 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.6536, allocations: 16 kB / 0.6472 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.174e-05/0.6537, allocations: 28 kB / 0.6472 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00335/0.657, allocations: 0.5106 MB / 0.6477 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003916/0.6609, allocations: 0.8074 MB / 0.6485 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009989/0.6709, allocations: 8.045 MB / 0.6564 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/0.673, allocations: 91.94 kB / 0.6564 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000309/0.6733, allocations: 144 kB / 0.6566 GB, free: 5.879 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.0009598/0.6742, allocations: 456.9 kB / 0.657 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004457/0.6747, allocations: 170.9 kB / 0.6572 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007253/0.6819, allocations: 2.578 MB / 0.6597 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-05/0.6819, allocations: 20 kB / 0.6597 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.682, allocations: 0 / 0.6597 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.309e-05/0.682, allocations: 7.969 kB / 0.6597 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.6932, allocations: 4.77 MB / 0.6644 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-05/0.6932, allocations: 12 kB / 0.6644 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/0.6949, allocations: 415.9 kB / 0.6648 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003386/0.6983, allocations: 0.5473 MB / 0.6653 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002258/0.6985, allocations: 83.97 kB / 0.6654 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009536/0.7081, allocations: 7.84 MB / 0.6731 GB, free: 4.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.569e-05/0.7081, allocations: 15.94 kB / 0.6731 GB, free: 4.074 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00793/0.716, allocations: 3.474 MB / 0.6765 GB, free: 424 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006063/0.7166, allocations: 251.9 kB / 0.6767 GB, free: 152 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002597/0.7169, allocations: 55.98 kB / 0.6768 GB, free: 96 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.7179, allocations: 44 kB / 0.6768 GB, free: 52 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004153/0.7183, allocations: 188.9 kB / 0.677 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002029/0.7185, allocations: 99.91 kB / 0.6771 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001537/0.72, allocations: 0.8966 MB / 0.678 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.1e-08/0.72, allocations: 0 / 0.678 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004353/0.7244, allocations: 1.216 MB / 0.6791 GB, free: 13.65 MB / 0.5294 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.002807/0.7272, allocations: 1.338 MB / 0.6805 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00534/0.7325, allocations: 2.358 MB / 0.6828 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/0.7326, allocations: 4.5 kB / 0.6828 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002363/0.7349, allocations: 1.36 MB / 0.6841 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.737, allocations: 348.2 kB / 0.6844 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006981/0.744, allocations: 4.053 MB / 0.6884 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.7453, allocations: 1.421 MB / 0.6898 GB, free: 2.477 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00169/0.747, allocations: 466.4 kB / 0.6902 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007115/0.7477, allocations: 291.2 kB / 0.6905 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/0.7477, allocations: 0 / 0.6905 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of Templates: time 0.3153/1.063, allocations: 42.61 MB / 0.7321 GB, free: 170.1 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: 7.5051141157746315] Failed to read output from testmodel.py, exit status != 0: 1.0726479664444923 1.083555486 0.539379285 Calling exit ...