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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") translateModel(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009743/0.0009744, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1864/0.1864, allocations: 15.27 MB / 306.4 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003209, allocations: 12 kB / 371.5 MB, free: 3.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2713, allocations: 54.62 MB / 426.1 MB, free: 39.85 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.008596/0.28, allocations: 10.31 MB / 436.4 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01896/0.299, allocations: 22.95 MB / 459.4 MB, free: 18.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002119/0.3011, allocations: 41.28 kB / 459.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00182/0.303, allocations: 0.5402 MB / 459.9 MB, free: 18.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004675/0.3076, allocations: 1.759 MB / 461.7 MB, free: 17.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006644/0.3143, allocations: 2.758 MB / 464.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002711/0.317, allocations: 2.488 MB / 467 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.3188, allocations: 1.368 MB / 468.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001569/0.3204, allocations: 1.005 MB / 469.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001895/0.3223, allocations: 1.25 MB / 470.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005507/0.3229, allocations: 136.8 kB / 470.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007259/0.3302, allocations: 2.502 MB / 473.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006992/0.3309, allocations: 468.8 kB / 473.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009202/0.3318, allocations: 437.2 kB / 474.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005915/0.3377, allocations: 4.155 MB / 478.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3378, allocations: 5.844 kB / 478.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3378, allocations: 0 / 478.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000134/0.3379, allocations: 3.938 kB / 478.3 MB, free: 10.78 MB / 350.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.006701/0.3446, allocations: 2.503 MB / 480.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3447, allocations: 9.625 kB / 480.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002507/0.3472, allocations: 0.4987 MB / 481.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.3498, allocations: 1.197 MB / 482.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.35, allocations: 221.1 kB / 482.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006695/0.3507, allocations: 218.5 kB / 482.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006813/0.3575, allocations: 2.666 MB / 485.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.253e-05/0.3576, allocations: 1.125 kB / 485.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003635/0.358, allocations: 86.81 kB / 485.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.053e-05/0.358, allocations: 57.28 kB / 485.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005525/0.3636, allocations: 3.148 MB / 488.9 MB, free: 6.051 MB / 350.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.0125/0.3761, allocations: 9.204 MB / 498.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002326/0.3784, allocations: 1.837 MB / 499.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.3797, allocations: 0.8982 MB / 0.4891 GB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009626/0.3893, allocations: 7.317 MB / 0.4962 GB, free: 2.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.3894, allocations: 55.45 kB / 0.4963 GB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001016/0.3904, allocations: 206.2 kB / 0.4965 GB, free: 2.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=113): time 3.426e-06/0.3904, allocations: 0 / 0.4965 GB, free: 2.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.03393/0.4244, allocations: 9.566 MB / 0.5058 GB, free: 8.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.4245, allocations: 120.1 kB / 0.5059 GB, free: 8.496 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.4261, allocations: 1.333 MB / 0.5072 GB, free: 7.145 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002299/0.4264, allocations: 49.7 kB / 0.5073 GB, free: 7.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006708/0.427, allocations: 1.05 MB / 0.5083 GB, free: 6.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005292/0.4276, allocations: 0.5663 MB / 0.5088 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.4277, allocations: 48 kB / 0.5089 GB, free: 5.398 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4279, allocations: 394.8 kB / 0.5093 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.4293, allocations: 0.8363 MB / 0.5101 GB, free: 4.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001959/0.4313, allocations: 1.701 MB / 0.5117 GB, free: 2.066 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00183/0.4331, allocations: 1.087 MB / 0.5128 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.559e-05/0.4332, allocations: 8 kB / 0.5128 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008232/0.4414, allocations: 3.468 MB / 0.5162 GB, free: 13.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.442e-05/0.4415, allocations: 24 kB / 0.5162 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.005e-05/0.4415, allocations: 28 kB / 0.5162 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005299/0.4468, allocations: 1.186 MB / 0.5174 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002027/0.4489, allocations: 0.507 MB / 0.5179 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009476/0.4584, allocations: 7.031 MB / 0.5248 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/0.4605, allocations: 135.6 kB / 0.5249 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/0.4609, allocations: 144 kB / 0.525 GB, free: 3.973 MB / 398.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {1 20,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009004/0.4618, allocations: 448.9 kB / 0.5255 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003197/0.4621, allocations: 162.2 kB / 0.5256 GB, free: 3.363 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009584/0.4717, allocations: 2.863 MB / 0.5284 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.293e-05/0.4717, allocations: 16 kB / 0.5284 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.4718, allocations: 4 kB / 0.5284 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.012e-05/0.4718, allocations: 11.97 kB / 0.5284 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.483, allocations: 4.846 MB / 0.5332 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-05/0.483, allocations: 7.984 kB / 0.5332 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.4841, allocations: 255.7 kB / 0.5334 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004668/0.4888, allocations: 1.059 MB / 0.5345 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/0.489, allocations: 59.95 kB / 0.5345 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007806/0.4968, allocations: 6.415 MB / 0.5408 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.4969, allocations: 8 kB / 0.5408 GB, free: 3.277 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008251/0.5051, allocations: 3.663 MB / 0.5444 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005279/0.5057, allocations: 223 kB / 0.5446 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.506, allocations: 39.95 kB / 0.5446 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009973/0.507, allocations: 71.8 kB / 0.5447 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/0.5073, allocations: 141.1 kB / 0.5448 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/0.5074, allocations: 75.95 kB / 0.5449 GB, free: 15 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001137/0.5086, allocations: 0.8686 MB / 0.5457 GB, free: 14.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5086, allocations: 0 / 0.5457 GB, free: 14.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003638/0.5122, allocations: 1.105 MB / 0.5468 GB, free: 13.02 MB / 430.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 21,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002165/0.5144, allocations: 1.115 MB / 0.5479 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004877/0.5193, allocations: 2.763 MB / 0.5506 GB, free: 9.086 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5193, allocations: 0 / 0.5506 GB, free: 9.086 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002465/0.5218, allocations: 1.458 MB / 0.552 GB, free: 7.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.5236, allocations: 282.4 kB / 0.5523 GB, free: 7.297 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008514/0.5322, allocations: 4.476 MB / 0.5567 GB, free: 2.762 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001519/0.5337, allocations: 1.399 MB / 0.558 GB, free: 1.332 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002935/0.5367, allocations: 396 kB / 0.5584 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008315/0.5375, allocations: 235.4 kB / 0.5586 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5375, allocations: 0 / 0.5586 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of Templates: time 0.2623/0.7999, allocations: 38.38 MB / 0.5961 GB, free: 135.8 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.makefile (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)