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.001473/0.001473, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001622/0.001622, allocations: 221.5 kB / 22.26 MB, free: 5.125 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 7.984 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.1462/0.1462, allocations: 23.89 MB / 336.3 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.002095/0.002095, allocations: 63.89 kB / 471.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2926, allocations: 59.87 MB / 0.5191 GB, free: 9.809 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.04046/0.333, allocations: 31.11 MB / 0.5495 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03852/0.3715, allocations: 28.92 MB / 0.5777 GB, free: 13.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.3733, allocations: 31.75 kB / 0.5778 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002129/0.3754, allocations: 0.6553 MB / 0.5784 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006615/0.382, allocations: 2.212 MB / 0.5806 GB, free: 11.06 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01061/0.3926, allocations: 3.938 MB / 0.5844 GB, free: 7.102 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004266/0.3969, allocations: 2.848 MB / 0.5872 GB, free: 4.242 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.3989, allocations: 1.361 MB / 0.5885 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001882/0.4008, allocations: 1.348 MB / 0.5898 GB, free: 1.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002417/0.4032, allocations: 1.503 MB / 0.5913 GB, free: 15.97 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005548/0.4037, allocations: 260 kB / 0.5916 GB, free: 15.72 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008775/0.4125, allocations: 3.151 MB / 0.5946 GB, free: 12.56 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007931/0.4133, allocations: 0.5998 MB / 0.5952 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/0.415, allocations: 1.307 MB / 0.5965 GB, free: 10.65 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01193/0.4269, allocations: 6.202 MB / 0.6025 GB, free: 4.422 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4269, allocations: 0 / 0.6025 GB, free: 4.422 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4269, allocations: 0 / 0.6025 GB, free: 4.422 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.269e-05/0.427, allocations: 0 / 0.6025 GB, free: 4.422 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.005689/0.4326, allocations: 3.088 MB / 0.6056 GB, free: 1.281 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.4327, allocations: 12.03 kB / 0.6056 GB, free: 1.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002213/0.4349, allocations: 0.557 MB / 0.6061 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002373/0.4373, allocations: 1.25 MB / 0.6073 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002452/0.4375, allocations: 279.5 kB / 0.6076 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003614/0.4379, allocations: 227.9 kB / 0.6078 GB, free: 14.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004356/0.4422, allocations: 2.675 MB / 0.6104 GB, free: 12.13 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.219e-05/0.4423, allocations: 3.938 kB / 0.6104 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002163/0.4425, allocations: 88 kB / 0.6105 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.184e-05/0.4425, allocations: 56 kB / 0.6106 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005323/0.4479, allocations: 3.33 MB / 0.6138 GB, free: 8.652 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.01427/0.4621, allocations: 8.595 MB / 0.6222 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002703/0.4648, allocations: 1.531 MB / 0.6237 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.4662, allocations: 0.8547 MB / 0.6246 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/0.4768, allocations: 4.542 MB / 0.629 GB, free: 8.746 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.4768, allocations: 47.88 kB / 0.629 GB, free: 8.691 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 2.946e-06/0.4768, allocations: 0 / 0.629 GB, free: 8.691 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03227/0.5091, allocations: 8.115 MB / 0.637 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/0.5092, allocations: 95.11 kB / 0.637 GB, free: 416 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.511, allocations: 1.374 MB / 0.6384 GB, free: 15.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/0.5112, allocations: 57.73 kB / 0.6384 GB, free: 14.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008298/0.512, allocations: 1.081 MB / 0.6395 GB, free: 13.86 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006381/0.5126, allocations: 0.6585 MB / 0.6401 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007178/0.5134, allocations: 477.1 kB / 0.6406 GB, free: 12.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5135, allocations: 309 kB / 0.6409 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001492/0.515, allocations: 0.8132 MB / 0.6417 GB, free: 11.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002261/0.5172, allocations: 1.661 MB / 0.6433 GB, free: 9.555 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004025/0.5213, allocations: 2.618 MB / 0.6459 GB, free: 6.559 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.561e-05/0.5213, allocations: 8 kB / 0.6459 GB, free: 6.551 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00757/0.5288, allocations: 3.05 MB / 0.6489 GB, free: 3.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.848e-05/0.5289, allocations: 20 kB / 0.6489 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.517e-05/0.5289, allocations: 24 kB / 0.6489 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003497/0.5324, allocations: 0.5225 MB / 0.6494 GB, free: 2.902 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003988/0.5364, allocations: 0.7957 MB / 0.6502 GB, free: 2.105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009906/0.5463, allocations: 7.639 MB / 0.6576 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.5481, allocations: 96.06 kB / 0.6577 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.5484, allocations: 143.9 kB / 0.6579 GB, free: 9.723 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.0008994/0.5493, allocations: 453.4 kB / 0.6583 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003678/0.5497, allocations: 174.9 kB / 0.6585 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007215/0.5569, allocations: 2.582 MB / 0.661 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.05e-05/0.5569, allocations: 16 kB / 0.661 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.5569, allocations: 4 kB / 0.661 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-05/0.557, allocations: 11.95 kB / 0.661 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01146/0.5684, allocations: 4.727 MB / 0.6656 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-05/0.5685, allocations: 12 kB / 0.6656 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/0.5703, allocations: 419.5 kB / 0.666 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003864/0.5742, allocations: 0.5548 MB / 0.6666 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.5744, allocations: 79.97 kB / 0.6667 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009207/0.5836, allocations: 7.427 MB / 0.6739 GB, free: 8.477 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.465e-05/0.5836, allocations: 15.94 kB / 0.6739 GB, free: 8.461 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008437/0.592, allocations: 3.455 MB / 0.6773 GB, free: 4.828 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004789/0.5925, allocations: 186.8 kB / 0.6775 GB, free: 4.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000336/0.5929, allocations: 55.98 kB / 0.6775 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.594, allocations: 48 kB / 0.6776 GB, free: 4.543 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003687/0.5944, allocations: 204.6 kB / 0.6778 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001917/0.5946, allocations: 87.97 kB / 0.6779 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001461/0.596, allocations: 0.9006 MB / 0.6787 GB, free: 3.352 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.596, allocations: 0 / 0.6787 GB, free: 3.352 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004008/0.6001, allocations: 1.216 MB / 0.6799 GB, free: 2.133 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.002784/0.6028, allocations: 1.335 MB / 0.6812 GB, free: 0.7852 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005491/0.6083, allocations: 2.361 MB / 0.6835 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.6083, allocations: 4 kB / 0.6835 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.6109, allocations: 1.372 MB / 0.6849 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.613, allocations: 346.3 kB / 0.6852 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007432/0.6204, allocations: 4.063 MB / 0.6892 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.6217, allocations: 1.433 MB / 0.6906 GB, free: 6.918 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001698/0.6234, allocations: 458.4 kB / 0.691 GB, free: 6.465 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006899/0.624, allocations: 291.2 kB / 0.6913 GB, free: 6.18 MB / 0.5294 GB Notification: Performance of SimCode: time 8.32e-07/0.624, allocations: 0 / 0.6913 GB, free: 6.18 MB / 0.5294 GB Notification: Performance of Templates: time 0.2665/0.8905, allocations: 44.21 MB / 0.7345 GB, free: 173.4 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: 7.016346300020814] Failed to read output from testmodel.py, exit status != 0: 0.8999798339791596 0.910532655 0.48101973099999995 Calling exit ...