Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001416/0.001416, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001656/0.001656, allocations: 213 kB / 23.01 MB, free: 4.566 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1438/0.1438, allocations: 23.89 MB / 337.1 MB, free: 11.17 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical.Obsolete.Examples.ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_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.002055/0.002055, allocations: 67.88 kB / 472.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3793, allocations: 59.87 MB / 0.5199 GB, free: 9.863 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.0478/0.427, allocations: 31.16 MB / 0.5503 GB, free: 8.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03913/0.4662, allocations: 28.9 MB / 0.5785 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002427/0.4686, allocations: 31.75 kB / 0.5786 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002093/0.4707, allocations: 0.6591 MB / 0.5792 GB, free: 13.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007603/0.4783, allocations: 2.212 MB / 0.5814 GB, free: 11.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01253/0.4908, allocations: 3.93 MB / 0.5852 GB, free: 7.07 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005163/0.496, allocations: 2.859 MB / 0.588 GB, free: 4.199 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002233/0.4982, allocations: 1.357 MB / 0.5893 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002157/0.5004, allocations: 1.348 MB / 0.5906 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002648/0.503, allocations: 1.506 MB / 0.5921 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004903/0.5035, allocations: 260 kB / 0.5923 GB, free: 15.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/0.5138, allocations: 3.151 MB / 0.5954 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000874/0.5147, allocations: 0.6037 MB / 0.596 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001703/0.5164, allocations: 1.303 MB / 0.5973 GB, free: 10.61 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01544/0.5319, allocations: 6.202 MB / 0.6033 GB, free: 4.379 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.5319, allocations: 0 / 0.6033 GB, free: 4.379 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5319, allocations: 0 / 0.6033 GB, free: 4.379 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.803e-05/0.5319, allocations: 0 / 0.6033 GB, free: 4.379 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.006274/0.5382, allocations: 3.088 MB / 0.6064 GB, free: 1.238 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.5382, allocations: 12.03 kB / 0.6064 GB, free: 1.227 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002321/0.5406, allocations: 0.5609 MB / 0.6069 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002447/0.543, allocations: 1.25 MB / 0.6081 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002553/0.5433, allocations: 275.5 kB / 0.6084 GB, free: 15.07 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000353/0.5436, allocations: 224 kB / 0.6086 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004389/0.548, allocations: 2.679 MB / 0.6112 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.27e-05/0.548, allocations: 3.938 kB / 0.6112 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002088/0.5483, allocations: 92 kB / 0.6113 GB, free: 11.99 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-05/0.5483, allocations: 56 kB / 0.6114 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005221/0.5535, allocations: 3.326 MB / 0.6146 GB, free: 8.605 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.01479/0.5683, allocations: 8.591 MB / 0.623 GB, free: 15.68 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002682/0.571, allocations: 1.539 MB / 0.6245 GB, free: 14.14 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.5724, allocations: 0.8586 MB / 0.6254 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.583, allocations: 4.534 MB / 0.6298 GB, free: 8.703 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.583, allocations: 43.88 kB / 0.6298 GB, free: 8.652 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 2.745e-06/0.583, allocations: 0 / 0.6298 GB, free: 8.652 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03163/0.6147, allocations: 8.115 MB / 0.6377 GB, free: 492 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.193e-05/0.6147, allocations: 95.11 kB / 0.6378 GB, free: 376 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/0.6166, allocations: 1.37 MB / 0.6392 GB, free: 14.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.6168, allocations: 57.73 kB / 0.6392 GB, free: 14.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008672/0.6177, allocations: 1.085 MB / 0.6403 GB, free: 13.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006445/0.6183, allocations: 0.6624 MB / 0.6409 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007335/0.619, allocations: 481.1 kB / 0.6414 GB, free: 12.68 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6192, allocations: 301.1 kB / 0.6417 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.6206, allocations: 0.8171 MB / 0.6425 GB, free: 11.56 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/0.6229, allocations: 1.661 MB / 0.6441 GB, free: 9.512 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003989/0.6269, allocations: 2.618 MB / 0.6467 GB, free: 6.516 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.688e-05/0.6269, allocations: 8 kB / 0.6467 GB, free: 6.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.007305/0.6342, allocations: 3.054 MB / 0.6497 GB, free: 3.434 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.034e-05/0.6342, allocations: 22.8 kB / 0.6497 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.662e-05/0.6343, allocations: 28 kB / 0.6497 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003344/0.6376, allocations: 0.5186 MB / 0.6502 GB, free: 2.855 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.6414, allocations: 0.7997 MB / 0.651 GB, free: 2.055 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009925/0.6513, allocations: 7.623 MB / 0.6584 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.6534, allocations: 104 kB / 0.6585 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003695/0.6537, allocations: 136 kB / 0.6587 GB, free: 9.688 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.00102/0.6548, allocations: 453.6 kB / 0.6591 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004755/0.6552, allocations: 178.9 kB / 0.6593 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007026/0.6623, allocations: 2.59 MB / 0.6618 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.346e-05/0.6623, allocations: 16 kB / 0.6618 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.6623, allocations: 4 kB / 0.6618 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/0.6623, allocations: 7.969 kB / 0.6618 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.6731, allocations: 4.727 MB / 0.6664 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/0.6732, allocations: 12 kB / 0.6664 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001682/0.6748, allocations: 419.5 kB / 0.6668 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00342/0.6783, allocations: 0.5508 MB / 0.6674 GB, free: 472 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002284/0.6785, allocations: 75.97 kB / 0.6675 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009148/0.6876, allocations: 7.423 MB / 0.6747 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-05/0.6877, allocations: 19.88 kB / 0.6747 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007585/0.6952, allocations: 3.466 MB / 0.6781 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005664/0.6958, allocations: 182.8 kB / 0.6783 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002536/0.6961, allocations: 55.98 kB / 0.6783 GB, free: 4.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009953/0.6971, allocations: 48 kB / 0.6784 GB, free: 4.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003276/0.6974, allocations: 204.6 kB / 0.6786 GB, free: 4.297 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.6975, allocations: 91.97 kB / 0.6787 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001241/0.6988, allocations: 0.9006 MB / 0.6795 GB, free: 3.305 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6988, allocations: 0 / 0.6795 GB, free: 3.305 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003852/0.7026, allocations: 1.212 MB / 0.6807 GB, free: 2.09 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.002602/0.7052, allocations: 1.335 MB / 0.682 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005056/0.7103, allocations: 2.357 MB / 0.6843 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.7103, allocations: 4 kB / 0.6843 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002245/0.7126, allocations: 1.376 MB / 0.6857 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/0.7145, allocations: 343.6 kB / 0.686 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00719/0.7217, allocations: 4.099 MB / 0.69 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.7229, allocations: 1.425 MB / 0.6914 GB, free: 6.84 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/0.724, allocations: 371.1 kB / 0.6918 GB, free: 6.477 MB / 0.5294 GB Notification: Performance of SimCode: time 1.923e-06/0.724, allocations: 0 / 0.6918 GB, free: 6.477 MB / 0.5294 GB Notification: Performance of Templates: time 0.3442/1.068, allocations: 82.78 MB / 0.7726 GB, free: 154.8 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.sim & ./Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.313217668008292] Failed to read output from testmodel.py, exit status != 0: 1.0773585549904965 1.086342612 0.5520988969999999 Calling exit ...