Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.H2O_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.001297/0.001297, 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.001498/0.001498, allocations: 213.2 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.446/1.446, allocations: 230.6 MB / 256.8 MB, free: 8.02 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.1326/0.1326, allocations: 23.84 MB / 337 MB, free: 11.21 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.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell") translateModel(Chemical.Obsolete.Examples.H2O_ElectrochemicalCell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.H2O_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.002084/0.002084, allocations: 80.11 kB / 472.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3252, allocations: 59.85 MB / 0.5198 GB, free: 9.887 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.H2O_ElectrochemicalCell): time 0.04012/0.3653, allocations: 29.09 MB / 0.5482 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02651/0.3918, allocations: 19.53 MB / 0.5673 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001817/0.3936, allocations: 23.81 kB / 0.5673 GB, free: 8.914 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001791/0.3954, allocations: 0.5108 MB / 0.5678 GB, free: 8.512 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004541/0.3999, allocations: 1.244 MB / 0.569 GB, free: 7.453 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008264/0.4082, allocations: 2.889 MB / 0.5718 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003713/0.4119, allocations: 2.09 MB / 0.5739 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001553/0.4135, allocations: 1.08 MB / 0.5749 GB, free: 1.578 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.4147, allocations: 0.931 MB / 0.5758 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001609/0.4163, allocations: 1.07 MB / 0.5769 GB, free: 15.57 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002871/0.4166, allocations: 203.9 kB / 0.5771 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006075/0.4227, allocations: 2.079 MB / 0.5791 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005517/0.4233, allocations: 474.6 kB / 0.5796 GB, free: 12.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.4244, allocations: 0.9917 MB / 0.5805 GB, free: 11.83 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00879/0.4332, allocations: 4.35 MB / 0.5848 GB, free: 7.461 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.4332, allocations: 4 kB / 0.5848 GB, free: 7.457 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4332, allocations: 0 / 0.5848 GB, free: 7.457 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.988e-05/0.4332, allocations: 0 / 0.5848 GB, free: 7.457 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004506/0.4377, allocations: 2.331 MB / 0.5871 GB, free: 5.082 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.4377, allocations: 12.03 kB / 0.5871 GB, free: 5.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001676/0.4394, allocations: 447 kB / 0.5875 GB, free: 4.633 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.4413, allocations: 1.011 MB / 0.5885 GB, free: 3.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.4415, allocations: 242.4 kB / 0.5887 GB, free: 3.328 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002564/0.4418, allocations: 168 kB / 0.5889 GB, free: 3.164 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003521/0.4453, allocations: 2.244 MB / 0.5911 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.4453, allocations: 0 / 0.5911 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/0.4455, allocations: 68 kB / 0.5911 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.544e-05/0.4455, allocations: 40 kB / 0.5912 GB, free: 0.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004132/0.4497, allocations: 2.715 MB / 0.5938 GB, free: 14.02 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.0113/0.4609, allocations: 7.23 MB / 0.6009 GB, free: 6.523 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.4627, allocations: 0.9751 MB / 0.6018 GB, free: 5.523 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008658/0.4636, allocations: 0.5174 MB / 0.6023 GB, free: 4.992 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007278/0.4709, allocations: 3.153 MB / 0.6054 GB, free: 1.816 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.4709, allocations: 43.22 kB / 0.6055 GB, free: 1.766 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004985/0.4714, allocations: 119 kB / 0.6056 GB, free: 1.648 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.855e-06/0.4714, allocations: 0 / 0.6056 GB, free: 1.648 MB / 446.1 MB Notification: Performance of matching and sorting (n=95): time 0.01953/0.491, allocations: 4.561 MB / 0.61 GB, free: 13.03 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/0.491, allocations: 115.8 kB / 0.6101 GB, free: 12.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001916/0.4929, allocations: 1.502 MB / 0.6116 GB, free: 11.37 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.208e-05/0.493, allocations: 41.7 kB / 0.6116 GB, free: 11.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006676/0.4937, allocations: 0.92 MB / 0.6125 GB, free: 10.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003499/0.4941, allocations: 361.1 kB / 0.6129 GB, free: 10.04 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004906/0.4945, allocations: 359.3 kB / 0.6132 GB, free: 9.676 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4947, allocations: 309.2 kB / 0.6135 GB, free: 9.371 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.4957, allocations: 0.6363 MB / 0.6141 GB, free: 8.734 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.4974, allocations: 1.337 MB / 0.6155 GB, free: 7.066 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/0.5, allocations: 1.936 MB / 0.6173 GB, free: 4.801 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.5, allocations: 7.938 kB / 0.6173 GB, free: 4.793 MB / 462.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005965/0.506, allocations: 2.386 MB / 0.6197 GB, free: 2.383 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.506, allocations: 16 kB / 0.6197 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.127e-05/0.5061, allocations: 27.94 kB / 0.6197 GB, free: 2.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002746/0.5089, allocations: 379.3 kB / 0.6201 GB, free: 1.957 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002814/0.5117, allocations: 0.5695 MB / 0.6206 GB, free: 1.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009661/0.5213, allocations: 7.489 MB / 0.628 GB, free: 9.383 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.5228, allocations: 88.03 kB / 0.628 GB, free: 9.297 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001901/0.523, allocations: 104 kB / 0.6281 GB, free: 9.195 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (219): * Single equations (assignments): 213 * 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,1), (1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007205/0.5237, allocations: 369.5 kB / 0.6285 GB, free: 8.824 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003228/0.5241, allocations: 127.2 kB / 0.6286 GB, free: 8.699 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004954/0.529, allocations: 1.538 MB / 0.6301 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.529, allocations: 15.94 kB / 0.6301 GB, free: 7.121 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.529, allocations: 8 kB / 0.6301 GB, free: 7.113 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.5291, allocations: 3.984 kB / 0.6301 GB, free: 7.109 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00744/0.5365, allocations: 2.975 MB / 0.633 GB, free: 3.984 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.5365, allocations: 8 kB / 0.6331 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009399/0.5374, allocations: 215.7 kB / 0.6333 GB, free: 3.766 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002924/0.5404, allocations: 408.9 kB / 0.6336 GB, free: 3.348 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.5405, allocations: 43.98 kB / 0.6337 GB, free: 3.305 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008479/0.549, allocations: 7.303 MB / 0.6408 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-05/0.549, allocations: 11.94 kB / 0.6408 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005335/0.5543, allocations: 2.16 MB / 0.6429 GB, free: 9.191 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004011/0.5547, allocations: 127.2 kB / 0.6431 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.5549, allocations: 28 kB / 0.6431 GB, free: 9.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007061/0.5556, allocations: 28 kB / 0.6431 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.5558, allocations: 120.2 kB / 0.6432 GB, free: 8.895 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.842e-05/0.5559, allocations: 47.98 kB / 0.6433 GB, free: 8.848 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001342/0.5572, allocations: 1.033 MB / 0.6443 GB, free: 7.809 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5572, allocations: 0 / 0.6443 GB, free: 7.809 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002798/0.56, allocations: 0.8299 MB / 0.6451 GB, free: 6.977 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (101): * Single equations (assignments): 95 * 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,1), (1,1), (1,3), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00168/0.5617, allocations: 0.8985 MB / 0.646 GB, free: 6.062 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003497/0.5652, allocations: 1.699 MB / 0.6476 GB, free: 4.336 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5652, allocations: 4.812 kB / 0.6476 GB, free: 4.332 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.5667, allocations: 0.9606 MB / 0.6486 GB, free: 3.32 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.5682, allocations: 234.4 kB / 0.6488 GB, free: 3.094 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004905/0.5731, allocations: 2.929 MB / 0.6517 GB, free: 40 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009559/0.574, allocations: 1.219 MB / 0.6528 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005791/0.5746, allocations: 219.3 kB / 0.6531 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of SimCode: time 6.91e-07/0.5746, allocations: 0 / 0.6531 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of Templates: time 0.06932/0.6439, allocations: 61.39 MB / 0.713 GB, free: 1.176 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.sim & ./Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.H2O_ElectrochemicalCell.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.851558863883838] Failed to read output from testmodel.py, exit status != 0: 0.6536805559881032 0.667939806 0.231501865 Calling exit ...