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.001395/0.001395, allocations: 107 kB / 16.36 MB, free: 6.336 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.001547/0.001547, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08008/0.08007, allocations: 15.31 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 61.48 kB / 371.7 MB, free: 50.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.1002, allocations: 53.61 MB / 425.4 MB, free: 13.34 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.03498/0.1352, allocations: 29.43 MB / 454.8 MB, free: 16 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02791/0.1631, allocations: 24.89 MB / 479.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001849/0.165, allocations: 27.88 kB / 479.7 MB, free: 7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002044/0.1671, allocations: 0.6009 MB / 480.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005681/0.1728, allocations: 1.866 MB / 482.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009751/0.1825, allocations: 3.413 MB / 485.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004465/0.187, allocations: 2.695 MB / 488.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.1898, allocations: 1.769 MB / 490 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001982/0.1918, allocations: 1.247 MB / 491.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00238/0.1942, allocations: 1.421 MB / 492.7 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007182/0.1949, allocations: 260 kB / 493 MB, free: 9.621 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01137/0.2063, allocations: 2.695 MB / 495.7 MB, free: 6.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001237/0.2076, allocations: 0.5998 MB / 496.3 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002959/0.2106, allocations: 1.272 MB / 497.5 MB, free: 5.043 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01411/0.2247, allocations: 5.497 MB / 0.4912 GB, free: 15.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.2248, allocations: 0 / 0.4912 GB, free: 15.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2248, allocations: 7.938 kB / 0.4912 GB, free: 15.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.2249, allocations: 0 / 0.4912 GB, free: 15.52 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.006644/0.2315, allocations: 2.967 MB / 0.4941 GB, free: 12.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.2316, allocations: 12.03 kB / 0.4942 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002156/0.2338, allocations: 0.5052 MB / 0.4947 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.2361, allocations: 1.275 MB / 0.4959 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/0.2363, allocations: 228 kB / 0.4961 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003439/0.2367, allocations: 219.9 kB / 0.4963 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004335/0.241, allocations: 2.685 MB / 0.4989 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.603e-05/0.2411, allocations: 0 / 0.4989 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.2413, allocations: 88 kB / 0.499 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.2414, allocations: 52 kB / 0.4991 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00483/0.2462, allocations: 3.156 MB / 0.5022 GB, free: 4.102 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.2059/0.4521, allocations: 9.218 MB / 0.5112 GB, free: 72.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002392/0.4545, allocations: 1.837 MB / 0.513 GB, free: 72.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.4557, allocations: 0.9027 MB / 0.5138 GB, free: 71.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/0.4667, allocations: 7.438 MB / 0.5211 GB, free: 66.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.4668, allocations: 48.62 kB / 0.5211 GB, free: 66.21 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00091/0.4677, allocations: 212.1 kB / 0.5214 GB, free: 66.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 4.338e-06/0.4677, allocations: 0 / 0.5214 GB, free: 66.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.03479/0.5025, allocations: 9.484 MB / 0.5306 GB, free: 61.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.5026, allocations: 119.9 kB / 0.5307 GB, free: 61.81 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.504, allocations: 1.344 MB / 0.532 GB, free: 61.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001393/0.5042, allocations: 50.95 kB / 0.5321 GB, free: 60.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004146/0.5046, allocations: 1.057 MB / 0.5331 GB, free: 60.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003115/0.5049, allocations: 0.5554 MB / 0.5337 GB, free: 59.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006006/0.5055, allocations: 471.6 kB / 0.5341 GB, free: 59.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.912e-05/0.5056, allocations: 305.1 kB / 0.5344 GB, free: 59.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.5068, allocations: 0.8435 MB / 0.5352 GB, free: 58.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001512/0.5083, allocations: 1.712 MB / 0.5369 GB, free: 57.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002729/0.511, allocations: 2.688 MB / 0.5395 GB, free: 54.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/0.511, allocations: 7.625 kB / 0.5395 GB, free: 54.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.007701/0.5187, allocations: 3.481 MB / 0.5429 GB, free: 51.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.5188, allocations: 16 kB / 0.5429 GB, free: 51.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.343e-05/0.5188, allocations: 30.66 kB / 0.543 GB, free: 51.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005363/0.5242, allocations: 1.172 MB / 0.5441 GB, free: 50.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/0.526, allocations: 0.5031 MB / 0.5446 GB, free: 49.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008557/0.5346, allocations: 7.629 MB / 0.5521 GB, free: 41.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.5366, allocations: 110.4 kB / 0.5522 GB, free: 41.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002047/0.5368, allocations: 140 kB / 0.5523 GB, free: 41.68 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.0007779/0.5376, allocations: 456.7 kB / 0.5527 GB, free: 41.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003194/0.5379, allocations: 158 kB / 0.5529 GB, free: 41.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007357/0.5453, allocations: 2.838 MB / 0.5557 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.5453, allocations: 23.94 kB / 0.5557 GB, free: 38.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.5454, allocations: 0 / 0.5557 GB, free: 38.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.5454, allocations: 13.47 kB / 0.5557 GB, free: 38.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.5557, allocations: 4.867 MB / 0.5604 GB, free: 33.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.5558, allocations: 0 / 0.5604 GB, free: 33.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.5569, allocations: 259.6 kB / 0.5607 GB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004582/0.5615, allocations: 1.035 MB / 0.5617 GB, free: 32.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001831/0.5617, allocations: 63.89 kB / 0.5618 GB, free: 32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007034/0.5687, allocations: 6.918 MB / 0.5685 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.5687, allocations: 4 kB / 0.5685 GB, free: 24.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007855/0.5766, allocations: 3.669 MB / 0.5721 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004362/0.5771, allocations: 224.1 kB / 0.5723 GB, free: 20.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002213/0.5773, allocations: 32 kB / 0.5724 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.5783, allocations: 45.23 kB / 0.5724 GB, free: 20.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003153/0.5786, allocations: 149 kB / 0.5725 GB, free: 20.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.5788, allocations: 71.95 kB / 0.5726 GB, free: 20.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000888/0.5797, allocations: 0.8868 MB / 0.5735 GB, free: 19.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5797, allocations: 0 / 0.5735 GB, free: 19.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002923/0.5826, allocations: 1.096 MB / 0.5745 GB, free: 18.57 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.001697/0.5843, allocations: 1.123 MB / 0.5756 GB, free: 17.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004501/0.5888, allocations: 2.776 MB / 0.5783 GB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.5889, allocations: 0 / 0.5783 GB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002139/0.591, allocations: 1.47 MB / 0.5798 GB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.5926, allocations: 291.8 kB / 0.5801 GB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005204/0.5978, allocations: 3.624 MB / 0.5836 GB, free: 9.598 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006658/0.5985, allocations: 1.399 MB / 0.585 GB, free: 8.191 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001174/0.5997, allocations: 387.2 kB / 0.5853 GB, free: 7.926 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004638/0.6002, allocations: 236.4 kB / 0.5856 GB, free: 7.703 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6002, allocations: 0 / 0.5856 GB, free: 7.703 MB / 382.1 MB Notification: Performance of Templates: time 0.06198/0.6621, allocations: 41.19 MB / 0.6258 GB, free: 15.11 MB / 430.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)