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.00136/0.00136, allocations: 93.06 kB / 19.65 MB, free: 272 kB / 13.93 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.001712/0.001712, allocations: 169 kB / 23.02 MB, free: 1.543 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.9376/0.9376, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.08708/0.08708, allocations: 17.46 MB / 277.4 MB, free: 11.55 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.833e-06/1.833e-06, allocations: 0 / 353.5 MB, free: 9.855 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.222e-05/2.406e-05, allocations: 4.703 kB / 353.5 MB, free: 9.852 MB / 282.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.03478/0.03481, allocations: 33.79 MB / 387.3 MB, free: 8.168 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.1632/0.198, allocations: 26.23 MB / 413.6 MB, free: 34.1 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.1994, allocations: 33.03 kB / 413.6 MB, free: 34.1 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.2006, allocations: 0.5646 MB / 414.2 MB, free: 34.1 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004049/0.2046, allocations: 2.21 MB / 416.4 MB, free: 33.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006338/0.211, allocations: 3.636 MB / 420 MB, free: 33.06 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.2132, allocations: 2.941 MB / 422.9 MB, free: 32.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001265/0.2144, allocations: 1.405 MB / 424.4 MB, free: 32.18 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001659/0.2161, allocations: 1.967 MB / 426.3 MB, free: 31.95 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.2171, allocations: 1.27 MB / 427.6 MB, free: 31.7 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002511/0.2174, allocations: 255.7 kB / 427.8 MB, free: 31.7 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004304/0.2217, allocations: 2.722 MB / 430.6 MB, free: 31.26 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003215/0.222, allocations: 0.6315 MB / 431.2 MB, free: 30.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006442/0.2227, allocations: 0.9559 MB / 432.1 MB, free: 30.56 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005229/0.2279, allocations: 5.27 MB / 437.4 MB, free: 28.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2279, allocations: 0 / 437.4 MB, free: 28.05 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2279, allocations: 0 / 437.4 MB, free: 28.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.586e-05/0.2279, allocations: 0 / 437.4 MB, free: 28.05 MB / 330.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.002944/0.2309, allocations: 3.179 MB / 440.6 MB, free: 25.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2309, allocations: 6.5 kB / 440.6 MB, free: 25.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.2323, allocations: 0.8933 MB / 441.5 MB, free: 25.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.2333, allocations: 1.106 MB / 442.6 MB, free: 24.69 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.2334, allocations: 278.7 kB / 442.9 MB, free: 24.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002035/0.2336, allocations: 228.3 kB / 443.1 MB, free: 24.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002013/0.2357, allocations: 2.048 MB / 445.1 MB, free: 22.1 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/0.2357, allocations: 0 / 445.1 MB, free: 22.1 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.2358, allocations: 94.62 kB / 445.2 MB, free: 22.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.2358, allocations: 52 kB / 445.3 MB, free: 21.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002117/0.238, allocations: 2.06 MB / 447.3 MB, free: 19.91 MB / 330.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.006074/0.244, allocations: 7.001 MB / 454.3 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.2452, allocations: 1.23 MB / 455.6 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005733/0.2458, allocations: 0.5705 MB / 456.1 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004453/0.2502, allocations: 4.176 MB / 460.3 MB, free: 7.086 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.2503, allocations: 46.7 kB / 460.4 MB, free: 7.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=128): time 2.204e-06/0.2503, allocations: 3.094 kB / 460.4 MB, free: 7.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=181): time 0.0126/0.2629, allocations: 6.81 MB / 467.2 MB, free: 304 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.2629, allocations: 103 kB / 467.3 MB, free: 180 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009816/0.2639, allocations: 1.161 MB / 468.4 MB, free: 15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.63e-05/0.264, allocations: 60.33 kB / 468.5 MB, free: 14.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005608/0.2645, allocations: 1.138 MB / 469.6 MB, free: 13.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004467/0.265, allocations: 0.6579 MB / 470.3 MB, free: 13.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004827/0.2655, allocations: 483.4 kB / 470.8 MB, free: 12.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.2656, allocations: 484.7 kB / 471.2 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006631/0.2663, allocations: 452.8 kB / 471.7 MB, free: 11.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.2678, allocations: 1.637 MB / 473.3 MB, free: 9.602 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/0.2707, allocations: 2.305 MB / 475.6 MB, free: 6.926 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.566e-05/0.2708, allocations: 10.66 kB / 475.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.00355/0.2743, allocations: 2.401 MB / 478 MB, free: 4.695 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.2743, allocations: 19.59 kB / 478.1 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-05/0.2744, allocations: 28 kB / 478.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001955/0.2763, allocations: 0.5903 MB / 478.7 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.2782, allocations: 0.8041 MB / 479.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005759/0.284, allocations: 9.809 MB / 489.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008399/0.2848, allocations: 94.56 kB / 489.4 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.285, allocations: 147.9 kB / 489.5 MB, free: 8.797 MB / 362.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.0004578/0.2855, allocations: 330.4 kB / 489.9 MB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002601/0.2857, allocations: 218.9 kB / 490.1 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003382/0.2891, allocations: 2.068 MB / 492.1 MB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.2891, allocations: 20 kB / 492.2 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2891, allocations: 0 / 492.2 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.2891, allocations: 7.969 kB / 492.2 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005239/0.2944, allocations: 3.919 MB / 496.1 MB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.2944, allocations: 13.25 kB / 496.1 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008667/0.2953, allocations: 418 kB / 496.5 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002238/0.2975, allocations: 0.6288 MB / 497.1 MB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.2976, allocations: 79.97 kB / 497.2 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004922/0.3025, allocations: 9.511 MB / 0.4948 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.295e-06/0.3025, allocations: 15.94 kB / 0.4949 GB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0036/0.3061, allocations: 2.907 MB / 0.4977 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/0.3063, allocations: 170.8 kB / 0.4979 GB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.3065, allocations: 59.92 kB / 0.4979 GB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004603/0.3069, allocations: 48 kB / 0.498 GB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.3071, allocations: 196.7 kB / 0.4981 GB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.3072, allocations: 95.97 kB / 0.4982 GB, free: 3.199 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005199/0.3078, allocations: 0.6502 MB / 0.4989 GB, free: 2.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3078, allocations: 0 / 0.4989 GB, free: 2.547 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002218/0.31, allocations: 1.153 MB / 0.5 GB, free: 1.391 MB / 378.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.001484/0.3115, allocations: 1.282 MB / 0.5013 GB, free: 308 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002416/0.3139, allocations: 2.016 MB / 0.5032 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.3139, allocations: 0 / 0.5032 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.315, allocations: 1.446 MB / 0.5046 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.316, allocations: 369.7 kB / 0.505 GB, free: 12.44 MB / 394.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.3202, allocations: 3.806 MB / 0.5087 GB, free: 8.445 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.3205, allocations: 369.7 kB / 0.5091 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009105/0.3214, allocations: 456.6 kB / 0.5095 GB, free: 7.746 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004375/0.3218, allocations: 278.7 kB / 0.5098 GB, free: 7.477 MB / 394.7 MB Notification: Performance of SimCode: time 8.21e-07/0.3218, allocations: 0 / 0.5098 GB, free: 7.477 MB / 394.7 MB Notification: Performance of Templates: time 0.04843/0.3703, allocations: 45.27 MB / 0.554 GB, free: 10.96 MB / 442.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: 4.362341874744743]