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.001314/0.001314, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001335/0.001335, allocations: 192.7 kB / 16.14 MB, free: 6.707 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.356/1.356, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1814/0.1814, allocations: 15.32 MB / 305.3 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.89 kB / 369.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.108, allocations: 53.61 MB / 423.3 MB, free: 14.8 MB / 366.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.3441/0.4522, allocations: 30.06 MB / 453.3 MB, free: 38.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02086/0.473, allocations: 24.88 MB / 478.2 MB, free: 26.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00197/0.4751, allocations: 50.38 kB / 478.2 MB, free: 26.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.4767, allocations: 0.5264 MB / 478.8 MB, free: 26.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005333/0.482, allocations: 1.666 MB / 480.4 MB, free: 25.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008862/0.4909, allocations: 2.994 MB / 483.4 MB, free: 23.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003872/0.4948, allocations: 2.601 MB / 486 MB, free: 22.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001897/0.4967, allocations: 1.518 MB / 487.5 MB, free: 21.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001797/0.4986, allocations: 1.197 MB / 488.7 MB, free: 21.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001674/0.5002, allocations: 1.387 MB / 490.1 MB, free: 20.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003397/0.5006, allocations: 175 kB / 490.3 MB, free: 20.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01041/0.511, allocations: 2.627 MB / 492.9 MB, free: 19.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009036/0.512, allocations: 0.5304 MB / 493.5 MB, free: 19.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001828/0.5138, allocations: 1.19 MB / 494.6 MB, free: 18.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01251/0.5263, allocations: 5.178 MB / 499.8 MB, free: 16.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.5264, allocations: 0 / 499.8 MB, free: 16.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5264, allocations: 0 / 499.8 MB, free: 16.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.305e-05/0.5265, allocations: 5.594 kB / 499.8 MB, free: 16.75 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.006046/0.5325, allocations: 2.971 MB / 0.491 GB, free: 14.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.5326, allocations: 8.594 kB / 0.491 GB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001993/0.5346, allocations: 0.5016 MB / 0.4915 GB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.5365, allocations: 1.238 MB / 0.4927 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.5366, allocations: 229 kB / 0.4929 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002854/0.5369, allocations: 224.8 kB / 0.4932 GB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004034/0.541, allocations: 2.683 MB / 0.4958 GB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.874e-05/0.541, allocations: 0 / 0.4958 GB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000197/0.5412, allocations: 88 kB / 0.4959 GB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.022e-05/0.5413, allocations: 56.66 kB / 0.4959 GB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004403/0.5457, allocations: 3.155 MB / 0.499 GB, free: 7.5 MB / 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.01467/0.5604, allocations: 9.273 MB / 0.508 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00404/0.5645, allocations: 1.833 MB / 0.5098 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/0.5666, allocations: 0.9076 MB / 0.5107 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/0.5834, allocations: 7.45 MB / 0.518 GB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.38e-05/0.5835, allocations: 47.56 kB / 0.518 GB, free: 3.82 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001559/0.5851, allocations: 206.2 kB / 0.5182 GB, free: 3.617 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 8.376e-06/0.5851, allocations: 4 kB / 0.5182 GB, free: 3.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.0521/0.6372, allocations: 9.476 MB / 0.5275 GB, free: 10.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.6373, allocations: 124.2 kB / 0.5276 GB, free: 9.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001823/0.6391, allocations: 1.341 MB / 0.5289 GB, free: 8.512 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002476/0.6394, allocations: 49.7 kB / 0.529 GB, free: 8.457 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007285/0.6401, allocations: 1.057 MB / 0.53 GB, free: 7.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005518/0.6407, allocations: 0.5585 MB / 0.5306 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006915/0.6414, allocations: 468.4 kB / 0.531 GB, free: 6.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.6415, allocations: 309.1 kB / 0.5313 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/0.6429, allocations: 0.8441 MB / 0.5321 GB, free: 5.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002079/0.645, allocations: 1.716 MB / 0.5338 GB, free: 3.082 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003555/0.6486, allocations: 2.697 MB / 0.5364 GB, free: 15.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-05/0.6486, allocations: 8 kB / 0.5364 GB, free: 15.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00874/0.6574, allocations: 3.475 MB / 0.5398 GB, free: 12.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.123e-05/0.6574, allocations: 21.81 kB / 0.5399 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.484e-05/0.6575, allocations: 28 kB / 0.5399 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005475/0.663, allocations: 1.167 MB / 0.541 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001941/0.6649, allocations: 0.5109 MB / 0.5415 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009826/0.6748, allocations: 7.021 MB / 0.5484 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002179/0.677, allocations: 139.7 kB / 0.5485 GB, free: 3.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002938/0.6773, allocations: 140 kB / 0.5486 GB, free: 3.008 MB / 414.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.0009986/0.6783, allocations: 448.9 kB / 0.5491 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004645/0.6788, allocations: 162 kB / 0.5492 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008223/0.687, allocations: 2.84 MB / 0.552 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/0.687, allocations: 19.98 kB / 0.552 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.6871, allocations: 4 kB / 0.552 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.025e-05/0.6871, allocations: 7.969 kB / 0.552 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01176/0.6989, allocations: 4.877 MB / 0.5568 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.6989, allocations: 4 kB / 0.5568 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.7, allocations: 255.9 kB / 0.557 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005028/0.7051, allocations: 1.05 MB / 0.5581 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002513/0.7054, allocations: 63.95 kB / 0.5581 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008146/0.7135, allocations: 6.397 MB / 0.5644 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.7136, allocations: 4.031 kB / 0.5644 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008919/0.7225, allocations: 3.663 MB / 0.568 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005682/0.7231, allocations: 223.1 kB / 0.5682 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002483/0.7233, allocations: 32 kB / 0.5682 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.7244, allocations: 59.88 kB / 0.5683 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003826/0.7248, allocations: 153 kB / 0.5684 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/0.7249, allocations: 71.95 kB / 0.5685 GB, free: 14.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001107/0.726, allocations: 0.8843 MB / 0.5693 GB, free: 13.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7261, allocations: 0 / 0.5693 GB, free: 13.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00377/0.7298, allocations: 1.093 MB / 0.5704 GB, free: 12.06 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.002361/0.7322, allocations: 1.128 MB / 0.5715 GB, free: 10.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005355/0.7376, allocations: 2.764 MB / 0.5742 GB, free: 8.098 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.7376, allocations: 4.25 kB / 0.5742 GB, free: 8.094 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002643/0.7403, allocations: 1.469 MB / 0.5756 GB, free: 6.562 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.742, allocations: 265.5 kB / 0.5759 GB, free: 6.305 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00666/0.7487, allocations: 4.558 MB / 0.5803 GB, free: 1.695 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009867/0.7497, allocations: 1.399 MB / 0.5817 GB, free: 268 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001661/0.7513, allocations: 399 kB / 0.5821 GB, free: 15.87 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005491/0.7519, allocations: 235.3 kB / 0.5823 GB, free: 15.64 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7519, allocations: 0 / 0.5823 GB, free: 15.64 MB / 462.1 MB Notification: Performance of Templates: time 0.2233/0.9752, allocations: 39.67 MB / 0.6211 GB, free: 128.3 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)