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.001349/0.001349, allocations: 106.9 kB / 16.45 MB, free: 6.453 MB / 14.72 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.002524/0.002524, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 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 1.456/1.456, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] 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.1482/0.1482, allocations: 23.83 MB / 332.7 MB, free: 12.38 MB / 270.1 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.002226/0.002226, allocations: 63.91 kB / 466.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3236, allocations: 59.82 MB / 0.514 GB, free: 9.172 MB / 382.1 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.04503/0.3686, allocations: 30.69 MB / 0.5439 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03485/0.4035, allocations: 25 MB / 0.5683 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002598/0.4061, allocations: 31.81 kB / 0.5684 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.4083, allocations: 0.6141 MB / 0.569 GB, free: 2.734 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006604/0.4149, allocations: 1.874 MB / 0.5708 GB, free: 1.027 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01018/0.4251, allocations: 3.445 MB / 0.5742 GB, free: 13.56 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004636/0.4297, allocations: 2.699 MB / 0.5768 GB, free: 10.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002176/0.4319, allocations: 1.469 MB / 0.5782 GB, free: 9.328 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001936/0.4338, allocations: 1.278 MB / 0.5795 GB, free: 8.047 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.4362, allocations: 1.44 MB / 0.5809 GB, free: 6.602 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004941/0.4367, allocations: 260 kB / 0.5811 GB, free: 6.348 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00998/0.4466, allocations: 2.734 MB / 0.5838 GB, free: 3.609 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009916/0.4476, allocations: 0.6075 MB / 0.5844 GB, free: 3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.4494, allocations: 1.272 MB / 0.5856 GB, free: 1.723 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.4629, allocations: 5.712 MB / 0.5912 GB, free: 11.99 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.463, allocations: 0 / 0.5912 GB, free: 11.99 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.463, allocations: 0 / 0.5912 GB, free: 11.99 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.556e-05/0.463, allocations: 0 / 0.5912 GB, free: 11.99 MB / 446.1 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.006512/0.4695, allocations: 3.035 MB / 0.5942 GB, free: 8.883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.4696, allocations: 12.03 kB / 0.5942 GB, free: 8.871 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002256/0.4718, allocations: 0.5142 MB / 0.5947 GB, free: 8.355 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/0.4743, allocations: 1.295 MB / 0.596 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002247/0.4745, allocations: 224 kB / 0.5962 GB, free: 6.777 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000399/0.4749, allocations: 216 kB / 0.5964 GB, free: 6.566 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005108/0.48, allocations: 2.7 MB / 0.599 GB, free: 3.754 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.48, allocations: 0 / 0.599 GB, free: 3.754 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002677/0.4803, allocations: 92 kB / 0.5991 GB, free: 3.664 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.996e-05/0.4804, allocations: 63.88 kB / 0.5992 GB, free: 3.602 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005989/0.4863, allocations: 3.172 MB / 0.6023 GB, free: 436 kB / 446.1 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.01718/0.5035, allocations: 9.313 MB / 0.6114 GB, free: 6.758 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003267/0.5068, allocations: 1.774 MB / 0.6131 GB, free: 4.891 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/0.5084, allocations: 0.8257 MB / 0.6139 GB, free: 4.051 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01211/0.5205, allocations: 7.501 MB / 0.6212 GB, free: 11.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.5205, allocations: 47.56 kB / 0.6213 GB, free: 11.75 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001078/0.5216, allocations: 242.7 kB / 0.6215 GB, free: 11.51 MB / 478.1 MB Notification: Performance of pre-optimization done (n=113): time 6.402e-06/0.5216, allocations: 3.984 kB / 0.6215 GB, free: 11.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=161): time 0.0402/0.5618, allocations: 9.523 MB / 0.6308 GB, free: 1.871 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.5619, allocations: 120.1 kB / 0.6309 GB, free: 1.727 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002055/0.5639, allocations: 1.349 MB / 0.6322 GB, free: 368 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002027/0.5642, allocations: 53.7 kB / 0.6323 GB, free: 308 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009065/0.5651, allocations: 1.088 MB / 0.6334 GB, free: 15.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007305/0.5658, allocations: 0.585 MB / 0.6339 GB, free: 14.61 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008803/0.5667, allocations: 476.6 kB / 0.6344 GB, free: 14.14 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5668, allocations: 313 kB / 0.6347 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001811/0.5686, allocations: 0.8441 MB / 0.6355 GB, free: 12.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002576/0.5712, allocations: 1.709 MB / 0.6372 GB, free: 10.87 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004453/0.5756, allocations: 2.693 MB / 0.6398 GB, free: 7.777 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.077e-05/0.5757, allocations: 8 kB / 0.6398 GB, free: 7.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009883/0.5856, allocations: 3.473 MB / 0.6432 GB, free: 4.273 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.5856, allocations: 19.94 kB / 0.6432 GB, free: 4.254 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.65e-05/0.5856, allocations: 28 kB / 0.6432 GB, free: 4.227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005876/0.5915, allocations: 1.162 MB / 0.6444 GB, free: 3.051 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002147/0.5937, allocations: 0.5031 MB / 0.6449 GB, free: 2.547 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.6059, allocations: 7.633 MB / 0.6523 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002589/0.6085, allocations: 108.1 kB / 0.6524 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006716/0.6091, allocations: 143.9 kB / 0.6526 GB, free: 10.23 MB / 0.4981 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.001755/0.6109, allocations: 456.9 kB / 0.653 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008015/0.6117, allocations: 162.9 kB / 0.6532 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009674/0.6214, allocations: 2.827 MB / 0.6559 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/0.6214, allocations: 19.94 kB / 0.6559 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.6214, allocations: 8 kB / 0.6559 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-05/0.6214, allocations: 11.97 kB / 0.656 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01799/0.6394, allocations: 4.86 MB / 0.6607 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/0.6395, allocations: 0 / 0.6607 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/0.6414, allocations: 259.7 kB / 0.6609 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00779/0.6492, allocations: 1.037 MB / 0.662 GB, free: 472 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003408/0.6495, allocations: 63.95 kB / 0.662 GB, free: 408 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0144/0.6639, allocations: 6.926 MB / 0.6688 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.6639, allocations: 4.031 kB / 0.6688 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01376/0.6777, allocations: 3.666 MB / 0.6724 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004502/0.6781, allocations: 220 kB / 0.6726 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/0.6784, allocations: 36 kB / 0.6726 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.6795, allocations: 39.98 kB / 0.6727 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003903/0.6799, allocations: 153.2 kB / 0.6728 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/0.68, allocations: 71.95 kB / 0.6729 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001313/0.6814, allocations: 0.8804 MB / 0.6737 GB, free: 3.883 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6814, allocations: 11.94 kB / 0.6737 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00372/0.6851, allocations: 1.114 MB / 0.6748 GB, free: 2.754 MB / 0.5137 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.002548/0.6876, allocations: 1.152 MB / 0.676 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005897/0.6935, allocations: 2.646 MB / 0.6785 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.6935, allocations: 0 / 0.6785 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002942/0.6965, allocations: 1.403 MB / 0.6799 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.6982, allocations: 283.2 kB / 0.6802 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007283/0.7055, allocations: 3.69 MB / 0.6838 GB, free: 9.391 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/0.7066, allocations: 1.399 MB / 0.6851 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001409/0.708, allocations: 387.3 kB / 0.6855 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005832/0.7086, allocations: 239.2 kB / 0.6857 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of SimCode: time 1.573e-06/0.7086, allocations: 0 / 0.6857 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of Templates: time 0.2867/0.9953, allocations: 42.53 MB / 0.7273 GB, free: 175.4 MB / 0.5606 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 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.0462646298110485] Failed to read output from testmodel.py, exit status != 0: 1.0046776160597801 1.015105816 0.549426135 Calling exit ...