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.0009619/0.0009619, allocations: 88.22 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.001148/0.001148, allocations: 173 kB / 23.02 MB, free: 1.539 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.9562/0.9562, allocations: 177.1 MB / 203.4 MB, free: 5.621 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.1028/0.1028, allocations: 17.38 MB / 277.3 MB, free: 11.63 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.864e-06/1.864e-06, allocations: 0 / 353.4 MB, free: 9.98 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.787e-05/2.974e-05, allocations: 4.984 kB / 353.4 MB, free: 9.977 MB / 282.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.03489/0.03492, allocations: 33.77 MB / 387.2 MB, free: 8.312 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.1921/0.2271, allocations: 26.24 MB / 413.4 MB, free: 34 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00139/0.2284, allocations: 33.03 kB / 413.5 MB, free: 34 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.2297, allocations: 0.5668 MB / 414 MB, free: 34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004523/0.2342, allocations: 2.205 MB / 416.3 MB, free: 33.67 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007381/0.2416, allocations: 3.635 MB / 419.9 MB, free: 32.97 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003365/0.2449, allocations: 2.944 MB / 422.8 MB, free: 32.22 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001883/0.2468, allocations: 1.403 MB / 424.2 MB, free: 32.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002241/0.2491, allocations: 1.907 MB / 426.1 MB, free: 31.85 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.2509, allocations: 1.239 MB / 427.4 MB, free: 31.6 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005601/0.2514, allocations: 260.9 kB / 427.6 MB, free: 31.6 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006764/0.2582, allocations: 2.728 MB / 430.4 MB, free: 31.16 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005182/0.2587, allocations: 0.6252 MB / 431 MB, free: 30.81 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001209/0.2599, allocations: 0.95 MB / 431.9 MB, free: 30.46 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00964/0.2696, allocations: 5.218 MB / 437.2 MB, free: 27.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2696, allocations: 7.438 kB / 437.2 MB, free: 27.96 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2696, allocations: 2.656 kB / 437.2 MB, free: 27.96 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.473e-05/0.2697, allocations: 0 / 437.2 MB, free: 27.96 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.003436/0.2731, allocations: 3.141 MB / 440.3 MB, free: 25.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.2731, allocations: 9.094 kB / 440.3 MB, free: 25.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00146/0.2746, allocations: 0.9565 MB / 441.3 MB, free: 25.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.2759, allocations: 1.271 MB / 442.5 MB, free: 24.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.276, allocations: 275.2 kB / 442.8 MB, free: 24.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/0.2762, allocations: 226.3 kB / 443 MB, free: 24.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/0.2784, allocations: 2.043 MB / 445.1 MB, free: 22.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.2784, allocations: 5.812 kB / 445.1 MB, free: 22.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.2785, allocations: 95.94 kB / 445.2 MB, free: 21.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.542e-05/0.2786, allocations: 52 kB / 445.2 MB, free: 21.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00224/0.2808, allocations: 2.059 MB / 447.3 MB, free: 19.82 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.007054/0.2878, allocations: 6.977 MB / 454.3 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.2892, allocations: 1.233 MB / 455.5 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005927/0.2898, allocations: 0.5688 MB / 456.1 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004837/0.2946, allocations: 4.153 MB / 460.2 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.2946, allocations: 57.88 kB / 460.3 MB, free: 6.969 MB / 330.7 MB Notification: Performance of pre-optimization done (n=128): time 2.966e-06/0.2946, allocations: 2.656 kB / 460.3 MB, free: 6.969 MB / 330.7 MB Notification: Performance of matching and sorting (n=181): time 0.01698/0.3116, allocations: 6.81 MB / 467.1 MB, free: 240 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.3116, allocations: 95.11 kB / 467.2 MB, free: 124 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009586/0.3126, allocations: 1.168 MB / 468.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.999e-05/0.3127, allocations: 53.7 kB / 468.4 MB, free: 14.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005103/0.3132, allocations: 1.139 MB / 469.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003862/0.3136, allocations: 0.657 MB / 470.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004657/0.314, allocations: 483.4 kB / 470.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3141, allocations: 484.7 kB / 471.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006998/0.3148, allocations: 459.5 kB / 471.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.3161, allocations: 1.631 MB / 473.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00215/0.3182, allocations: 2.311 MB / 475.5 MB, free: 6.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/0.3182, allocations: 10.69 kB / 475.5 MB, free: 6.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=324) (initialization): time 0.003767/0.322, allocations: 2.396 MB / 477.9 MB, free: 4.641 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.322, allocations: 21 kB / 478 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/0.322, allocations: 28 kB / 478 MB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002045/0.3241, allocations: 0.5934 MB / 478.6 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.3259, allocations: 0.7974 MB / 479.4 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005435/0.3314, allocations: 9.813 MB / 489.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009762/0.3323, allocations: 94.59 kB / 489.3 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.3325, allocations: 148 kB / 489.4 MB, free: 8.742 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.000467/0.333, allocations: 320.3 kB / 489.7 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002834/0.3333, allocations: 222.9 kB / 490 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.3366, allocations: 2.078 MB / 492 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.3366, allocations: 16 kB / 492.1 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3366, allocations: 4 kB / 492.1 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.3366, allocations: 11.95 kB / 492.1 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005359/0.342, allocations: 3.909 MB / 496 MB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.342, allocations: 14.69 kB / 496 MB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008812/0.3429, allocations: 422 kB / 496.4 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002128/0.345, allocations: 0.6277 MB / 497 MB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.3451, allocations: 75.97 kB / 497.1 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004916/0.35, allocations: 9.514 MB / 0.4947 GB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/0.35, allocations: 19.88 kB / 0.4948 GB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003773/0.3538, allocations: 2.913 MB / 0.4976 GB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003214/0.3541, allocations: 166.8 kB / 0.4978 GB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.3543, allocations: 52 kB / 0.4978 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005079/0.3548, allocations: 51.98 kB / 0.4979 GB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.355, allocations: 199.5 kB / 0.4981 GB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.3551, allocations: 91.97 kB / 0.4981 GB, free: 3.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006241/0.3557, allocations: 0.6476 MB / 0.4988 GB, free: 2.527 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3557, allocations: 2.656 kB / 0.4988 GB, free: 2.527 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002844/0.3586, allocations: 1.15 MB / 0.4999 GB, free: 1.375 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.002022/0.3606, allocations: 1.275 MB / 0.5011 GB, free: 300 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.3635, allocations: 2.017 MB / 0.5031 GB, free: 14.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.3635, allocations: 7.938 kB / 0.5031 GB, free: 14.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.3648, allocations: 1.432 MB / 0.5045 GB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.366, allocations: 375.2 kB / 0.5049 GB, free: 12.43 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.004698/0.3707, allocations: 3.814 MB / 0.5086 GB, free: 8.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.371, allocations: 369.8 kB / 0.509 GB, free: 8.043 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000968/0.3719, allocations: 449.2 kB / 0.5094 GB, free: 7.734 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004599/0.3724, allocations: 286.8 kB / 0.5097 GB, free: 7.457 MB / 394.7 MB Notification: Performance of SimCode: time 1.162e-06/0.3724, allocations: 0 / 0.5097 GB, free: 7.457 MB / 394.7 MB Notification: Performance of Templates: time 0.04317/0.4156, allocations: 40.29 MB / 0.549 GB, free: 15.92 MB / 442.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.334464393090457]