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.001124/0.001124, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001273/0.001273, allocations: 177 kB / 23.36 MB, free: 1.129 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.9679/0.9679, allocations: 177.2 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.1259/0.1259, allocations: 17.39 MB / 277.6 MB, free: 11.53 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 300.6 MB, free: 1.941 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.281e-05, allocations: 4.781 kB / 300.6 MB, free: 1.938 MB / 266.7 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.0327/0.03273, allocations: 39.46 MB / 340.1 MB, free: 13.19 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02192/0.05464, allocations: 26 MB / 366.1 MB, free: 3.09 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.05587, allocations: 31.75 kB / 366.1 MB, free: 3.059 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.05699, allocations: 0.5774 MB / 366.7 MB, free: 2.477 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004556/0.06155, allocations: 2.214 MB / 368.9 MB, free: 252 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007626/0.06918, allocations: 3.673 MB / 372.6 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002644/0.07182, allocations: 2.936 MB / 375.5 MB, free: 9.602 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/0.07334, allocations: 1.428 MB / 376.9 MB, free: 8.109 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00171/0.07505, allocations: 1.969 MB / 378.9 MB, free: 6.137 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001392/0.07644, allocations: 1.263 MB / 380.2 MB, free: 4.871 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003091/0.07675, allocations: 260 kB / 380.4 MB, free: 4.617 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005473/0.08222, allocations: 2.717 MB / 383.1 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004505/0.08267, allocations: 0.6269 MB / 383.8 MB, free: 1.266 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000856/0.08353, allocations: 0.955 MB / 384.7 MB, free: 316 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.08954, allocations: 5.276 MB / 390 MB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.08954, allocations: 0 / 390 MB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.08954, allocations: 3.984 kB / 390 MB, free: 11.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.427e-05/0.08958, allocations: 0 / 390 MB, free: 11.01 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.004187/0.09376, allocations: 3.024 MB / 393 MB, free: 7.938 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.0938, allocations: 8.031 kB / 393 MB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001825/0.09562, allocations: 0.8493 MB / 393.9 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.09691, allocations: 0.8591 MB / 394.7 MB, free: 6.188 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.09709, allocations: 271.7 kB / 395 MB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002824/0.09737, allocations: 220.3 kB / 395.2 MB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.09951, allocations: 1.876 MB / 397.1 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.731e-05/0.09955, allocations: 4 kB / 397.1 MB, free: 3.703 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001698/0.09972, allocations: 88 kB / 397.2 MB, free: 3.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002812/0.1, allocations: 63.94 kB / 397.2 MB, free: 3.555 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002088/0.1021, allocations: 1.542 MB / 398.8 MB, free: 2.008 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.007826/0.1099, allocations: 5.624 MB / 404.4 MB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.1111, allocations: 1.065 MB / 405.5 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005223/0.1117, allocations: 423.5 kB / 405.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005976/0.1176, allocations: 3.712 MB / 409.6 MB, free: 7.004 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.1177, allocations: 47.88 kB / 409.6 MB, free: 6.949 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 2.796e-06/0.1177, allocations: 0 / 409.6 MB, free: 6.949 MB / 378.7 MB Notification: Performance of matching and sorting (n=181): time 0.01593/0.1336, allocations: 6.384 MB / 416 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.1336, allocations: 103 kB / 416.1 MB, free: 408 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006703/0.1343, allocations: 1.072 MB / 417.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.03e-05/0.1344, allocations: 61.69 kB / 417.3 MB, free: 15.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/0.1348, allocations: 0.9656 MB / 418.2 MB, free: 14.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003234/0.1351, allocations: 0.6584 MB / 418.9 MB, free: 13.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000397/0.1355, allocations: 480.9 kB / 419.4 MB, free: 13.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.1356, allocations: 305.2 kB / 419.7 MB, free: 12.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.1359, allocations: 308.5 kB / 420 MB, free: 12.53 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00073/0.1367, allocations: 1.154 MB / 421.1 MB, free: 10.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001542/0.1382, allocations: 1.778 MB / 422.9 MB, free: 8.824 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.098e-05/0.1382, allocations: 12 kB / 422.9 MB, free: 8.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.002845/0.1411, allocations: 1.722 MB / 424.6 MB, free: 7.066 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/0.1411, allocations: 16 kB / 424.6 MB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-05/0.1411, allocations: 28 kB / 424.7 MB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/0.1429, allocations: 0.5954 MB / 425.3 MB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.1446, allocations: 0.7957 MB / 426.1 MB, free: 5.617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004117/0.1487, allocations: 6.643 MB / 432.7 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007228/0.1494, allocations: 95.89 kB / 432.8 MB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.1495, allocations: 124.1 kB / 432.9 MB, free: 14.35 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.0003544/0.1499, allocations: 279.6 kB / 433.2 MB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.1501, allocations: 151.9 kB / 433.3 MB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002318/0.1524, allocations: 1.604 MB / 434.9 MB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.1524, allocations: 20 kB / 435 MB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1524, allocations: 0 / 435 MB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.1524, allocations: 11.95 kB / 435 MB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003767/0.1562, allocations: 3.065 MB / 438 MB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.1562, allocations: 13 kB / 438.1 MB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007705/0.157, allocations: 411.5 kB / 438.5 MB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/0.1586, allocations: 0.6201 MB / 439.1 MB, free: 7.922 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.1587, allocations: 79.97 kB / 439.2 MB, free: 7.844 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003418/0.1622, allocations: 6.419 MB / 445.6 MB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/0.1622, allocations: 15.94 kB / 445.6 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1371/0.2993, allocations: 2.156 MB / 447.7 MB, free: 94.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.2996, allocations: 164.6 kB / 447.9 MB, free: 94.92 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.2998, allocations: 54.62 kB / 448 MB, free: 94.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/0.3003, allocations: 49.27 kB / 448 MB, free: 94.92 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.3005, allocations: 199.6 kB / 448.2 MB, free: 94.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.3006, allocations: 79.36 kB / 448.3 MB, free: 94.92 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005384/0.3011, allocations: 492.3 kB / 448.8 MB, free: 94.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3011, allocations: 1.156 kB / 448.8 MB, free: 94.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00264/0.3038, allocations: 1.152 MB / 449.9 MB, free: 94.87 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.001786/0.3056, allocations: 1.317 MB / 451.2 MB, free: 94.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.3078, allocations: 1.642 MB / 452.9 MB, free: 94.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.834e-05/0.3079, allocations: 32.91 kB / 452.9 MB, free: 94.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008409/0.3087, allocations: 1.105 MB / 454 MB, free: 94.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.3097, allocations: 376.1 kB / 454.4 MB, free: 94.05 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.004154/0.3139, allocations: 3.583 MB / 458 MB, free: 92.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.3142, allocations: 365.9 kB / 458.3 MB, free: 92.17 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009687/0.3151, allocations: 423.9 kB / 458.7 MB, free: 92.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007744/0.3159, allocations: 0.5275 MB / 459.3 MB, free: 92.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.3159, allocations: 2.656 kB / 459.3 MB, free: 92.1 MB / 410.7 MB Notification: Performance of Templates: time 0.04025/0.3562, allocations: 45.92 MB / 0.4933 GB, free: 62.57 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ElectrochemicalCell.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.258283338043839]