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.001097/0.001098, allocations: 99.27 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001543, allocations: 186.6 kB / 16.92 MB, free: 6.75 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.381/1.381, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1826/0.1826, allocations: 15.28 MB / 307.4 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003041, allocations: 12 kB / 372.7 MB, free: 3.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2852, allocations: 54.63 MB / 427.4 MB, free: 40.4 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.02933/0.3145, allocations: 30.17 MB / 457.6 MB, free: 28.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0226/0.3372, allocations: 24.6 MB / 482.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.339, allocations: 51.62 kB / 482.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.3406, allocations: 0.5301 MB / 482.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005454/0.3461, allocations: 1.667 MB / 484.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00842/0.3545, allocations: 2.988 MB / 487.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003293/0.3578, allocations: 2.605 MB / 490 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.3596, allocations: 1.434 MB / 491.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.361, allocations: 1.125 MB / 492.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001716/0.3628, allocations: 1.288 MB / 493.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003556/0.3631, allocations: 136 kB / 494 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008462/0.3716, allocations: 2.596 MB / 496.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009357/0.3726, allocations: 481.5 kB / 497 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.3742, allocations: 1.155 MB / 498.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007021/0.3812, allocations: 4.031 MB / 0.4905 GB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3813, allocations: 4 kB / 0.4905 GB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3813, allocations: 0 / 0.4905 GB, free: 10.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.966e-05/0.3814, allocations: 0 / 0.4905 GB, free: 10.41 MB / 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.005666/0.387, allocations: 2.485 MB / 0.4929 GB, free: 8.133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3871, allocations: 8.031 kB / 0.4929 GB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00222/0.3893, allocations: 0.5063 MB / 0.4934 GB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.3917, allocations: 1.219 MB / 0.4946 GB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.3919, allocations: 229 kB / 0.4948 GB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004676/0.3924, allocations: 220.5 kB / 0.495 GB, free: 6.199 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004935/0.3973, allocations: 2.682 MB / 0.4976 GB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.748e-05/0.3974, allocations: 4 kB / 0.4976 GB, free: 3.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.3976, allocations: 84 kB / 0.4977 GB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.976e-05/0.3977, allocations: 56 kB / 0.4978 GB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005108/0.4028, allocations: 3.168 MB / 0.5009 GB, free: 260 kB / 366.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.01457/0.4174, allocations: 9.209 MB / 0.5098 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002618/0.42, allocations: 1.837 MB / 0.5116 GB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.4215, allocations: 0.9038 MB / 0.5125 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01055/0.432, allocations: 7.321 MB / 0.5197 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.4321, allocations: 51.55 kB / 0.5197 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000967/0.4331, allocations: 202.2 kB / 0.5199 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=113): time 4.187e-06/0.4331, allocations: 0 / 0.5199 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=161): time 0.03822/0.4713, allocations: 9.558 MB / 0.5293 GB, free: 1.844 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.4714, allocations: 124.1 kB / 0.5294 GB, free: 1.695 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.4732, allocations: 1.341 MB / 0.5307 GB, free: 344 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002759/0.4735, allocations: 53.7 kB / 0.5307 GB, free: 284 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007211/0.4742, allocations: 1.049 MB / 0.5318 GB, free: 15.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005769/0.4748, allocations: 0.5624 MB / 0.5323 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/0.4751, allocations: 186.5 kB / 0.5325 GB, free: 14.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.401e-05/0.4752, allocations: 313.1 kB / 0.5328 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.4766, allocations: 0.8441 MB / 0.5336 GB, free: 13.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001969/0.4786, allocations: 1.709 MB / 0.5353 GB, free: 11.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003746/0.4824, allocations: 2.697 MB / 0.5379 GB, free: 8.094 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.015e-05/0.4824, allocations: 8 kB / 0.5379 GB, free: 8.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009182/0.4916, allocations: 3.483 MB / 0.5413 GB, free: 4.578 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/0.4917, allocations: 23.94 kB / 0.5413 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-05/0.4917, allocations: 28 kB / 0.5414 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005933/0.4977, allocations: 1.183 MB / 0.5425 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/0.4998, allocations: 0.5031 MB / 0.543 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/0.5101, allocations: 7.066 MB / 0.5499 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00215/0.5123, allocations: 135.7 kB / 0.55 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003296/0.5127, allocations: 140 kB / 0.5502 GB, free: 11.05 MB / 430.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.0009591/0.5136, allocations: 448.9 kB / 0.5506 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003658/0.514, allocations: 165.9 kB / 0.5508 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008548/0.5226, allocations: 2.856 MB / 0.5536 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.153e-05/0.5226, allocations: 16 kB / 0.5536 GB, free: 7.539 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.5226, allocations: 8 kB / 0.5536 GB, free: 7.531 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.999e-05/0.5227, allocations: 7.969 kB / 0.5536 GB, free: 7.523 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/0.5344, allocations: 4.862 MB / 0.5583 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/0.5345, allocations: 4 kB / 0.5583 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.5357, allocations: 255.7 kB / 0.5586 GB, free: 2.301 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005339/0.5411, allocations: 1.055 MB / 0.5596 GB, free: 1.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/0.5414, allocations: 63.95 kB / 0.5597 GB, free: 1.168 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008387/0.5498, allocations: 6.42 MB / 0.5659 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5498, allocations: 288 / 0.5659 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009317/0.5591, allocations: 3.682 MB / 0.5695 GB, free: 6.586 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005337/0.5597, allocations: 231.1 kB / 0.5698 GB, free: 6.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003553/0.5601, allocations: 39.94 kB / 0.5698 GB, free: 6.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.5613, allocations: 63.81 kB / 0.5699 GB, free: 6.238 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/0.5617, allocations: 153 kB / 0.57 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/0.5618, allocations: 75.95 kB / 0.5701 GB, free: 6.016 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001204/0.5631, allocations: 0.8764 MB / 0.5709 GB, free: 5.137 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5631, allocations: 0 / 0.5709 GB, free: 5.137 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004151/0.5672, allocations: 1.093 MB / 0.572 GB, free: 4.043 MB / 446.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.002601/0.5699, allocations: 1.13 MB / 0.5731 GB, free: 2.902 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00626/0.5761, allocations: 2.764 MB / 0.5758 GB, free: 84 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/0.5762, allocations: 4 kB / 0.5758 GB, free: 80 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002976/0.5792, allocations: 1.473 MB / 0.5772 GB, free: 14.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.5815, allocations: 259.3 kB / 0.5775 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007671/0.5892, allocations: 4.726 MB / 0.5821 GB, free: 9.504 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.5903, allocations: 1.395 MB / 0.5835 GB, free: 8.074 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009517/0.5913, allocations: 295.4 kB / 0.5837 GB, free: 7.785 MB / 462.1 MB Notification: Performance of SimCode: time 3.326e-06/0.5913, allocations: 0 / 0.5837 GB, free: 7.785 MB / 462.1 MB Notification: Performance of Templates: time 0.2414/0.8327, allocations: 71.6 MB / 0.6537 GB, free: 100.2 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)