Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.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.0009139/0.0009139, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.0009752/0.0009752, allocations: 173.7 kB / 23.28 MB, free: 1.219 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.8764/0.8764, allocations: 177.2 MB / 203.7 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.0827/0.0827, allocations: 17.38 MB / 277.6 MB, free: 11.47 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.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 353.9 MB, free: 9.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.079e-05/2.273e-05, allocations: 2.312 kB / 353.9 MB, free: 9.672 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.ClimateChange.MethanElectrosynthesis): time 0.03125/0.03127, allocations: 32.71 MB / 386.6 MB, free: 9.078 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01251/0.04378, allocations: 14.83 MB / 401.4 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009798/0.04476, allocations: 35.75 kB / 401.5 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008154/0.04558, allocations: 428.3 kB / 401.9 MB, free: 9.742 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002772/0.04835, allocations: 1.33 MB / 403.2 MB, free: 8.402 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003914/0.05226, allocations: 2.268 MB / 405.5 MB, free: 6.121 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002086/0.05435, allocations: 2.479 MB / 408 MB, free: 3.629 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.05556, allocations: 1.295 MB / 409.3 MB, free: 2.285 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001584/0.05714, allocations: 1.599 MB / 410.9 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1149/0.172, allocations: 1.035 MB / 411.9 MB, free: 39.22 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006937/0.1727, allocations: 234.2 kB / 412.1 MB, free: 39.22 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00298/0.1757, allocations: 1.504 MB / 413.6 MB, free: 39.22 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003667/0.1761, allocations: 0.5547 MB / 414.2 MB, free: 39.22 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009166/0.177, allocations: 0.8324 MB / 415 MB, free: 39.22 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003858/0.1808, allocations: 3.456 MB / 418.5 MB, free: 38.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1808, allocations: 0 / 418.5 MB, free: 38.99 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.71e-07/0.1808, allocations: 0 / 418.5 MB, free: 38.99 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.107e-05/0.1809, allocations: 1.062 kB / 418.5 MB, free: 38.99 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.002899/0.1838, allocations: 2.64 MB / 421.1 MB, free: 37.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.1838, allocations: 9.969 kB / 421.1 MB, free: 37.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001248/0.1851, allocations: 0.8431 MB / 422 MB, free: 37.51 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008605/0.1859, allocations: 0.9741 MB / 422.9 MB, free: 37.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.186, allocations: 253.4 kB / 423.2 MB, free: 37.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.1862, allocations: 195 kB / 423.4 MB, free: 37.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.1876, allocations: 1.672 MB / 425 MB, free: 36.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/0.1876, allocations: 3.188 kB / 425 MB, free: 36.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.1877, allocations: 80.59 kB / 425.1 MB, free: 36.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.1877, allocations: 47.78 kB / 425.2 MB, free: 36.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.189, allocations: 1.443 MB / 426.6 MB, free: 36.69 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.005408/0.1944, allocations: 7.039 MB / 433.7 MB, free: 32.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007119/0.1951, allocations: 0.792 MB / 434.4 MB, free: 32.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.1954, allocations: 325.1 kB / 434.8 MB, free: 32.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003283/0.1987, allocations: 3.21 MB / 438 MB, free: 30.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/0.1987, allocations: 41.55 kB / 438 MB, free: 30.76 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003421/0.199, allocations: 178.4 kB / 438.2 MB, free: 30.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 1.864e-06/0.199, allocations: 0 / 438.2 MB, free: 30.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=115): time 0.01036/0.2094, allocations: 4.761 MB / 443 MB, free: 26.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.2094, allocations: 123 kB / 443.1 MB, free: 26.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006243/0.21, allocations: 1.26 MB / 444.3 MB, free: 25.65 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.516e-05/0.2101, allocations: 45.7 kB / 444.4 MB, free: 25.6 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002791/0.2104, allocations: 1.113 MB / 445.5 MB, free: 24.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.2105, allocations: 441.8 kB / 445.9 MB, free: 24.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.2109, allocations: 434 kB / 446.3 MB, free: 23.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.988e-05/0.2109, allocations: 480.8 kB / 446.8 MB, free: 23.26 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.2112, allocations: 279.8 kB / 447.1 MB, free: 22.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005213/0.2117, allocations: 1.324 MB / 448.4 MB, free: 21.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009782/0.2127, allocations: 1.789 MB / 450.2 MB, free: 19.19 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.2127, allocations: 8 kB / 450.2 MB, free: 19.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.002823/0.2155, allocations: 2.027 MB / 452.2 MB, free: 17.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.2155, allocations: 21.59 kB / 452.3 MB, free: 17.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.2155, allocations: 24 kB / 452.3 MB, free: 17.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/0.2178, allocations: 0.9142 MB / 453.2 MB, free: 16.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006364/0.2185, allocations: 438.1 kB / 453.6 MB, free: 16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003797/0.2223, allocations: 7.871 MB / 461.5 MB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/0.2229, allocations: 86.55 kB / 461.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-05/0.223, allocations: 106.8 kB / 461.7 MB, free: 7.699 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002844/0.2233, allocations: 294.1 kB / 462 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.2235, allocations: 179.1 kB / 462.1 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/0.2259, allocations: 1.481 MB / 463.6 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.2259, allocations: 12 kB / 463.6 MB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2259, allocations: 7.938 kB / 463.6 MB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.2259, allocations: 6.938 kB / 463.7 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003667/0.2296, allocations: 2.724 MB / 466.4 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.2296, allocations: 0 / 466.4 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003335/0.2299, allocations: 174.1 kB / 466.5 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002146/0.2321, allocations: 0.8143 MB / 467.4 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.254e-05/0.2321, allocations: 46.62 kB / 467.4 MB, free: 2.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003769/0.2359, allocations: 7.242 MB / 474.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2359, allocations: 4 kB / 474.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002864/0.2388, allocations: 1.964 MB / 476.6 MB, free: 8.793 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.2389, allocations: 134.1 kB / 476.7 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.239, allocations: 24 kB / 476.8 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003964/0.2394, allocations: 31.94 kB / 476.8 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.2396, allocations: 116.6 kB / 476.9 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.14e-05/0.2397, allocations: 47.95 kB / 477 MB, free: 8.449 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004508/0.2401, allocations: 0.6956 MB / 477.7 MB, free: 7.801 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2401, allocations: 2.844 kB / 477.7 MB, free: 7.801 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001849/0.242, allocations: 0.7876 MB / 478.4 MB, free: 7.012 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008346/0.2428, allocations: 0.7336 MB / 479.2 MB, free: 6.395 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.2446, allocations: 1.744 MB / 480.9 MB, free: 4.699 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2446, allocations: 0 / 480.9 MB, free: 4.699 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008943/0.2455, allocations: 1.048 MB / 482 MB, free: 3.629 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007725/0.2463, allocations: 266.1 kB / 482.2 MB, free: 3.391 MB / 346.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003455/0.2498, allocations: 2.897 MB / 485.1 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.25, allocations: 307 kB / 485.4 MB, free: 232 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005734/0.2505, allocations: 292.4 kB / 485.7 MB, free: 28 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005124/0.2511, allocations: 410 kB / 486.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2511, allocations: 2.656 kB / 486.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of Templates: time 0.03476/0.2858, allocations: 35.28 MB / 0.5092 GB, free: 13.38 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.426474346779287]