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.001562/0.001562, allocations: 103.7 kB / 16.27 MB, free: 5.98 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.001605/0.001605, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.374/1.374, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08323/0.08323, allocations: 15.31 MB / 306.4 MB, free: 15.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 59.97 kB / 371 MB, free: 50.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 53.61 MB / 424.6 MB, free: 14.13 MB / 302.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.03807/0.1494, allocations: 29.64 MB / 454.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02837/0.1778, allocations: 24.89 MB / 479.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.18, allocations: 27.88 kB / 479.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.1819, allocations: 0.6048 MB / 479.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006407/0.1883, allocations: 1.866 MB / 481.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.1988, allocations: 3.409 MB / 485 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004111/0.203, allocations: 2.688 MB / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002457/0.2055, allocations: 1.769 MB / 489.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.2072, allocations: 1.25 MB / 490.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.2091, allocations: 1.417 MB / 492.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004024/0.2095, allocations: 260 kB / 492.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01112/0.2206, allocations: 2.691 MB / 495.1 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.2217, allocations: 0.6037 MB / 495.7 MB, free: 6.906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002143/0.2239, allocations: 1.272 MB / 497 MB, free: 5.629 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01533/0.2392, allocations: 5.473 MB / 0.4907 GB, free: 140 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.2393, allocations: 0 / 0.4907 GB, free: 140 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2393, allocations: 0 / 0.4907 GB, free: 140 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.412e-05/0.2394, allocations: 0 / 0.4907 GB, free: 140 kB / 366.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.006082/0.2455, allocations: 2.971 MB / 0.4936 GB, free: 13.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.2455, allocations: 8.031 kB / 0.4936 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002047/0.2476, allocations: 0.5013 MB / 0.4941 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002136/0.2497, allocations: 1.24 MB / 0.4953 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.2499, allocations: 228 kB / 0.4955 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003403/0.2503, allocations: 219.9 kB / 0.4957 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004098/0.2544, allocations: 2.681 MB / 0.4983 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.2545, allocations: 0 / 0.4983 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.2547, allocations: 88 kB / 0.4984 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.413e-05/0.2547, allocations: 59.98 kB / 0.4985 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00485/0.2596, allocations: 3.16 MB / 0.5015 GB, free: 4.75 MB / 382.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.2149/0.4745, allocations: 9.249 MB / 0.5106 GB, free: 73.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.4769, allocations: 1.849 MB / 0.5124 GB, free: 72.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/0.4782, allocations: 0.9033 MB / 0.5133 GB, free: 72.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009995/0.4882, allocations: 7.45 MB / 0.5205 GB, free: 67.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.4882, allocations: 45 kB / 0.5206 GB, free: 66.98 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000909/0.4892, allocations: 214.9 kB / 0.5208 GB, free: 66.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 4.608e-06/0.4892, allocations: 1.156 kB / 0.5208 GB, free: 66.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03431/0.5235, allocations: 9.477 MB / 0.53 GB, free: 62.85 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.5236, allocations: 123.8 kB / 0.5302 GB, free: 62.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.525, allocations: 1.345 MB / 0.5315 GB, free: 61.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.5252, allocations: 54.3 kB / 0.5315 GB, free: 61.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004306/0.5256, allocations: 1.046 MB / 0.5325 GB, free: 60.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003891/0.526, allocations: 0.5608 MB / 0.5331 GB, free: 60.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005526/0.5266, allocations: 466 kB / 0.5335 GB, free: 60.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.443e-05/0.5266, allocations: 310.8 kB / 0.5338 GB, free: 59.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.5278, allocations: 0.8462 MB / 0.5347 GB, free: 59.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.5292, allocations: 1.706 MB / 0.5363 GB, free: 57.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002721/0.5319, allocations: 2.694 MB / 0.539 GB, free: 55.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.532, allocations: 8.594 kB / 0.539 GB, free: 55.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00757/0.5395, allocations: 3.478 MB / 0.5424 GB, free: 52.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.5396, allocations: 19.94 kB / 0.5424 GB, free: 52.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.798e-05/0.5397, allocations: 31.98 kB / 0.5424 GB, free: 52.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004958/0.5446, allocations: 1.172 MB / 0.5436 GB, free: 51.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001815/0.5465, allocations: 0.5096 MB / 0.5441 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008121/0.5546, allocations: 7.631 MB / 0.5515 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.5567, allocations: 106.4 kB / 0.5516 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.5569, allocations: 145.2 kB / 0.5517 GB, free: 42.82 MB / 382.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.0008226/0.5578, allocations: 448.9 kB / 0.5522 GB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000396/0.5582, allocations: 164.6 kB / 0.5523 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00722/0.5654, allocations: 2.845 MB / 0.5551 GB, free: 39.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/0.5655, allocations: 19.94 kB / 0.5551 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.5655, allocations: 4 kB / 0.5551 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.583e-05/0.5655, allocations: 7.969 kB / 0.5551 GB, free: 39.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.5757, allocations: 4.871 MB / 0.5599 GB, free: 34.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/0.5757, allocations: 4 kB / 0.5599 GB, free: 34.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.5769, allocations: 263.6 kB / 0.5602 GB, free: 34.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004535/0.5814, allocations: 1.028 MB / 0.5612 GB, free: 33.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002968/0.5817, allocations: 71.83 kB / 0.5612 GB, free: 33.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00675/0.5885, allocations: 6.911 MB / 0.568 GB, free: 25.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5885, allocations: 6.688 kB / 0.568 GB, free: 25.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007747/0.5963, allocations: 3.665 MB / 0.5716 GB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005703/0.5969, allocations: 219 kB / 0.5718 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000281/0.5972, allocations: 36 kB / 0.5718 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.5983, allocations: 39.98 kB / 0.5718 GB, free: 21.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/0.5986, allocations: 155.6 kB / 0.572 GB, free: 21.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/0.5988, allocations: 71.95 kB / 0.5721 GB, free: 21.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009069/0.5997, allocations: 0.8764 MB / 0.5729 GB, free: 20.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5997, allocations: 6.562 kB / 0.5729 GB, free: 20.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003575/0.6033, allocations: 1.1 MB / 0.574 GB, free: 19.72 MB / 382.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.002071/0.6054, allocations: 1.114 MB / 0.5751 GB, free: 18.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006249/0.6116, allocations: 2.995 MB / 0.578 GB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/0.6117, allocations: 0 / 0.578 GB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002375/0.6141, allocations: 1.477 MB / 0.5795 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.6159, allocations: 282.5 kB / 0.5797 GB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005843/0.6217, allocations: 3.723 MB / 0.5834 GB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007315/0.6225, allocations: 1.397 MB / 0.5847 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007579/0.6233, allocations: 294 kB / 0.585 GB, free: 8.691 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6233, allocations: 0 / 0.585 GB, free: 8.691 MB / 382.1 MB Notification: Performance of Templates: time 0.08174/0.705, allocations: 71.71 MB / 0.655 GB, free: 1.484 MB / 446.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)