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.00088/0.00088, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.0008695/0.0008695, allocations: 181 kB / 23.35 MB, free: 1.137 MB / 18.57 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 0.8923/0.8923, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.08501/0.08501, allocations: 17.47 MB / 277.7 MB, free: 11.43 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 300.7 MB, free: 1.555 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.608e-06/1.098e-05, allocations: 6.219 kB / 300.7 MB, free: 1.551 MB / 266.7 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.06692/0.06693, allocations: 39.45 MB / 340.2 MB, free: 12.76 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01965/0.08658, allocations: 26.01 MB / 366.2 MB, free: 2.652 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009008/0.08748, allocations: 31.75 kB / 366.2 MB, free: 2.621 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009485/0.08843, allocations: 0.5735 MB / 366.8 MB, free: 2.043 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003544/0.09197, allocations: 2.222 MB / 369 MB, free: 15.8 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006191/0.09816, allocations: 3.669 MB / 372.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002109/0.1003, allocations: 2.952 MB / 375.6 MB, free: 9.148 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009901/0.1013, allocations: 1.421 MB / 377.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.1025, allocations: 1.969 MB / 379 MB, free: 5.691 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/0.1036, allocations: 1.255 MB / 380.3 MB, free: 4.434 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002332/0.1038, allocations: 256 kB / 380.5 MB, free: 4.184 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003911/0.1077, allocations: 2.725 MB / 383.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.108, allocations: 0.623 MB / 383.9 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006171/0.1087, allocations: 0.955 MB / 384.8 MB, free: 15.87 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004398/0.1131, allocations: 5.276 MB / 390.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1131, allocations: 0 / 390.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1131, allocations: 0 / 390.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.1131, allocations: 0 / 390.1 MB, free: 10.57 MB / 362.7 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.002648/0.1157, allocations: 3.028 MB / 393.1 MB, free: 7.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.77e-05/0.1158, allocations: 12.03 kB / 393.2 MB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001256/0.117, allocations: 0.8573 MB / 394 MB, free: 6.629 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009741/0.118, allocations: 0.8396 MB / 394.8 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.1181, allocations: 279.7 kB / 395.1 MB, free: 5.457 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/0.1183, allocations: 228.3 kB / 395.3 MB, free: 5.234 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.1199, allocations: 1.869 MB / 397.2 MB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/0.1199, allocations: 0 / 397.2 MB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.12, allocations: 96 kB / 397.3 MB, free: 3.176 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.717e-05/0.12, allocations: 52 kB / 397.4 MB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.1215, allocations: 1.558 MB / 398.9 MB, free: 1.562 MB / 362.7 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.005635/0.1271, allocations: 5.62 MB / 404.5 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009121/0.128, allocations: 1.069 MB / 405.6 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003717/0.1284, allocations: 423.4 kB / 406 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004349/0.1328, allocations: 3.712 MB / 409.7 MB, free: 6.555 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.1328, allocations: 51.8 kB / 409.8 MB, free: 6.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 1.894e-06/0.1328, allocations: 0 / 409.8 MB, free: 6.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=181): time 0.01192/0.1447, allocations: 6.392 MB / 416.2 MB, free: 64 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.1448, allocations: 103.1 kB / 416.3 MB, free: 15.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006417/0.1454, allocations: 1.079 MB / 417.4 MB, free: 14.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.427e-05/0.1455, allocations: 53.7 kB / 417.4 MB, free: 14.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.1459, allocations: 0.9695 MB / 418.4 MB, free: 13.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003087/0.1462, allocations: 0.6545 MB / 419 MB, free: 13.15 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003903/0.1466, allocations: 480.9 kB / 419.5 MB, free: 12.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.628e-05/0.1466, allocations: 301.1 kB / 419.8 MB, free: 12.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/0.147, allocations: 308.5 kB / 420.1 MB, free: 12.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006901/0.1477, allocations: 1.15 MB / 421.2 MB, free: 10.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.1489, allocations: 1.77 MB / 423 MB, free: 8.383 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.1489, allocations: 12 kB / 423 MB, free: 8.371 MB / 394.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.002109/0.151, allocations: 1.722 MB / 424.7 MB, free: 6.625 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.151, allocations: 16 kB / 424.8 MB, free: 6.609 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.151, allocations: 28 kB / 424.8 MB, free: 6.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/0.1526, allocations: 0.5992 MB / 425.4 MB, free: 5.969 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/0.1542, allocations: 0.7802 MB / 426.2 MB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003719/0.1579, allocations: 6.659 MB / 432.8 MB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006669/0.1586, allocations: 100 kB / 432.9 MB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.1587, allocations: 116 kB / 433 MB, free: 13.91 MB / 410.7 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.0003653/0.1591, allocations: 283.7 kB / 433.3 MB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.1593, allocations: 143.8 kB / 433.5 MB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00229/0.1616, allocations: 1.612 MB / 435.1 MB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/0.1616, allocations: 20 kB / 435.1 MB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1616, allocations: 3.938 kB / 435.1 MB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.1616, allocations: 11.97 kB / 435.1 MB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.1652, allocations: 3.046 MB / 438.1 MB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.1652, allocations: 19.94 kB / 438.2 MB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007362/0.1659, allocations: 415.5 kB / 438.6 MB, free: 8.121 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/0.1676, allocations: 0.6277 MB / 439.2 MB, free: 7.473 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.962e-05/0.1677, allocations: 79.97 kB / 439.3 MB, free: 7.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003317/0.171, allocations: 6.415 MB / 445.7 MB, free: 0.5664 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.171, allocations: 15.94 kB / 445.7 MB, free: 0.5508 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1253/0.2964, allocations: 2.15 MB / 447.9 MB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/0.2966, allocations: 165 kB / 448 MB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.2968, allocations: 54.38 kB / 448.1 MB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004756/0.2973, allocations: 48.36 kB / 448.1 MB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.2975, allocations: 200.9 kB / 448.3 MB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-05/0.2976, allocations: 75.36 kB / 448.4 MB, free: 93.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004401/0.298, allocations: 497.6 kB / 448.9 MB, free: 93.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.298, allocations: 3.625 kB / 448.9 MB, free: 93.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002466/0.3005, allocations: 1.152 MB / 450 MB, free: 93.57 MB / 410.7 MB 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.001505/0.302, allocations: 1.325 MB / 451.4 MB, free: 93.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.304, allocations: 1.64 MB / 453 MB, free: 93.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.504e-05/0.304, allocations: 27.72 kB / 453 MB, free: 93.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007901/0.3048, allocations: 1.101 MB / 454.1 MB, free: 92.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009902/0.3058, allocations: 386.2 kB / 454.5 MB, free: 92.75 MB / 410.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003677/0.3095, allocations: 3.586 MB / 458.1 MB, free: 90.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.3097, allocations: 370 kB / 458.5 MB, free: 90.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008628/0.3106, allocations: 419.4 kB / 458.9 MB, free: 90.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007477/0.3113, allocations: 0.5299 MB / 459.4 MB, free: 90.79 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/0.3113, allocations: 0 / 459.4 MB, free: 90.79 MB / 410.7 MB Notification: Performance of Templates: time 0.03709/0.3484, allocations: 45.92 MB / 0.4935 GB, free: 60.95 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.9889849149622023]