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.001297/0.001297, allocations: 104.3 kB / 19.7 MB, free: 2.008 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.001513/0.001513, allocations: 211.6 kB / 22.99 MB, free: 4.414 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1394/0.1394, allocations: 23.89 MB / 337.1 MB, free: 10.96 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.002063/0.002063, allocations: 66.7 kB / 472.4 MB, free: 7.004 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3472, allocations: 59.86 MB / 0.5197 GB, free: 9.723 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.07867/0.4258, allocations: 29.86 MB / 0.5489 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03673/0.4626, allocations: 25.3 MB / 0.5736 GB, free: 2.688 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002459/0.465, allocations: 35.69 kB / 0.5736 GB, free: 2.652 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002302/0.4673, allocations: 0.593 MB / 0.5742 GB, free: 2.055 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007996/0.4753, allocations: 2.173 MB / 0.5763 GB, free: 15.87 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01406/0.4894, allocations: 3.934 MB / 0.5802 GB, free: 11.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005271/0.4947, allocations: 2.848 MB / 0.583 GB, free: 9.051 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002945/0.4976, allocations: 1.373 MB / 0.5843 GB, free: 7.629 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002507/0.5001, allocations: 1.348 MB / 0.5856 GB, free: 6.277 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002854/0.503, allocations: 1.506 MB / 0.5871 GB, free: 4.766 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009624/0.5039, allocations: 260 kB / 0.5873 GB, free: 4.512 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01036/0.5143, allocations: 3.038 MB / 0.5903 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001323/0.5156, allocations: 0.6075 MB / 0.5909 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002579/0.5182, allocations: 1.086 MB / 0.592 GB, free: 15.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0158/0.534, allocations: 6.186 MB / 0.598 GB, free: 9.559 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.371e-06/0.534, allocations: 0 / 0.598 GB, free: 9.559 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.534, allocations: 0 / 0.598 GB, free: 9.559 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000163/0.5342, allocations: 0 / 0.598 GB, free: 9.559 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.008179/0.5423, allocations: 3.092 MB / 0.601 GB, free: 6.414 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.5424, allocations: 12.03 kB / 0.601 GB, free: 6.402 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002737/0.5451, allocations: 0.5531 MB / 0.6016 GB, free: 5.848 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003121/0.5482, allocations: 1.243 MB / 0.6028 GB, free: 4.566 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003188/0.5486, allocations: 279.5 kB / 0.6031 GB, free: 4.266 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007146/0.5493, allocations: 220 kB / 0.6033 GB, free: 4.051 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006166/0.5554, allocations: 2.683 MB / 0.6059 GB, free: 1.277 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.789e-05/0.5555, allocations: 3.938 kB / 0.6059 GB, free: 1.273 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004557/0.556, allocations: 88 kB / 0.606 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.182e-05/0.556, allocations: 52 kB / 0.606 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006256/0.5623, allocations: 3.298 MB / 0.6092 GB, free: 13.83 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.01484/0.5771, allocations: 6.995 MB / 0.6161 GB, free: 6.699 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002738/0.5799, allocations: 1.531 MB / 0.6176 GB, free: 5.164 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.5813, allocations: 0.8586 MB / 0.6184 GB, free: 4.293 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.5922, allocations: 4.265 MB / 0.6226 GB, free: 16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/0.5922, allocations: 51.75 kB / 0.6226 GB, free: 15.94 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.807e-06/0.5922, allocations: 0 / 0.6226 GB, free: 15.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03033/0.6226, allocations: 8.103 MB / 0.6305 GB, free: 7.785 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.191e-05/0.6227, allocations: 99.11 kB / 0.6306 GB, free: 7.668 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/0.6244, allocations: 1.317 MB / 0.6319 GB, free: 6.34 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.6247, allocations: 61.64 kB / 0.632 GB, free: 6.273 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008425/0.6255, allocations: 1.085 MB / 0.633 GB, free: 5.176 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006804/0.6262, allocations: 0.6546 MB / 0.6337 GB, free: 4.516 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007107/0.6269, allocations: 489 kB / 0.6341 GB, free: 4.031 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.6271, allocations: 305.2 kB / 0.6344 GB, free: 3.73 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/0.6285, allocations: 0.8171 MB / 0.6352 GB, free: 2.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002241/0.6307, allocations: 1.665 MB / 0.6369 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003935/0.6347, allocations: 2.602 MB / 0.6394 GB, free: 13.87 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.955e-05/0.6347, allocations: 8 kB / 0.6394 GB, free: 13.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006968/0.6417, allocations: 3.05 MB / 0.6424 GB, free: 10.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.6417, allocations: 16 kB / 0.6424 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-05/0.6418, allocations: 31.94 kB / 0.6424 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00295/0.6447, allocations: 0.5146 MB / 0.6429 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00381/0.6485, allocations: 0.8036 MB / 0.6437 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009042/0.6576, allocations: 7.508 MB / 0.6511 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/0.6594, allocations: 99.84 kB / 0.6511 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002882/0.6597, allocations: 144 kB / 0.6513 GB, free: 1.207 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.0009689/0.6606, allocations: 449.1 kB / 0.6517 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003949/0.661, allocations: 178.8 kB / 0.6519 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006447/0.6675, allocations: 2.554 MB / 0.6544 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.6675, allocations: 16 kB / 0.6544 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.6675, allocations: 7.938 kB / 0.6544 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/0.6675, allocations: 7.969 kB / 0.6544 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009834/0.6774, allocations: 4.257 MB / 0.6586 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.976e-05/0.6774, allocations: 12 kB / 0.6586 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.679, allocations: 415.4 kB / 0.659 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003/0.682, allocations: 0.5435 MB / 0.6595 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/0.6822, allocations: 79.97 kB / 0.6596 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008365/0.6906, allocations: 7.3 MB / 0.6667 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/0.6906, allocations: 15.94 kB / 0.6667 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007142/0.6977, allocations: 3.454 MB / 0.6701 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005004/0.6982, allocations: 174.7 kB / 0.6703 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/0.6985, allocations: 52 kB / 0.6703 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009156/0.6994, allocations: 51.98 kB / 0.6704 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003274/0.6997, allocations: 196.7 kB / 0.6706 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/0.6999, allocations: 95.97 kB / 0.6706 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001155/0.7011, allocations: 0.8274 MB / 0.6715 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7011, allocations: 3.938 kB / 0.6715 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004463/0.7055, allocations: 1.212 MB / 0.6726 GB, free: 10.41 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.00272/0.7082, allocations: 1.331 MB / 0.6739 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005043/0.7133, allocations: 2.366 MB / 0.6762 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.625e-05/0.7133, allocations: 4 kB / 0.6763 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002219/0.7155, allocations: 1.368 MB / 0.6776 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.7175, allocations: 340.4 kB / 0.6779 GB, free: 4.926 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006821/0.7243, allocations: 4.103 MB / 0.6819 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009959/0.7253, allocations: 0.8576 MB / 0.6828 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00098/0.7263, allocations: 351.2 kB / 0.6831 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/0.7263, allocations: 4 kB / 0.6831 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of Templates: time 0.3317/1.058, allocations: 83.38 MB / 0.7645 GB, free: 161.8 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: 12.353317900036927] Failed to read output from testmodel.py, exit status != 0: 1.067334761028178 1.075950014 0.5394960639999999 Calling exit ...