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.008685/0.008685, allocations: 105.5 kB / 15.74 MB, free: 6.02 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.001801/0.001802, allocations: 193.2 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1052/0.1052, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 67.83 kB / 425.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1293, allocations: 53.6 MB / 478.8 MB, free: 5.766 MB / 350.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.04706/0.1764, allocations: 29.74 MB / 0.4966 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3324/0.5087, allocations: 24.87 MB / 0.5209 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002183/0.511, allocations: 25.69 kB / 0.5209 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.5129, allocations: 0.6086 MB / 0.5215 GB, free: 15.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006396/0.5193, allocations: 1.858 MB / 0.5233 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01148/0.5308, allocations: 3.42 MB / 0.5267 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004319/0.5351, allocations: 2.705 MB / 0.5293 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002806/0.5379, allocations: 1.758 MB / 0.531 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.5401, allocations: 1.246 MB / 0.5322 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002145/0.5422, allocations: 1.422 MB / 0.5336 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000479/0.5427, allocations: 265.1 kB / 0.5339 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01254/0.5553, allocations: 2.7 MB / 0.5365 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008021/0.5561, allocations: 0.6019 MB / 0.5371 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001848/0.558, allocations: 1.27 MB / 0.5384 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0154/0.5734, allocations: 5.543 MB / 0.5438 GB, free: 3.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.5734, allocations: 0 / 0.5438 GB, free: 3.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5735, allocations: 0 / 0.5438 GB, free: 3.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.56e-05/0.5735, allocations: 1.531 kB / 0.5438 GB, free: 3.414 MB / 382.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.005283/0.5788, allocations: 3.045 MB / 0.5467 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.5789, allocations: 8.031 kB / 0.5468 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.5808, allocations: 0.5245 MB / 0.5473 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.5832, allocations: 1.273 MB / 0.5485 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/0.5834, allocations: 223.1 kB / 0.5487 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003688/0.5838, allocations: 219.9 kB / 0.5489 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004609/0.5884, allocations: 2.686 MB / 0.5516 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.216e-05/0.5885, allocations: 3.938 kB / 0.5516 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002029/0.5887, allocations: 92 kB / 0.5516 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.865e-05/0.5887, allocations: 52 kB / 0.5517 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005274/0.594, allocations: 3.152 MB / 0.5548 GB, free: 8.469 MB / 398.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.01502/0.609, allocations: 9.249 MB / 0.5638 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002797/0.6118, allocations: 1.841 MB / 0.5656 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.6132, allocations: 0.896 MB / 0.5665 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/0.6244, allocations: 7.459 MB / 0.5738 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.6245, allocations: 46.22 kB / 0.5738 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009213/0.6254, allocations: 206.7 kB / 0.574 GB, free: 3.641 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 3.347e-06/0.6254, allocations: 4 kB / 0.574 GB, free: 3.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.03536/0.6608, allocations: 9.551 MB / 0.5833 GB, free: 10.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.558e-05/0.6609, allocations: 128 kB / 0.5835 GB, free: 9.945 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.6627, allocations: 1.337 MB / 0.5848 GB, free: 8.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.6629, allocations: 57.7 kB / 0.5848 GB, free: 8.527 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007382/0.6636, allocations: 1.077 MB / 0.5859 GB, free: 7.438 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005427/0.6641, allocations: 0.5953 MB / 0.5864 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006945/0.6649, allocations: 472.6 kB / 0.5869 GB, free: 6.371 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.665, allocations: 305.1 kB / 0.5872 GB, free: 6.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.6664, allocations: 0.848 MB / 0.588 GB, free: 5.219 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002142/0.6685, allocations: 1.712 MB / 0.5897 GB, free: 3.125 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003547/0.6721, allocations: 2.693 MB / 0.5923 GB, free: 100 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.6721, allocations: 10.66 kB / 0.5923 GB, free: 92 kB / 430.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.008668/0.6808, allocations: 3.477 MB / 0.5957 GB, free: 12.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.6809, allocations: 19.94 kB / 0.5957 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.564e-05/0.6809, allocations: 32.88 kB / 0.5958 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005212/0.6861, allocations: 1.161 MB / 0.5969 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.688, allocations: 0.5096 MB / 0.5974 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.6989, allocations: 7.636 MB / 0.6049 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002681/0.7016, allocations: 106.5 kB / 0.605 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003378/0.702, allocations: 140 kB / 0.6051 GB, free: 2.625 MB / 446.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.0009781/0.7029, allocations: 451.7 kB / 0.6055 GB, free: 2.176 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000428/0.7034, allocations: 174.8 kB / 0.6057 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00766/0.711, allocations: 2.846 MB / 0.6085 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.7111, allocations: 16 kB / 0.6085 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.7111, allocations: 6.656 kB / 0.6085 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.376e-05/0.7111, allocations: 7.969 kB / 0.6085 GB, free: 15.19 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.7223, allocations: 4.878 MB / 0.6133 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.7224, allocations: 4 kB / 0.6133 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.7234, allocations: 254.3 kB / 0.6135 GB, free: 9.973 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004601/0.728, allocations: 1.033 MB / 0.6145 GB, free: 8.941 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000241/0.7283, allocations: 63.95 kB / 0.6146 GB, free: 8.879 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008512/0.7368, allocations: 6.929 MB / 0.6214 GB, free: 1.531 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.7369, allocations: 0 / 0.6214 GB, free: 1.531 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008622/0.7455, allocations: 3.678 MB / 0.6249 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000586/0.7461, allocations: 226.6 kB / 0.6252 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002486/0.7464, allocations: 32 kB / 0.6252 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009728/0.7474, allocations: 39.98 kB / 0.6252 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003777/0.7477, allocations: 155.6 kB / 0.6254 GB, free: 13.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001672/0.7479, allocations: 75.95 kB / 0.6254 GB, free: 13.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001245/0.7492, allocations: 0.8764 MB / 0.6263 GB, free: 12.39 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7492, allocations: 0 / 0.6263 GB, free: 12.39 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004007/0.7532, allocations: 1.111 MB / 0.6274 GB, free: 11.28 MB / 478.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.002428/0.7556, allocations: 1.141 MB / 0.6285 GB, free: 10.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005401/0.761, allocations: 2.788 MB / 0.6312 GB, free: 7.367 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.7611, allocations: 0 / 0.6312 GB, free: 7.367 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.7637, allocations: 1.464 MB / 0.6327 GB, free: 5.844 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/0.7654, allocations: 290 kB / 0.6329 GB, free: 5.586 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006585/0.772, allocations: 3.679 MB / 0.6365 GB, free: 1.848 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.7731, allocations: 1.403 MB / 0.6379 GB, free: 424 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001423/0.7746, allocations: 391.7 kB / 0.6383 GB, free: 60 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005427/0.7751, allocations: 238 kB / 0.6385 GB, free: 15.83 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/0.7751, allocations: 3.938 kB / 0.6385 GB, free: 15.82 MB / 494.1 MB Notification: Performance of Templates: time 0.06614/0.8413, allocations: 41.65 MB / 0.6792 GB, free: 6.473 MB / 0.5137 GB 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)