Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 110.5 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 186.8 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 225.6 MB / 249.4 MB, free: 3.305 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0956/0.0956, allocations: 15.54 MB / 320 MB, free: 13.12 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 68.41 kB / 448.2 MB, free: 48.3 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1204, allocations: 56.55 MB / 0.493 GB, free: 19.76 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.ClimateChange.ElectrochemicalAcetateProduction): time 0.04391/0.1643, allocations: 30.64 MB / 0.5229 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03628/0.2006, allocations: 25.01 MB / 0.5473 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.2032, allocations: 23.88 kB / 0.5473 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002171/0.2053, allocations: 0.6009 MB / 0.5479 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008814/0.2142, allocations: 1.885 MB / 0.5497 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01221/0.2264, allocations: 3.445 MB / 0.5531 GB, free: 7.992 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005778/0.2321, allocations: 2.707 MB / 0.5558 GB, free: 5.273 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002802/0.2349, allocations: 1.422 MB / 0.5571 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.2374, allocations: 1.251 MB / 0.5584 GB, free: 2.551 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002698/0.2401, allocations: 1.452 MB / 0.5598 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006062/0.2407, allocations: 264 kB / 0.56 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01185/0.2525, allocations: 2.722 MB / 0.5627 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001574/0.2541, allocations: 0.6036 MB / 0.5633 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002184/0.2563, allocations: 1.272 MB / 0.5645 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01602/0.2723, allocations: 5.545 MB / 0.5699 GB, free: 6.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.2723, allocations: 0 / 0.5699 GB, free: 6.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2723, allocations: 0 / 0.5699 GB, free: 6.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.893e-05/0.2724, allocations: 0 / 0.5699 GB, free: 6.66 MB / 430.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.006971/0.2794, allocations: 3.039 MB / 0.5729 GB, free: 3.551 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.2794, allocations: 8.031 kB / 0.5729 GB, free: 3.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002162/0.2816, allocations: 0.518 MB / 0.5734 GB, free: 3.023 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002494/0.2841, allocations: 1.287 MB / 0.5747 GB, free: 1.688 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002375/0.2843, allocations: 224 kB / 0.5749 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003863/0.2847, allocations: 220 kB / 0.5751 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004942/0.2896, allocations: 2.699 MB / 0.5777 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.569e-05/0.2897, allocations: 7.938 kB / 0.5777 GB, free: 14.42 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000224/0.2899, allocations: 88 kB / 0.5778 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.592e-05/0.29, allocations: 52 kB / 0.5779 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005366/0.2953, allocations: 3.168 MB / 0.581 GB, free: 11.11 MB / 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.01702/0.3123, allocations: 9.305 MB / 0.5901 GB, free: 1.453 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002858/0.3152, allocations: 1.755 MB / 0.5918 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.3166, allocations: 0.8257 MB / 0.5926 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01263/0.3292, allocations: 7.493 MB / 0.5999 GB, free: 6.531 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.802e-05/0.3293, allocations: 47.56 kB / 0.5999 GB, free: 6.477 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001305/0.3306, allocations: 230.7 kB / 0.6002 GB, free: 6.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=113): time 5.14e-06/0.3306, allocations: 0 / 0.6002 GB, free: 6.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.3689/0.6995, allocations: 9.546 MB / 0.6095 GB, free: 96.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.831e-05/0.6996, allocations: 120.2 kB / 0.6096 GB, free: 96.17 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/0.7027, allocations: 1.343 MB / 0.6109 GB, free: 95.99 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004327/0.7031, allocations: 53.61 kB / 0.611 GB, free: 95.96 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.7042, allocations: 1.084 MB / 0.612 GB, free: 95.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008923/0.7051, allocations: 0.5873 MB / 0.6126 GB, free: 95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009926/0.7061, allocations: 478.5 kB / 0.613 GB, free: 94.78 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/0.7062, allocations: 306.3 kB / 0.6133 GB, free: 94.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00189/0.7081, allocations: 0.8456 MB / 0.6142 GB, free: 94.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/0.7104, allocations: 1.711 MB / 0.6158 GB, free: 92.74 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004377/0.7148, allocations: 2.693 MB / 0.6185 GB, free: 90.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.463e-05/0.7148, allocations: 8.812 kB / 0.6185 GB, free: 90.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008843/0.7237, allocations: 3.476 MB / 0.6219 GB, free: 89.46 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.478e-05/0.7237, allocations: 17.75 kB / 0.6219 GB, free: 89.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.608e-05/0.7238, allocations: 27.41 kB / 0.6219 GB, free: 89.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0052/0.729, allocations: 1.165 MB / 0.6231 GB, free: 89.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/0.731, allocations: 0.5129 MB / 0.6236 GB, free: 89.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008631/0.7396, allocations: 7.613 MB / 0.631 GB, free: 83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/0.742, allocations: 105.4 kB / 0.6311 GB, free: 82.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002883/0.7423, allocations: 149.8 kB / 0.6312 GB, free: 82.92 MB / 462.1 MB 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.0009443/0.7433, allocations: 449.7 kB / 0.6317 GB, free: 82.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004097/0.7437, allocations: 166 kB / 0.6318 GB, free: 82.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007347/0.751, allocations: 2.838 MB / 0.6346 GB, free: 81.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/0.751, allocations: 19.44 kB / 0.6346 GB, free: 81.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.751, allocations: 3.25 kB / 0.6346 GB, free: 81.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-05/0.7511, allocations: 13.03 kB / 0.6346 GB, free: 81.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009911/0.761, allocations: 4.853 MB / 0.6394 GB, free: 78.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.904e-06/0.761, allocations: 3.031 kB / 0.6394 GB, free: 78.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.762, allocations: 261.7 kB / 0.6396 GB, free: 78.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004395/0.7664, allocations: 1.035 MB / 0.6406 GB, free: 77.68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001894/0.7666, allocations: 60.56 kB / 0.6407 GB, free: 77.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006484/0.7731, allocations: 6.925 MB / 0.6474 GB, free: 70.29 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7731, allocations: 4 kB / 0.6474 GB, free: 70.29 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00739/0.7804, allocations: 3.662 MB / 0.651 GB, free: 66.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.781, allocations: 220 kB / 0.6512 GB, free: 66.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.7812, allocations: 42.58 kB / 0.6513 GB, free: 66.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009623/0.7821, allocations: 40 kB / 0.6513 GB, free: 66.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/0.7825, allocations: 151.7 kB / 0.6515 GB, free: 66.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.7826, allocations: 71.95 kB / 0.6515 GB, free: 66.05 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008984/0.7835, allocations: 0.8764 MB / 0.6524 GB, free: 65.17 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7835, allocations: 0 / 0.6524 GB, free: 65.17 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003503/0.787, allocations: 1.114 MB / 0.6535 GB, free: 64.16 MB / 462.1 MB 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.001842/0.7889, allocations: 1.15 MB / 0.6546 GB, free: 63.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004427/0.7933, allocations: 2.645 MB / 0.6572 GB, free: 60.53 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.7933, allocations: 4 kB / 0.6572 GB, free: 60.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002002/0.7953, allocations: 1.389 MB / 0.6585 GB, free: 59.08 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.7969, allocations: 277.5 kB / 0.6588 GB, free: 58.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005726/0.8026, allocations: 3.697 MB / 0.6624 GB, free: 55.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000713/0.8033, allocations: 1.405 MB / 0.6638 GB, free: 53.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001323/0.8047, allocations: 389.2 kB / 0.6642 GB, free: 53.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004406/0.8051, allocations: 237.1 kB / 0.6644 GB, free: 53.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8051, allocations: 3.938 kB / 0.6644 GB, free: 53.29 MB / 462.1 MB Notification: Performance of Templates: time 0.05286/0.858, allocations: 42.87 MB / 0.7063 GB, free: 11.25 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.267885128036141]