Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.0007383/0.0007383, allocations: 80.45 kB / 19.9 MB, free: 12 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.0007718/0.0007718, allocations: 165.9 kB / 23.18 MB, free: 1.383 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.8415/0.8415, allocations: 177.2 MB / 203.6 MB, free: 5.762 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.07956/0.07956, allocations: 17.38 MB / 277.4 MB, free: 11.87 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.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008444/0.0008444, allocations: 79.88 kB / 412.8 MB, free: 15.85 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2503, allocations: 59.83 MB / 472.7 MB, free: 29.81 MB / 410.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.ElectrochemicalAcetateProduction): time 0.02683/0.2771, allocations: 30 MB / 0.4909 GB, free: 17.06 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01615/0.2933, allocations: 21.99 MB / 0.5124 GB, free: 13.39 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000976/0.2942, allocations: 31.75 kB / 0.5124 GB, free: 13.36 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.2953, allocations: 0.5523 MB / 0.5129 GB, free: 12.94 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002924/0.2982, allocations: 1.842 MB / 0.5147 GB, free: 11.38 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006184/0.3044, allocations: 3.494 MB / 0.5181 GB, free: 8.484 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001908/0.3063, allocations: 2.693 MB / 0.5208 GB, free: 6.059 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.3074, allocations: 1.403 MB / 0.5221 GB, free: 4.949 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.3087, allocations: 1.886 MB / 0.524 GB, free: 3.387 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009676/0.3097, allocations: 1.28 MB / 0.5252 GB, free: 2.102 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002144/0.3099, allocations: 264 kB / 0.5255 GB, free: 1.844 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003649/0.3136, allocations: 2.573 MB / 0.528 GB, free: 15.27 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003315/0.3139, allocations: 0.6037 MB / 0.5286 GB, free: 14.66 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006059/0.3145, allocations: 1.07 MB / 0.5296 GB, free: 13.59 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004379/0.3189, allocations: 5.735 MB / 0.5352 GB, free: 7.828 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3189, allocations: 4 kB / 0.5352 GB, free: 7.824 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3189, allocations: 0 / 0.5352 GB, free: 7.824 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.622e-05/0.3189, allocations: 0 / 0.5352 GB, free: 7.824 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.003329/0.3223, allocations: 2.956 MB / 0.5381 GB, free: 4.816 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3223, allocations: 8.031 kB / 0.5381 GB, free: 4.809 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/0.3235, allocations: 0.5104 MB / 0.5386 GB, free: 4.297 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.3248, allocations: 1.231 MB / 0.5398 GB, free: 3.027 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.325, allocations: 279.4 kB / 0.5401 GB, free: 2.727 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002178/0.3252, allocations: 216 kB / 0.5403 GB, free: 2.516 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002656/0.3278, allocations: 2.737 MB / 0.543 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.3279, allocations: 7.938 kB / 0.543 GB, free: 15.65 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.328, allocations: 84 kB / 0.5431 GB, free: 15.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/0.328, allocations: 56 kB / 0.5431 GB, free: 15.52 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00308/0.3311, allocations: 3.16 MB / 0.5462 GB, free: 12.35 MB / 458.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.007648/0.3388, allocations: 7.751 MB / 0.5538 GB, free: 4.434 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.3403, allocations: 1.455 MB / 0.5552 GB, free: 2.961 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008289/0.3411, allocations: 0.8263 MB / 0.556 GB, free: 2.125 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004945/0.3461, allocations: 4.348 MB / 0.5602 GB, free: 13.75 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.3461, allocations: 47.56 kB / 0.5603 GB, free: 13.69 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004485/0.3465, allocations: 226.7 kB / 0.5605 GB, free: 13.47 MB / 474.7 MB Notification: Performance of pre-optimization done (n=113): time 2.174e-06/0.3465, allocations: 0 / 0.5605 GB, free: 13.47 MB / 474.7 MB Notification: Performance of matching and sorting (n=161): time 0.01748/0.364, allocations: 9.307 MB / 0.5696 GB, free: 4.102 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.3641, allocations: 120.1 kB / 0.5697 GB, free: 3.961 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009251/0.365, allocations: 1.312 MB / 0.571 GB, free: 2.637 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.285e-05/0.3651, allocations: 49.7 kB / 0.571 GB, free: 2.582 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004401/0.3655, allocations: 1.096 MB / 0.5721 GB, free: 1.473 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002977/0.3658, allocations: 0.5888 MB / 0.5727 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004106/0.3662, allocations: 476.7 kB / 0.5731 GB, free: 416 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.814e-05/0.3663, allocations: 305.1 kB / 0.5734 GB, free: 108 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000965/0.3673, allocations: 0.8519 MB / 0.5743 GB, free: 15.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.3686, allocations: 1.72 MB / 0.5759 GB, free: 13.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/0.3709, allocations: 2.701 MB / 0.5786 GB, free: 10.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.3709, allocations: 8 kB / 0.5786 GB, free: 10.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.004715/0.3756, allocations: 3.476 MB / 0.582 GB, free: 6.516 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3756, allocations: 16 kB / 0.582 GB, free: 6.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/0.3756, allocations: 31.98 kB / 0.582 GB, free: 6.469 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/0.3782, allocations: 1.162 MB / 0.5832 GB, free: 5.293 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008862/0.3791, allocations: 0.5109 MB / 0.5837 GB, free: 4.781 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005933/0.385, allocations: 7.189 MB / 0.5907 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000762/0.3858, allocations: 107.9 kB / 0.5908 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.3859, allocations: 147.9 kB / 0.5909 GB, free: 13.01 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * Single equations (assignments): 265 * 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 {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005207/0.3865, allocations: 444.9 kB / 0.5914 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.3866, allocations: 166.9 kB / 0.5915 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00454/0.3912, allocations: 2.82 MB / 0.5943 GB, free: 9.57 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.3912, allocations: 23.94 kB / 0.5943 GB, free: 9.547 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3912, allocations: 4.047 kB / 0.5943 GB, free: 9.543 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.3912, allocations: 15.95 kB / 0.5943 GB, free: 9.527 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005872/0.3971, allocations: 4.356 MB / 0.5986 GB, free: 5.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.3971, allocations: 4 kB / 0.5986 GB, free: 5.086 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005458/0.3976, allocations: 259.9 kB / 0.5988 GB, free: 4.832 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002311/0.4, allocations: 1.03 MB / 0.5998 GB, free: 3.785 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.583e-05/0.4, allocations: 63.95 kB / 0.5999 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004867/0.4049, allocations: 6.492 MB / 0.6062 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4049, allocations: 4.031 kB / 0.6062 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004963/0.4099, allocations: 3.65 MB / 0.6098 GB, free: 9.195 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.41, allocations: 146.9 kB / 0.6099 GB, free: 9.051 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.4101, allocations: 31.94 kB / 0.61 GB, free: 9.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004654/0.4106, allocations: 43.98 kB / 0.61 GB, free: 8.977 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.4108, allocations: 157 kB / 0.6101 GB, free: 8.824 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.152e-05/0.4109, allocations: 71.95 kB / 0.6102 GB, free: 8.754 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006233/0.4115, allocations: 0.8228 MB / 0.611 GB, free: 7.926 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7e-08/0.4115, allocations: 0 / 0.611 GB, free: 7.926 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00209/0.4136, allocations: 1.111 MB / 0.6121 GB, free: 6.812 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * 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,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001238/0.4148, allocations: 1.158 MB / 0.6132 GB, free: 5.641 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003042/0.4179, allocations: 2.579 MB / 0.6158 GB, free: 3.02 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4179, allocations: 0 / 0.6158 GB, free: 3.02 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.4192, allocations: 1.323 MB / 0.617 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008417/0.42, allocations: 274.3 kB / 0.6173 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003675/0.4237, allocations: 3.683 MB / 0.6209 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007668/0.4245, allocations: 0.8189 MB / 0.6217 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007187/0.4252, allocations: 386.3 kB / 0.6221 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.4255, allocations: 228.3 kB / 0.6223 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of SimCode: time 4.21e-07/0.4255, allocations: 4 kB / 0.6223 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.2139/0.6394, allocations: 40.83 MB / 0.6622 GB, free: 130.2 MB / 0.5261 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.0885238400660455] Failed to read output from testmodel.py, exit status != 0: 0.6446960300672799 0.6528980400000001 0.332097825 Calling exit ...