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.001683/0.001683, allocations: 100.4 kB / 19.7 MB, free: 2.125 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.001625/0.001625, allocations: 214.8 kB / 22.99 MB, free: 4.949 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.805 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.1393/0.1393, allocations: 24 MB / 337.2 MB, free: 10.86 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.002103/0.002103, allocations: 79.81 kB / 472.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3251, allocations: 59.89 MB / 0.52 GB, free: 9.75 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.07728/0.4024, allocations: 29.93 MB / 0.5492 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03881/0.4412, allocations: 25.32 MB / 0.5739 GB, free: 2.41 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00249/0.4437, allocations: 31.75 kB / 0.5739 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002545/0.4462, allocations: 0.593 MB / 0.5745 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008297/0.4545, allocations: 2.153 MB / 0.5766 GB, free: 15.61 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01211/0.4666, allocations: 3.938 MB / 0.5805 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004819/0.4715, allocations: 2.848 MB / 0.5832 GB, free: 8.793 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00205/0.4735, allocations: 1.338 MB / 0.5846 GB, free: 7.406 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.4754, allocations: 1.34 MB / 0.5859 GB, free: 6.062 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002301/0.4777, allocations: 1.342 MB / 0.5872 GB, free: 4.715 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004846/0.4782, allocations: 260 kB / 0.5874 GB, free: 4.461 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008313/0.4865, allocations: 2.956 MB / 0.5903 GB, free: 1.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008135/0.4873, allocations: 0.6037 MB / 0.5909 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.4889, allocations: 1.097 MB / 0.592 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01365/0.5025, allocations: 6.186 MB / 0.598 GB, free: 9.582 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.5025, allocations: 0 / 0.598 GB, free: 9.582 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5025, allocations: 0 / 0.598 GB, free: 9.582 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.597e-05/0.5026, allocations: 4 kB / 0.598 GB, free: 9.578 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.006435/0.509, allocations: 3.088 MB / 0.601 GB, free: 6.438 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.5091, allocations: 8.031 kB / 0.601 GB, free: 6.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002402/0.5115, allocations: 0.5531 MB / 0.6016 GB, free: 5.875 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002708/0.5142, allocations: 1.254 MB / 0.6028 GB, free: 4.582 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002945/0.5145, allocations: 279.5 kB / 0.6031 GB, free: 4.281 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004117/0.5149, allocations: 224 kB / 0.6033 GB, free: 4.062 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004708/0.5196, allocations: 2.679 MB / 0.6059 GB, free: 1.293 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.618e-05/0.5196, allocations: 7.938 kB / 0.6059 GB, free: 1.285 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.5198, allocations: 88 kB / 0.606 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.342e-05/0.5199, allocations: 56 kB / 0.606 GB, free: 1.145 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005427/0.5253, allocations: 3.287 MB / 0.6093 GB, free: 13.85 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.01374/0.5391, allocations: 7.01 MB / 0.6161 GB, free: 6.703 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.5418, allocations: 1.523 MB / 0.6176 GB, free: 5.176 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.5432, allocations: 0.8509 MB / 0.6184 GB, free: 4.312 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01032/0.5535, allocations: 4.281 MB / 0.6226 GB, free: 4 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.928e-05/0.5536, allocations: 47.88 kB / 0.6226 GB, free: 15.95 MB / 478.1 MB Notification: Performance of pre-optimization done (n=128): time 3.617e-06/0.5536, allocations: 0 / 0.6226 GB, free: 15.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03043/0.584, allocations: 8.091 MB / 0.6305 GB, free: 7.805 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/0.5841, allocations: 95.11 kB / 0.6306 GB, free: 7.691 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.5858, allocations: 1.317 MB / 0.6319 GB, free: 6.363 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001848/0.586, allocations: 53.7 kB / 0.632 GB, free: 6.305 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008251/0.5868, allocations: 1.089 MB / 0.633 GB, free: 5.203 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006377/0.5874, allocations: 0.6624 MB / 0.6337 GB, free: 4.535 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007053/0.5881, allocations: 481 kB / 0.6341 GB, free: 4.059 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.5883, allocations: 305.1 kB / 0.6344 GB, free: 3.758 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.5897, allocations: 0.8171 MB / 0.6352 GB, free: 2.938 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/0.592, allocations: 1.665 MB / 0.6369 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003894/0.5959, allocations: 2.614 MB / 0.6394 GB, free: 13.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.846e-05/0.5959, allocations: 8 kB / 0.6394 GB, free: 13.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.006975/0.6029, allocations: 3.043 MB / 0.6424 GB, free: 10.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.6029, allocations: 19.94 kB / 0.6424 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-05/0.603, allocations: 28 kB / 0.6424 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003119/0.6061, allocations: 0.5107 MB / 0.6429 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003771/0.6099, allocations: 0.7997 MB / 0.6437 GB, free: 9.449 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009238/0.6191, allocations: 7.52 MB / 0.6511 GB, free: 1.469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/0.621, allocations: 103.7 kB / 0.6512 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002751/0.6213, allocations: 140 kB / 0.6513 GB, free: 1.234 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.0009496/0.6223, allocations: 461 kB / 0.6517 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004011/0.6227, allocations: 170.9 kB / 0.6519 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006643/0.6293, allocations: 2.554 MB / 0.6544 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.017e-05/0.6293, allocations: 27.94 kB / 0.6544 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.6293, allocations: 3.938 kB / 0.6544 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.509e-05/0.6294, allocations: 11.95 kB / 0.6544 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.6394, allocations: 4.248 MB / 0.6586 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/0.6394, allocations: 12 kB / 0.6586 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/0.6411, allocations: 415.9 kB / 0.659 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003259/0.6443, allocations: 0.5548 MB / 0.6595 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002936/0.6446, allocations: 83.91 kB / 0.6596 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008593/0.6532, allocations: 7.289 MB / 0.6667 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-05/0.6532, allocations: 24.06 kB / 0.6667 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007196/0.6604, allocations: 3.458 MB / 0.6701 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004888/0.6609, allocations: 166.8 kB / 0.6703 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002466/0.6611, allocations: 55.98 kB / 0.6703 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.6622, allocations: 48 kB / 0.6704 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003194/0.6625, allocations: 204.6 kB / 0.6706 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/0.6627, allocations: 91.97 kB / 0.6707 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001127/0.6638, allocations: 0.8352 MB / 0.6715 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6638, allocations: 0 / 0.6715 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003821/0.6676, allocations: 1.208 MB / 0.6727 GB, free: 10.42 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.002876/0.6705, allocations: 1.331 MB / 0.674 GB, free: 9.074 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005092/0.6756, allocations: 2.37 MB / 0.6763 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/0.6756, allocations: 3.938 kB / 0.6763 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.6778, allocations: 1.364 MB / 0.6776 GB, free: 5.266 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.6798, allocations: 329.7 kB / 0.6779 GB, free: 4.941 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007022/0.6868, allocations: 4.104 MB / 0.6819 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.6878, allocations: 0.8576 MB / 0.6828 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009881/0.6888, allocations: 355.2 kB / 0.6831 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of SimCode: time 7.91e-07/0.6888, allocations: 0 / 0.6831 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.3151/1.004, allocations: 83.39 MB / 0.7645 GB, free: 161.7 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: 11.795307461172342] Failed to read output from testmodel.py, exit status != 0: 1.013049552217126 1.021945312 0.517088294 Calling exit ...