Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008651/0.0008652, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1669/0.1669, allocations: 15.27 MB / 306.4 MB, free: 15.78 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002776/0.0002777, allocations: 12 kB / 371.5 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2535, allocations: 54.63 MB / 426.1 MB, free: 40.01 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.MethanElectrosynthesis): time 0.007202/0.2607, allocations: 9.696 MB / 435.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.2765, allocations: 20.34 MB / 456.1 MB, free: 21.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001433/0.278, allocations: 45.44 kB / 456.2 MB, free: 21.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.2794, allocations: 0.5127 MB / 456.7 MB, free: 21.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003654/0.283, allocations: 1.34 MB / 458 MB, free: 20.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006756/0.2898, allocations: 2.658 MB / 460.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002941/0.2928, allocations: 2.209 MB / 462.9 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00199/0.2948, allocations: 1.213 MB / 464.1 MB, free: 17.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.2962, allocations: 0.8431 MB / 465 MB, free: 16.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001716/0.298, allocations: 1.048 MB / 466 MB, free: 16.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005462/0.2985, allocations: 125.9 kB / 466.1 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006893/0.3054, allocations: 2.173 MB / 468.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006585/0.3061, allocations: 415.9 kB / 468.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008396/0.307, allocations: 397 kB / 469.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005607/0.3126, allocations: 3.659 MB / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3126, allocations: 0 / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3126, allocations: 1.031 kB / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001102/0.3128, allocations: 0 / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.005643/0.3184, allocations: 2.287 MB / 475 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.3185, allocations: 9.625 kB / 475.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002215/0.3207, allocations: 0.4954 MB / 475.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/0.3233, allocations: 1.119 MB / 476.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/0.3235, allocations: 198.3 kB / 476.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004501/0.324, allocations: 188.7 kB / 477.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004396/0.3284, allocations: 2.627 MB / 479.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.94e-05/0.3285, allocations: 6.047 kB / 479.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.3287, allocations: 77.28 kB / 479.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.752e-05/0.3287, allocations: 46.88 kB / 479.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004882/0.3336, allocations: 3.277 MB / 483.1 MB, free: 9.582 MB / 350.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.01248/0.3461, allocations: 8.443 MB / 491.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.3478, allocations: 1.324 MB / 492.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007898/0.3486, allocations: 0.6301 MB / 493.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007592/0.3562, allocations: 5.468 MB / 498.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.3563, allocations: 39.22 kB / 499 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008754/0.3572, allocations: 178.4 kB / 499.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=81): time 3.136e-06/0.3572, allocations: 0 / 499.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=115): time 0.02621/0.3834, allocations: 7.098 MB / 0.4944 GB, free: 4.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.3835, allocations: 115.8 kB / 0.4945 GB, free: 4.578 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002326/0.3858, allocations: 1.841 MB / 0.4963 GB, free: 2.719 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/0.3861, allocations: 45.7 kB / 0.4963 GB, free: 2.668 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006855/0.3868, allocations: 1.006 MB / 0.4973 GB, free: 1.645 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000453/0.3873, allocations: 406.3 kB / 0.4977 GB, free: 1.242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.3874, allocations: 40 kB / 0.4978 GB, free: 1.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3876, allocations: 385.9 kB / 0.4981 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.3889, allocations: 0.8396 MB / 0.4989 GB, free: 15.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.3906, allocations: 1.573 MB / 0.5005 GB, free: 14.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.3922, allocations: 1.041 MB / 0.5015 GB, free: 13.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.3923, allocations: 8 kB / 0.5015 GB, free: 13 MB / 382.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007686/0.4, allocations: 3.241 MB / 0.5047 GB, free: 9.742 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.4, allocations: 20.06 kB / 0.5047 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.602e-05/0.4001, allocations: 24 kB / 0.5047 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004565/0.4046, allocations: 1.018 MB / 0.5057 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/0.4062, allocations: 431.3 kB / 0.5061 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009566/0.4158, allocations: 6.898 MB / 0.5128 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.4177, allocations: 115.7 kB / 0.513 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.4179, allocations: 124 kB / 0.5131 GB, free: 0.6875 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 3} * Non-linear torn systems: 2 {2 15,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008/0.4187, allocations: 401.1 kB / 0.5135 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.419, allocations: 146.1 kB / 0.5136 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00621/0.4253, allocations: 2.148 MB / 0.5157 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.469e-05/0.4253, allocations: 15.94 kB / 0.5157 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.4253, allocations: 4 kB / 0.5157 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.14e-05/0.4254, allocations: 3.984 kB / 0.5157 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008801/0.4342, allocations: 3.842 MB / 0.5195 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4342, allocations: 0 / 0.5195 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007546/0.435, allocations: 179.9 kB / 0.5196 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004142/0.4391, allocations: 0.9052 MB / 0.5205 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/0.4393, allocations: 43.97 kB / 0.5206 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007806/0.4471, allocations: 6.28 MB / 0.5267 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.4472, allocations: 4 kB / 0.5267 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006847/0.454, allocations: 2.834 MB / 0.5295 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/0.4547, allocations: 235.2 kB / 0.5297 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/0.455, allocations: 31.98 kB / 0.5297 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000927/0.456, allocations: 43.92 kB / 0.5298 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002979/0.4563, allocations: 112.8 kB / 0.5299 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.4564, allocations: 51.97 kB / 0.5299 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00162/0.458, allocations: 1.291 MB / 0.5312 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4581, allocations: 0 / 0.5312 GB, free: 13.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003778/0.4618, allocations: 0.9603 MB / 0.5321 GB, free: 12.54 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 3} * Non-linear torn systems: 2 {1 17,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002069/0.4639, allocations: 0.9834 MB / 0.5331 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004304/0.4682, allocations: 2.465 MB / 0.5355 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4683, allocations: 0 / 0.5355 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.4703, allocations: 1.214 MB / 0.5367 GB, free: 7.746 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.4719, allocations: 227.6 kB / 0.5369 GB, free: 7.527 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005864/0.4778, allocations: 3.901 MB / 0.5407 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009293/0.4787, allocations: 1.318 MB / 0.542 GB, free: 2.223 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001416/0.4802, allocations: 345.3 kB / 0.5423 GB, free: 1.895 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004093/0.4806, allocations: 183.3 kB / 0.5425 GB, free: 1.715 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4806, allocations: 0 / 0.5425 GB, free: 1.715 MB / 414.1 MB Notification: Performance of Templates: time 0.04897/0.5296, allocations: 33 MB / 0.5747 GB, free: 0.832 MB / 446.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)