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.007481/0.007481, allocations: 101.7 kB / 15.73 MB, free: 6.012 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.001536/0.001536, allocations: 195.4 kB / 16.67 MB, free: 5.949 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2637/0.2637, allocations: 15.32 MB / 305.8 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.91 kB / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3067, allocations: 53.6 MB / 478.8 MB, free: 25.75 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.03689/0.3436, allocations: 29.66 MB / 0.4965 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02835/0.372, allocations: 24.87 MB / 0.5208 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002744/0.3748, allocations: 27.88 kB / 0.5209 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.3767, allocations: 0.6087 MB / 0.5214 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006496/0.3832, allocations: 1.866 MB / 0.5233 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009576/0.3928, allocations: 3.406 MB / 0.5266 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00436/0.3972, allocations: 2.715 MB / 0.5292 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002204/0.3994, allocations: 1.758 MB / 0.531 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001619/0.4011, allocations: 1.254 MB / 0.5322 GB, free: 312 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001875/0.4029, allocations: 1.425 MB / 0.5336 GB, free: 14.87 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003559/0.4033, allocations: 260 kB / 0.5338 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008059/0.4114, allocations: 2.687 MB / 0.5365 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000668/0.4121, allocations: 0.5998 MB / 0.537 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001451/0.4135, allocations: 1.276 MB / 0.5383 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/0.4269, allocations: 5.516 MB / 0.5437 GB, free: 4.512 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.427, allocations: 0 / 0.5437 GB, free: 4.512 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.427, allocations: 0 / 0.5437 GB, free: 4.512 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.755e-05/0.427, allocations: 0 / 0.5437 GB, free: 4.512 MB / 414.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.005665/0.4327, allocations: 2.978 MB / 0.5466 GB, free: 1.473 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.4328, allocations: 8.031 kB / 0.5466 GB, free: 1.465 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00194/0.4347, allocations: 0.5012 MB / 0.5471 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/0.4369, allocations: 1.271 MB / 0.5483 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.4371, allocations: 224 kB / 0.5485 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003118/0.4374, allocations: 215.9 kB / 0.5487 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00396/0.4414, allocations: 2.693 MB / 0.5514 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.166e-05/0.4414, allocations: 0 / 0.5514 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.4417, allocations: 88 kB / 0.5514 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-05/0.4417, allocations: 55.94 kB / 0.5515 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004585/0.4463, allocations: 3.156 MB / 0.5546 GB, free: 9.09 MB / 430.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.01355/0.4599, allocations: 9.222 MB / 0.5636 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.4622, allocations: 1.833 MB / 0.5654 GB, free: 13.58 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.4635, allocations: 0.9098 MB / 0.5663 GB, free: 12.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01118/0.4747, allocations: 7.45 MB / 0.5735 GB, free: 4.473 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.4747, allocations: 47.55 kB / 0.5736 GB, free: 4.414 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008237/0.4756, allocations: 210.2 kB / 0.5738 GB, free: 4.207 MB / 446.1 MB Notification: Performance of pre-optimization done (n=113): time 2.886e-06/0.4756, allocations: 0 / 0.5738 GB, free: 4.207 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.03382/0.5094, allocations: 9.484 MB / 0.5831 GB, free: 10.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.5096, allocations: 120.1 kB / 0.5832 GB, free: 10.46 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.5116, allocations: 1.337 MB / 0.5845 GB, free: 9.105 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000222/0.5119, allocations: 57.77 kB / 0.5845 GB, free: 9.043 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009244/0.5128, allocations: 1.057 MB / 0.5856 GB, free: 7.969 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007273/0.5135, allocations: 0.5507 MB / 0.5861 GB, free: 7.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008301/0.5144, allocations: 476.4 kB / 0.5866 GB, free: 6.938 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5145, allocations: 309 kB / 0.5868 GB, free: 6.633 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.516, allocations: 0.8441 MB / 0.5877 GB, free: 5.785 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/0.5182, allocations: 1.712 MB / 0.5893 GB, free: 3.668 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004175/0.5224, allocations: 2.686 MB / 0.592 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.5225, allocations: 8 kB / 0.592 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009394/0.5319, allocations: 3.483 MB / 0.5954 GB, free: 13.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.325e-05/0.5319, allocations: 23.94 kB / 0.5954 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.991e-05/0.532, allocations: 28 kB / 0.5954 GB, free: 13.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005347/0.5374, allocations: 1.162 MB / 0.5966 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/0.5394, allocations: 0.507 MB / 0.5971 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009628/0.549, allocations: 7.601 MB / 0.6045 GB, free: 3.281 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001972/0.551, allocations: 107.9 kB / 0.6046 GB, free: 3.176 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/0.5512, allocations: 143.9 kB / 0.6047 GB, free: 3.035 MB / 478.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.0008841/0.5521, allocations: 460.8 kB / 0.6052 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003671/0.5525, allocations: 161.9 kB / 0.6053 GB, free: 2.414 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.359/0.9115, allocations: 2.836 MB / 0.6081 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.637e-05/0.9116, allocations: 15.12 kB / 0.6081 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.9116, allocations: 3.5 kB / 0.6081 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.001e-05/0.9117, allocations: 9.172 kB / 0.6081 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01381/0.9255, allocations: 4.868 MB / 0.6129 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/0.9256, allocations: 3.766 kB / 0.6129 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.9268, allocations: 252.1 kB / 0.6131 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005132/0.932, allocations: 1.044 MB / 0.6141 GB, free: 114 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002412/0.9322, allocations: 60.53 kB / 0.6142 GB, free: 114 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007928/0.9402, allocations: 6.927 MB / 0.6209 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.9402, allocations: 3.469 kB / 0.621 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008422/0.9486, allocations: 3.672 MB / 0.6245 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005634/0.9492, allocations: 215.7 kB / 0.6247 GB, free: 106.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/0.9494, allocations: 35.12 kB / 0.6248 GB, free: 106.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009636/0.9504, allocations: 44.48 kB / 0.6248 GB, free: 106.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/0.9508, allocations: 153 kB / 0.625 GB, free: 106.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.951, allocations: 72.55 kB / 0.625 GB, free: 106.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001132/0.9521, allocations: 0.878 MB / 0.6259 GB, free: 106.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9521, allocations: 2.656 kB / 0.6259 GB, free: 106.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004407/0.9565, allocations: 1.096 MB / 0.627 GB, free: 106 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.002627/0.9592, allocations: 1.128 MB / 0.6281 GB, free: 105.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005808/0.965, allocations: 2.783 MB / 0.6308 GB, free: 104.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/0.965, allocations: 1.188 kB / 0.6308 GB, free: 104.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002841/0.9679, allocations: 1.465 MB / 0.6322 GB, free: 103.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/0.9699, allocations: 283.4 kB / 0.6325 GB, free: 103.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006979/0.9769, allocations: 3.632 MB / 0.636 GB, free: 101.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001074/0.978, allocations: 1.396 MB / 0.6374 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001645/0.9797, allocations: 384.6 kB / 0.6378 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006037/0.9803, allocations: 237.6 kB / 0.638 GB, free: 100.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9803, allocations: 1.438 kB / 0.638 GB, free: 100.9 MB / 478.1 MB Notification: Performance of Templates: time 0.06311/1.043, allocations: 42.35 MB / 0.6794 GB, free: 66.23 MB / 478.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)